From affc4bec134d29b2a81459937e57edf7f330849e Mon Sep 17 00:00:00 2001 From: jasquat Date: Thu, 6 Jun 2024 15:22:14 -0400 Subject: [PATCH] wait for the containers to be up with docker compose w/ burnettk --- .gitignore | 1 + bin/run_arena_with_docker_compose | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 65cbb6e2c..d7865b4a7 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ process_models/ .cache .mypy_cache .aider* +/spiffworkflow_docker_compose diff --git a/bin/run_arena_with_docker_compose b/bin/run_arena_with_docker_compose index 8a479a3ac..dca11bfe8 100755 --- a/bin/run_arena_with_docker_compose +++ b/bin/run_arena_with_docker_compose @@ -1,14 +1,14 @@ #!/usr/bin/env bash function error_handler() { - >&2 echo "Exited with BAD EXIT CODE '${2}' in ${0} script at line: ${1}." + echo >&2 "Exited with BAD EXIT CODE '${2}' in ${0} script at line: ${1}." exit "$2" } trap 'error_handler ${LINENO} $?' ERR set -o errtrace -o errexit -o nounset -o pipefail -mkdir -p spiffworkflow -cd spiffworkflow +mkdir -p spiffworkflow_docker_compose +cd spiffworkflow_docker_compose wget https://raw.githubusercontent.com/sartography/spiff-arena/main/docker-compose.yml docker compose pull -docker compose up -d +docker compose up -d --wait