Add `--simulate-proof-failures` env variable, update docker-compose to point to slimmed image

This commit is contained in:
Eric Mastro 2023-04-28 14:15:35 +10:00
parent f9122424f7
commit 84f88d4316
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
services: services:
codex-node1: codex-node1:
image: status-im/codexsetup_multiarch:latest image: status-im/codexsetup.slim:latest
ports: ports:
- 8080:8080 - 8080:8080
# Available environment variables: # Available environment variables:
@ -22,5 +22,6 @@ services:
# - ETH_PROVIDER=eth # - ETH_PROVIDER=eth
# - ETH_ACCOUNT=account # - ETH_ACCOUNT=account
# - ETH_DEPLOYMENT=deploy # - ETH_DEPLOYMENT=deploy
# - SIMULATE_PROOF_FAILURES=0

View File

@ -120,6 +120,10 @@ if [ -n "$ETH_PROVIDER" ] && [ -n "$ETH_ACCOUNT" ] && [ -n "$ETH_MARKETPLACE_ADD
# Remove this as soon as CLI option is available: # Remove this as soon as CLI option is available:
echo "{\"contracts\": { \"Marketplace\": { \"address\": \""$ETH_MARKETPLACE_ADDRESS"\" } } }" > /root/marketplace_address.json echo "{\"contracts\": { \"Marketplace\": { \"address\": \""$ETH_MARKETPLACE_ADDRESS"\" } } }" > /root/marketplace_address.json
args="$args --eth-deployment=/root/marketplace_address.json" args="$args --eth-deployment=/root/marketplace_address.json"
if [ -n "$SIMULATE_PROOF_FAILURES" ]; then
args="$args --simulate-proof-failures=$SIMULATE_PROOF_FAILURES"
fi
fi fi
echo "./codex $args" echo "./codex $args"