Skip to content

Commit fda9cd0

Browse files
committed
docker: Move bootstrapping to separate script
1 parent a8253c2 commit fda9cd0

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

docker/02-init-chain.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,4 @@ for num in 0 1 2 3; do
7474
${BB} sed -i "/^external-address =/c\external-address = \"${validator_cmd}:${TM_P2P_PORT}\"" data/${validator_cmd}/config/config.toml
7575
done
7676

77-
$DC up -d chain-seed chain-{0..3}-{sentry,validator} keyper-{0..3}
78-
79-
echo "We need to wait for the chain to reach height >= 1"
80-
sleep 5
81-
82-
$DC run --rm --no-deps --entrypoint /rolling-shutter chain-0-validator bootstrap \
83-
--deployment-dir /deployments/dockerGeth \
84-
--ethereum-url http://geth:8545 \
85-
--shuttermint-url http://chain-0-sentry:${TM_RPC_PORT} \
86-
--signing-key 479968ffa5ee4c84514a477a8f15f3db0413964fd4c20b08a55fed9fed790fad
87-
88-
$DC stop -t 30 geth chain-seed chain-{0..3}-{sentry,validator} keyper-{0..3}
77+
$DC stop -t 30

docker/04-bootstrap.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
source ./common.sh
4+
5+
echo "Submitting bootstrap transaction"
6+
7+
$DC run --rm --no-deps --entrypoint /rolling-shutter chain-0-validator bootstrap \
8+
--deployment-dir /deployments/dockerGeth \
9+
--ethereum-url http://geth:8545 \
10+
--shuttermint-url http://chain-0-sentry:${TM_RPC_PORT} \
11+
--signing-key 479968ffa5ee4c84514a477a8f15f3db0413964fd4c20b08a55fed9fed790fad
File renamed without changes.

0 commit comments

Comments
 (0)