Skip to content

Commit

Permalink
chore(deployments): fix staging docker configuration (gnolang#704)
Browse files Browse the repository at this point in the history
chore: fix staging docker configuration

Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
  • Loading branch information
moul authored and grepsuzette committed Apr 6, 2023
1 parent 8cec340 commit baa6ce0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
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

0 comments on commit baa6ce0

Please sign in to comment.