Skip to content

Commit

Permalink
[ADP-3409] Expect ready with mithril and docker (#4748)
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino authored Aug 20, 2024
2 parents 5bc932b + 35edf09 commit 99634cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,6 @@ steps:
agents:
system: x86_64-linux


- group: Docker Checks
depends_on:
- docker-artifacts
Expand All @@ -700,12 +699,12 @@ steps:
cd run/mainnet/docker
export WALLET_TAG=$(buildkite-agent meta-data get "release-cabal-version")
rm -rf databases
./run.sh node-db-with-mithril
./run.sh sync
agents:
system: x86_64-linux
env:
SUCCESS_STATUS: syncing
SUCCESS_STATUS: ready
USE_MITHRIL: true
USE_LOCAL_IMAGE: true

- label: Private Network Full Sync
Expand Down
5 changes: 4 additions & 1 deletion run/common/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export NODE_CONFIGS

startup() {
# Pull the latest images
if [ -z "${USE_LOCAL_IMAGE}" ]; then
if [ -z "${USE_LOCAL_IMAGE-}" ]; then
docker compose pull -q
fi
# Start the service in detached mode
Expand Down Expand Up @@ -112,6 +112,9 @@ node-db-with-mithril() {
# Case statement to handle different command-line arguments
case "$1" in
sync)
if [[ -n "${USE_MITHRIL-}" ]]; then
node-db-with-mithril
fi
echo "Wallet service port: $WALLET_PORT"
echo "Wallet service tag: $WALLET_TAG"
echo "Syncing the service..."
Expand Down

0 comments on commit 99634cc

Please sign in to comment.