mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-26 20:19:31 +00:00
update conversion to start option argument inside hive container (#658)
why: not overloading genesis.json by converted version, using new file with edited contents
This commit is contained in:
parent
fe92942fa2
commit
d1348824f8
@ -31,13 +31,10 @@ RUN apt-get update \
|
||||
COPY --from=build /usr/bin/nimbus /usr/bin/nimbus
|
||||
RUN usr/bin/nimbus -v > /version.txt
|
||||
|
||||
# Inject the startup script
|
||||
ADD nimbus.sh /nimbus.sh
|
||||
ADD mapper.jq /mapper.jq
|
||||
# Inject the startup script and helper files
|
||||
COPY *.sh *.jq *.json /
|
||||
RUN chmod +x /nimbus.sh
|
||||
|
||||
ADD genesis.json /genesis.json
|
||||
|
||||
# Export the usual networking ports to allow outside access to the node
|
||||
EXPOSE 8545 8546 8547 30303 30303/udp
|
||||
|
||||
|
@ -53,15 +53,11 @@ if [ "$HIVE_LOGLEVEL" != "" ]; then
|
||||
FLAGS="$FLAGS --log-level:DEBUG"
|
||||
fi
|
||||
|
||||
# Configure the chain.
|
||||
mv /genesis.json /genesis-input.json
|
||||
jq -f /mapper.jq /genesis-input.json > /genesis.json
|
||||
|
||||
# Dump genesis
|
||||
# Configure the genesis chain and use it as start block and dump it to stdout
|
||||
echo "Supplied genesis state:"
|
||||
FLAGS="$FLAGS --customnetwork:/genesis.json"
|
||||
jq -f /mapper.jq /genesis.json | tee /genesis-start.json
|
||||
FLAGS="$FLAGS --customnetwork:/genesis-start.json"
|
||||
|
||||
cat genesis.json
|
||||
# Don't immediately abort, some imports are meant to fail
|
||||
set +e
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user