Skip to content

Commit

Permalink
Update Docker images, add .env.example file and adjust Docker build s…
Browse files Browse the repository at this point in the history
…ettings
  • Loading branch information
Caspar Oostendorp committed Jun 21, 2024
1 parent 3979aad commit bd9823f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ RUN \


# Stage 2: Put the webapp files in place
FROM ghcr.io/pixelaw/web:0.3.4 AS web
FROM ghcr.io/pixelaw/web:0.3.5 AS web

FROM ghcr.io/pixelaw/server:0.3.14 AS server
FROM ghcr.io/pixelaw/server:0.3.15 AS server


FROM dojo as runner
Expand All @@ -115,6 +115,7 @@ COPY --from=server /app server/

COPY docker/scripts/ /pixelaw/scripts/
COPY docker/ecosystem.config.js /pixelaw/core/docker/
COPY docker/.env.example /pixelaw/core/docker/
COPY docker/.bashrc /root/
COPY ./tools/ /pixelaw/tools/

Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ docker_build:
--build-arg DOJO_VERSION=$(DOJO_VERSION) \
--secret id=DOJO_KEYSTORE_PASSWORD \
--network=host \
--pull=false \
--progress=plain .

docker_run:
Expand Down
10 changes: 10 additions & 0 deletions docker/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RPC_URL=http://localhost:5050
TORII_URL=http://localhost:8080
RELAY_URL=http://localhost:8080
SERVER_URL=http://localhost:3000
MASTER_ADDRESS=0x003c4dd268780ef738920c801edc3a75b6337bc17558c74795b530c0ff502486
MASTER_PRIVATE_KEY=0x2bbf4f9fd0bbb2e60b0316c1fe0b76cf7a4d0198bd493ced9b8df2a3a24d68a
WORLD_ADDRESS=0x60916a73fe631fcba3b2a930e21c6f7bb2533ea398c7bfa75c72f71a8709fc2
ACCOUNT_CLASS_HASH=0x05400e90f7e0ae78bd02c77cd75527280470e2fe19c54970dd79dc37a9d3645c
FEETOKEN_ADDRESS=0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7
SERVER_PORT=3000
2 changes: 2 additions & 0 deletions docker/scripts/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ if [ ! -f "$GENESIS" ]; then

fi

pushd /pixelaw/web && sh vite-envs.sh && popd

# Start all applications defined in ecosystem.config.js with PM2
pm2 start /pixelaw/core/docker/ecosystem.config.js

Expand Down

0 comments on commit bd9823f

Please sign in to comment.