Adds script to inject private key for the purpose of testing. (#553)

This commit is contained in:
Ben Bierens 2023-09-19 09:57:39 +02:00 committed by GitHub
parent 71cd35112b
commit 13de6dc500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -6,6 +6,15 @@ if [[ "${NAT_IP_AUTO}" == "true" ]]; then
echo "Set CODEX_NAT: ${CODEX_NAT}" echo "Set CODEX_NAT: ${CODEX_NAT}"
fi fi
# If marketplace is enabled from the testing environment,
# The file has to be written before Codex starts.
if [ -n "${PRIV_KEY}" ]; then
echo ${PRIV_KEY} > "private.key"
chmod 600 "private.key"
export CODEX_ETH_PRIVATE_KEY="private.key"
echo "Private key set"
fi
# Run # Run
echo "Run Codex node" echo "Run Codex node"
exec "$@" exec "$@"