chore: contract-migration exposes readyz

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

0
apps/contract-migration/config.sh Normal file → Executable file
View File

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

0
apps/contract-migration/from_env.sh Normal file → Executable file
View File

0
apps/contract-migration/nvm.sh Normal file → Executable file
View File

3
apps/contract-migration/run_job.sh Normal file → Executable file
View File

@ -29,3 +29,6 @@ then
fi
>&2 echo -e "\033[;32mSUCCEEDED\033[;39m RUN_MASK 2 - custodial service initialization"
fi
./docker/init_readyz.sh

View File

@ -62,6 +62,8 @@ services:
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/contract-migration:${TAG:-latest}
profiles:
- migrations
ports:
- 8012:8000
build:
context: apps/contract-migration
dockerfile: docker/Dockerfile
@ -113,6 +115,7 @@ services:
- cic-eth-tasker
volumes:
- contract-config:/tmp/cic/config
- ./apps/contract-migration:/root
cic-cache-tracker:
image: registry.gitlab.com/grassrootseconomics/cic-internal-integration/cic-cache:${TAG:-latest}

0
scripts/dump.sh Normal file → Executable file
View File