2024-06-24 07:26:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [[ -n "$CERC_SCRIPT_DEBUG" ]]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Create the required config file
|
|
|
|
config_file="/app/config.yml"
|
|
|
|
cat <<EOF > $config_file
|
|
|
|
services:
|
|
|
|
registry:
|
|
|
|
rpcEndpoint: ${CERC_LACONICD_RPC_ENDPOINT}
|
|
|
|
gqlEndpoint: ${CERC_LACONICD_GQL_ENDPOINT}
|
2024-08-13 13:28:21 +00:00
|
|
|
userKey: "${CERC_LACONICD_USER_KEY}"
|
2024-06-24 07:26:38 +00:00
|
|
|
bondId: ${CERC_LACONICD_BOND_ID}
|
|
|
|
chainId: ${CERC_LACONICD_CHAIN_ID}
|
|
|
|
gas: ${CERC_LACONICD_GAS}
|
|
|
|
fees: ${CERC_LACONICD_FEES}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
echo "Exported config to $config_file"
|