chore: contract-migration exposes readyz
This commit is contained in:
parent
b5f647c4aa
commit
a062fa1e6f
0
apps/contract-migration/config.sh
Normal file → Executable file
0
apps/contract-migration/config.sh
Normal file → Executable file
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
|
||||
|
0
apps/contract-migration/from_env.sh
Normal file → Executable file
0
apps/contract-migration/from_env.sh
Normal file → Executable file
0
apps/contract-migration/nvm.sh
Normal file → Executable file
0
apps/contract-migration/nvm.sh
Normal file → Executable file
3
apps/contract-migration/run_job.sh
Normal file → Executable file
3
apps/contract-migration/run_job.sh
Normal file → Executable 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
|
||||
|
||||
|
@ -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
0
scripts/dump.sh
Normal file → Executable file
Loading…
Reference in New Issue
Block a user