2021-09-19 10:50:29 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -a
|
|
|
|
|
|
|
|
mkdir -p $DEV_DATA_DIR/health
|
|
|
|
|
2021-09-20 13:49:32 +02:00
|
|
|
source $DEV_DATA_DIR/env_reset
|
|
|
|
|
|
|
|
jq --arg CIC_REGISTRY_ADDRESS "$CIC_REGISTRY_ADDRESS" \
|
|
|
|
--arg CIC_TRUST_ADDRESS "$CIC_TRUST_ADDRESS" \
|
2021-09-22 10:42:32 +02:00
|
|
|
--arg CIC_DEFAULT_TOKEN_SYMBOL "$CIC_DEFAULT_TOKEN_SYMBOL"\
|
|
|
|
--arg TOKEN_NAME "$TOKEN_NAME"\
|
2021-09-23 09:56:26 +02:00
|
|
|
--arg RUN_MASK "$RUN_MASK" \
|
2021-09-22 10:42:32 +02:00
|
|
|
-n '{"CIC_REGISTRY_ADDRESS": $CIC_REGISTRY_ADDRESS,
|
|
|
|
"CIC_TRUST_ADDRESS": $CIC_TRUST_ADDRESS,
|
|
|
|
"CIC_DEFAULT_TOKEN_SYMBOL": $CIC_DEFAULT_TOKEN_SYMBOL,
|
2021-09-23 09:56:26 +02:00
|
|
|
"TOKEN_NAME": $TOKEN_NAME,
|
|
|
|
"RUN_MASK": $RUN_MASK}' > $DEV_DATA_DIR/health/readyz
|
2021-09-19 10:50:29 +02:00
|
|
|
|
|
|
|
cd $DEV_DATA_DIR/health
|
|
|
|
|
|
|
|
echo "starting health endpoint on :8000/readyz"
|
|
|
|
python -m http.server 8000 &> /dev/null
|
|
|
|
|