Fix env variable overriding in sushiswap contract deployment containers
This commit is contained in:
parent
ddaddd2a8c
commit
0985c201c6
@ -10,10 +10,10 @@ services:
|
|||||||
- ../config/contract-sushiswap/deployment-params.env
|
- ../config/contract-sushiswap/deployment-params.env
|
||||||
environment:
|
environment:
|
||||||
# Overrides
|
# Overrides
|
||||||
ETH_RPC_ENDPOINT: ${ETH_RPC_ENDPOINT}
|
CERC_ETH_RPC_ENDPOINT: ${ETH_RPC_ENDPOINT}
|
||||||
CHAIN_ID: ${CHAIN_ID}
|
CERC_CHAIN_ID: ${CHAIN_ID}
|
||||||
ACCOUNT_PRIVATE_KEY: ${ACCOUNT_PRIVATE_KEY}
|
CERC_ACCOUNT_PRIVATE_KEY: ${ACCOUNT_PRIVATE_KEY}
|
||||||
DEPLOY: ${DEPLOY}
|
CERC_DEPLOY: ${DEPLOY}
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/network/wait-for-it.sh:/app/wait-for-it.sh
|
- ../config/network/wait-for-it.sh:/app/wait-for-it.sh
|
||||||
- ../config/contract-sushiswap/deploy-core-contracts.sh:/app/deploy-core-contracts.sh
|
- ../config/contract-sushiswap/deploy-core-contracts.sh:/app/deploy-core-contracts.sh
|
||||||
@ -31,10 +31,10 @@ services:
|
|||||||
- ../config/contract-sushiswap/deployment-params.env
|
- ../config/contract-sushiswap/deployment-params.env
|
||||||
environment:
|
environment:
|
||||||
# Overrides
|
# Overrides
|
||||||
ETH_RPC_ENDPOINT: ${ETH_RPC_ENDPOINT}
|
CERC_ETH_RPC_ENDPOINT: ${ETH_RPC_ENDPOINT}
|
||||||
CHAIN_ID: ${CHAIN_ID}
|
CERC_CHAIN_ID: ${CHAIN_ID}
|
||||||
ACCOUNT_PRIVATE_KEY: ${ACCOUNT_PRIVATE_KEY}
|
CERC_ACCOUNT_PRIVATE_KEY: ${ACCOUNT_PRIVATE_KEY}
|
||||||
DEPLOY: ${DEPLOY}
|
CERC_DEPLOY: ${DEPLOY}
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/network/wait-for-it.sh:/app/wait-for-it.sh
|
- ../config/network/wait-for-it.sh:/app/wait-for-it.sh
|
||||||
- ../config/contract-sushiswap/deploy-periphery-contracts.sh:/app/deploy-periphery-contracts.sh
|
- ../config/contract-sushiswap/deploy-periphery-contracts.sh:/app/deploy-periphery-contracts.sh
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Chain config
|
# Chain config
|
||||||
ETH_RPC_ENDPOINT="${ETH_RPC_ENDPOINT:-${DEFAULT_ETH_RPC_ENDPOINT}}"
|
export ETH_RPC_ENDPOINT="${CERC_ETH_RPC_ENDPOINT:-${CERC_DEFAULT_ETH_RPC_ENDPOINT}}"
|
||||||
CHAIN_ID="${CHAIN_ID:-${DEFAULT_CHAIN_ID}}"
|
export CHAIN_ID="${CERC_CHAIN_ID:-${CERC_DEFAULT_CHAIN_ID}}"
|
||||||
ACCOUNT_PRIVATE_KEY="${ACCOUNT_PRIVATE_KEY:-${DEFAULT_ACCOUNT_PRIVATE_KEY}}"
|
export ACCOUNT_PRIVATE_KEY="${CERC_ACCOUNT_PRIVATE_KEY:-${CERC_DEFAULT_ACCOUNT_PRIVATE_KEY}}"
|
||||||
|
|
||||||
# Option
|
# Option
|
||||||
DEPLOY="${DEPLOY:-${DEFAULT_DEPLOY}}"
|
DEPLOY="${CERC_DEPLOY:-${CERC_DEFAULT_DEPLOY}}"
|
||||||
|
|
||||||
# Create a .env file
|
# Create a .env file
|
||||||
echo "ETH_RPC_ENDPOINT=$ETH_RPC_ENDPOINT" > .env
|
echo "ETH_RPC_ENDPOINT=$ETH_RPC_ENDPOINT" > .env
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Chain config
|
# Chain config
|
||||||
ETH_RPC_ENDPOINT="${ETH_RPC_ENDPOINT:-${DEFAULT_ETH_RPC_ENDPOINT}}"
|
ETH_RPC_ENDPOINT="${CERC_ETH_RPC_ENDPOINT:-${CERC_DEFAULT_ETH_RPC_ENDPOINT}}"
|
||||||
CHAIN_ID="${CHAIN_ID:-${DEFAULT_CHAIN_ID}}"
|
CHAIN_ID="${CERC_CHAIN_ID:-${CERC_DEFAULT_CHAIN_ID}}"
|
||||||
ACCOUNT_PRIVATE_KEY="${ACCOUNT_PRIVATE_KEY:-${DEFAULT_ACCOUNT_PRIVATE_KEY}}"
|
ACCOUNT_PRIVATE_KEY="${CERC_ACCOUNT_PRIVATE_KEY:-${CERC_DEFAULT_ACCOUNT_PRIVATE_KEY}}"
|
||||||
|
|
||||||
# Option
|
# Option
|
||||||
DEPLOY="${DEPLOY:-${DEFAULT_DEPLOY}}"
|
DEPLOY="${CERC_DEPLOY:-${CERC_DEFAULT_DEPLOY}}"
|
||||||
|
|
||||||
# Create a .env file
|
# Create a .env file
|
||||||
echo "ETH_RPC_ENDPOINT=$ETH_RPC_ENDPOINT" > .env
|
echo "ETH_RPC_ENDPOINT=$ETH_RPC_ENDPOINT" > .env
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
# Chain config
|
# Chain config
|
||||||
|
|
||||||
DEFAULT_ETH_RPC_ENDPOINT="http://lotus-node-1:1234/rpc/v1"
|
CERC_DEFAULT_ETH_RPC_ENDPOINT="http://lotus-node-1:1234/rpc/v1"
|
||||||
DEFAULT_CHAIN_ID=31415926
|
CERC_DEFAULT_CHAIN_ID=31415926
|
||||||
|
|
||||||
# From app/data/config/fixturenet-lotus/fund-account.sh
|
# From app/data/config/fixturenet-lotus/fund-account.sh
|
||||||
DEFAULT_ACCOUNT_PRIVATE_KEY="0xc05fd3613bcd62a4f25e5eba1f464d0b76d74c3f771a7c2f13e26ad6439444b3"
|
CERC_DEFAULT_ACCOUNT_PRIVATE_KEY="0xc05fd3613bcd62a4f25e5eba1f464d0b76d74c3f771a7c2f13e26ad6439444b3"
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
|
|
||||||
DEFAULT_DEPLOY=true
|
CERC_DEFAULT_DEPLOY=true
|
||||||
|
Loading…
Reference in New Issue
Block a user