Skip to content

Commit

Permalink
Adds script to inject private key for the purpose of testing. (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbierens authored Sep 19, 2023
1 parent 71cd351 commit 13de6dc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ if [[ "${NAT_IP_AUTO}" == "true" ]]; then
echo "Set CODEX_NAT: ${CODEX_NAT}"
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
echo "Run Codex node"
exec "$@"

0 comments on commit 13de6dc

Please sign in to comment.