mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-05 08:45:27 +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
|
COPY --from=build /usr/bin/nimbus /usr/bin/nimbus
|
||||||
RUN usr/bin/nimbus -v > /version.txt
|
RUN usr/bin/nimbus -v > /version.txt
|
||||||
|
|
||||||
# Inject the startup script
|
# Inject the startup script and helper files
|
||||||
ADD nimbus.sh /nimbus.sh
|
COPY *.sh *.jq *.json /
|
||||||
ADD mapper.jq /mapper.jq
|
|
||||||
RUN chmod +x /nimbus.sh
|
RUN chmod +x /nimbus.sh
|
||||||
|
|
||||||
ADD genesis.json /genesis.json
|
|
||||||
|
|
||||||
# Export the usual networking ports to allow outside access to the node
|
# Export the usual networking ports to allow outside access to the node
|
||||||
EXPOSE 8545 8546 8547 30303 30303/udp
|
EXPOSE 8545 8546 8547 30303 30303/udp
|
||||||
|
|
||||||
|
@ -53,15 +53,11 @@ if [ "$HIVE_LOGLEVEL" != "" ]; then
|
|||||||
FLAGS="$FLAGS --log-level:DEBUG"
|
FLAGS="$FLAGS --log-level:DEBUG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Configure the chain.
|
# Configure the genesis chain and use it as start block and dump it to stdout
|
||||||
mv /genesis.json /genesis-input.json
|
|
||||||
jq -f /mapper.jq /genesis-input.json > /genesis.json
|
|
||||||
|
|
||||||
# Dump genesis
|
|
||||||
echo "Supplied genesis state:"
|
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
|
# Don't immediately abort, some imports are meant to fail
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user