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:
Jordan Hrycaj 2021-05-14 08:56:21 +01:00 committed by GitHub
parent fe92942fa2
commit d1348824f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 12 deletions

View File

@ -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

View File

@ -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