chore: contract-migration exposes readyz

This commit is contained in:
2021-09-19 11:50:29 +03:00
parent b5f647c4aa
commit a062fa1e6f
7 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#! /bin/bash
set -e
set -a
mkdir -p $DEV_DATA_DIR/health
jq -n '{"CIC_REGISTRY_ADDRESS": "$CIC_REGISTRY_ADDRESS", "CIC_TRUST_ADDRESS": "$CIC_TRUST_ADDRESS", "RUN_MASK": "$RUN_MASK"}' > $DEV_DATA_DIR/health/readyz
cd $DEV_DATA_DIR/health
echo "starting health endpoint on :8000/readyz"
python -m http.server 8000 &> /dev/null