chore: contract-migration exposes readyz
This commit is contained in:
14
apps/contract-migration/docker/init_readyz.sh
Executable file
14
apps/contract-migration/docker/init_readyz.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user