Skip to content

Commit

Permalink
feat: update keystore params
Browse files Browse the repository at this point in the history
  • Loading branch information
deblanco committed Sep 8, 2023
1 parent d348a24 commit a14d2a4
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions docker/client/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,36 @@ if [ ! -z "$CHAIN_NAME" ]; then
CHAIN_TARGET="$CHAIN_NAME"
fi

if [[ "$CHAIN_TARGET" == "dev" ]]; then
echo "Starting dev chain"
./target/release/stability --base-path /tmp/node --dev --unsafe-rpc-external --rpc-cors all --unsafe-ws-external --pruning archive --prometheus-external
exit 0
fi

if [ -n "$SEED" ]; then
./target/release/stability key insert --base-path /data \
--keystore-path /data/chains/stability/keystore \
./target/release/stability key insert \
--base-path /tmp/node \
--chain $CHAIN_TARGET \
--scheme ecdsa \
--suri "$SEED" \
--key-type aura

./target/release/stability key insert \
--keystore-path /data/chains/stability/keystore \
--base-path /data \
--base-path /tmp/node \
--chain $CHAIN_TARGET \
--scheme Ed25519 \
--suri "$SEED" \
--key-type gran

./target/release/stability key insert \
--keystore-path /data/chains/stability/keystore \
--base-path /data \
--base-path /tmp/node \
--chain $CHAIN_TARGET \
--scheme ecdsa \
--suri "$SEED" \
--key-type imon
fi

START_COMMAND="./target/release/stability --base-path /data --validator --unsafe-rpc-external --rpc-cors all --unsafe-ws-external --pruning archive --prometheus-external --chain=$CHAIN_TARGET"
START_COMMAND="./target/release/stability --base-path /tmp/node --validator --unsafe-rpc-external --rpc-cors all --unsafe-ws-external --pruning archive --prometheus-external --chain=$CHAIN_TARGET"

if [ -n "$NODE_KEY" ]; then
START_COMMAND="$START_COMMAND --node-key $NODE_KEY"
Expand All @@ -39,5 +46,6 @@ elif [ -n "$BOOTNODES" ]; then
START_COMMAND="$START_COMMAND --bootnodes $BOOTNODES"
fi

echo "Starting $CHAIN_TARGET chain"
eval $START_COMMAND

0 comments on commit a14d2a4

Please sign in to comment.