Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore:: Dockerized version #6

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

PsychoPunkSage
Copy link

Added Dockerfile and docker-compose.yml files for easy local deployment.

Usage:

docker compose up # Start `fairyblock` service
docker compose down # Stop the service

Logs:

[+] Building 545.1s (11/11) FINISHED                                 docker:default
 => [fairyport internal] load build definition from Dockerfile                 0.0s
 => => transferring dockerfile: 422B                                           0.0s
 => [fairyport internal] load metadata for docker.io/library/rust:latest       1.2s
 => [fairyport internal] load .dockerignore                                    0.0s
 => => transferring context: 2B                                                0.0s
 => CACHED [fairyport 1/6] FROM docker.io/library/rust:latest@sha256:738ae99a  0.0s
 => [fairyport internal] load build context                                    0.0s
 => => transferring context: 5.26kB                                            0.0s
 => [fairyport 2/6] RUN curl -OL https://go.dev/dl/go1.21.6.linux-amd64.tar.  34.4s
 => [fairyport 3/6] WORKDIR /app                                               0.0s 
 => [fairyport 4/6] COPY . .                                                   0.3s 
 => [fairyport 5/6] RUN make build                                           493.1s 
 => [fairyport 6/6] RUN ./fairyport init                                       0.3s 
 => [fairyport] exporting to image                                            15.7s 
 => => exporting layers                                                       15.7s 
 => => writing image sha256:42703f649a839964e0bce28866e5e6d0a4bbc57685c4b44ac  0.0s 
 => => naming to docker.io/library/fairyport-fairyport                         0.0s 
[+] Running 2/2                                                                     
 ✔ Network fairyport_default        Created                                    0.2s 
 ✔ Container fairyport-fairyport-1  Creat...                                   0.1s 
Attaching to fairyport-1
fairyport-1  | 2025/02/06 18:12:54 Target Cosmos chain GRPC Endpoint: 127.0.0.1:9090
fairyport-1  | 2025/02/06 18:12:54 Private Key derived successfully:  13134d46f32028a7c1ad3d2d8eeaa1269acf989871a8b8bd4ea55897ea5a60c5
fairyport-1  | 2025/02/06 18:12:54 Address:  fairy1t8eh66t2w5k67kwurmn5gqhtq6d2ja0v8lg8pl
fairyport-1  | 2025/02/06 18:12:54 failed to get account: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:9090: connect: connection refused"
fairyport-1 exited with code 1

Copy link

@pablin-dev pablin-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should customize config.yml since we need to change

evmrelaytarget:
    chainrpc: wss://ws.sketchpad-1.forma.art
    contractaddress: 0xcA6cC5c1c4Fc025504273FE61fc0E09100B03D98

using environment variables.
We can achieve this using sed linux command on entrypoint executing a bash file, normally entrypoint.sh.

@PsychoPunkSage
Copy link
Author

@pablin-dev
made changes... please review

Copy link

@pablin-dev pablin-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Good work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants