morph: init container also mkdir /db/data + seed priv_validator_state.json
morphnode panics (open /db/data/...: no such file) without the data dir + initial validator state. EL healthy; this unblocks the CL. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -107,9 +107,10 @@ services:
|
|||||||
entrypoint: [/bin/sh, -c]
|
entrypoint: [/bin/sh, -c]
|
||||||
command:
|
command:
|
||||||
- |
|
- |
|
||||||
mkdir -p /db/config
|
mkdir -p /db/config /db/data
|
||||||
cp -n /seed/config.toml /db/config/config.toml
|
cp -n /seed/config.toml /db/config/config.toml
|
||||||
cp -n /seed/genesis.json /db/config/genesis.json
|
cp -n /seed/genesis.json /db/config/genesis.json
|
||||||
|
[ -f /db/data/priv_validator_state.json ] || echo '{"height":"0","round":0,"step":0}' > /db/data/priv_validator_state.json
|
||||||
restart: no
|
restart: no
|
||||||
networks:
|
networks:
|
||||||
- chains
|
- chains
|
||||||
|
|||||||
Reference in New Issue
Block a user