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(deployments): fix staging docker configuration #704

Merged
merged 1 commit into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ RUN apt-get update && apt-get install -y expect ca-certificates && updat

# slim images
FROM runtime-base AS gnoland-slim
WORKDIR /opt/gno/src/gno.land/
COPY --from=build /opt/build/build/gnoland /opt/gno/bin/
ENTRYPOINT ["gnoland"]
EXPOSE 26657 36657
Expand Down
35 changes: 14 additions & 21 deletions misc/deployments/staging.gno.land/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ services:
build: ../../..
environment:
- LOG_LEVEL=4
working_dir: /opt/gno/src/gno.land
command:
- gnoland
- --skip-failing-genesis-txs
- --chainid
- staging
- --genesis-remote
- staging.gno.land:36657
- --chainid=staging
- --genesis-remote=staging.gno.land:36657
volumes:
- "./data/gnoland:/opt/gno/src/testdir"
- "./data/gnoland:/opt/gno/src/gno.land/testdir"
ports:
- 36656:36656
- 36657:36657
Expand All @@ -30,20 +29,14 @@ services:
build: ../../..
command:
- gnoweb
- --bind
- 0.0.0.0:80
- --remote
- gnoland:36657
- --captcha-site
- $RECAPTCHA_SITE_KEY
- --faucet-url
- https://faucet-staging.gno.land/
- --help-chainid
- staging
- --help-remote
- staging.gno.land:36657
- --home-content
- /overlay/HOME.md
- --bind=0.0.0.0:80
- --remote=gnoland:36657
- --captcha-site=$RECAPTCHA_SITE_KEY
- --faucet-url=https://faucet-staging.gno.land/
- --help-chainid=staging
- --help-remote=staging.gno.land:36657
- --pages-dir=/overlay/pages
- --views-dir=./gno.land/cmd/gnoweb/views
volumes:
- "./overlay:/overlay:ro"
links:
Expand All @@ -66,9 +59,9 @@ services:
command: sh -xc "
date &&
mkdir -p /.gno &&
expect -c \"set timeout -1; spawn gnokey add faucet --home /.gno/ --recover; expect \\\"Enter a passphrase\\\"; send \\\"$GNOKEY_PASS\\r\\\"; expect \\\"Repeat the passphrase\\\"; send \\\"$GNOKEY_PASS\\r\\\"; expect \\\"Enter your bip39 mnemonic\\\"; send \\\"$FAUCET_WORDS\\r\\\"; expect eof\" &&
expect -c \"set timeout -1; spawn gnokey add --home /.gno/ --recover faucet; expect \\\"Enter a passphrase\\\"; send \\\"$GNOKEY_PASS\\r\\\"; expect \\\"Repeat the passphrase\\\"; send \\\"$GNOKEY_PASS\\r\\\"; expect \\\"Enter your bip39 mnemonic\\\"; send \\\"$FAUCET_WORDS\\r\\\"; expect eof\" &&
while true; do
expect -c \"set timeout -1; spawn gnofaucet serve faucet --send 50000000ugnot --captcha-secret \\\"$RECAPTCHA_SECRET_KEY\\\" --remote gnoland:36657 --chain-id staging --home /.gno/; expect \\\"Enter password.\\\"; send \\\"$GNOKEY_PASS\\r\\\"; expect eof\";
expect -c \"set timeout -1; spawn gnofaucet serve --send 50000000ugnot --captcha-secret \\\"$RECAPTCHA_SECRET_KEY\\\" --remote gnoland:36657 --chain-id staging --home /.gno/ faucet; expect \\\"Enter password\\\"; send \\\"$GNOKEY_PASS\\r\\\"; expect eof\";
sleep 5;
done
"
Expand Down