Skip to content
Snippets Groups Projects
Commit b574a6f8 authored by nimrod's avatar nimrod
Browse files

Remove Python tracebacks.

Using Docker Compose over SSH causes errors, but it's handled. The
tracebacks just make it harder to follow what's happening.
parent fecb5de5
No related branches found
No related tags found
No related merge requests found
Pipeline #1178 passed
#!/bin/sh #!/bin/sh
set -eu set -eu
_docker_compose() {
docker-compose "$@" 2>&1 | sed '/^ File /,+1d'
}
_check() { _check() {
containers="$(until docker-compose ps -q; do true; done)" containers="$(until _docker_compose ps -q; do true; done)"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
docker container inspect --format '{{ .State.Health.Status }}' $containers | grep -v '^healthy$' docker container inspect --format '{{ .State.Health.Status }}' $containers | grep -v '^healthy$'
} }
...@@ -11,7 +15,7 @@ _deploy() { ...@@ -11,7 +15,7 @@ _deploy() {
echo "Deploying to $1" >&2 echo "Deploying to $1" >&2
export DOCKER_HOST="ssh://$1" export DOCKER_HOST="ssh://$1"
export RUNNER_NAME="$1" export RUNNER_NAME="$1"
until docker-compose up --detach --remove-orphans ; do true; done until _docker_compose up --detach --remove-orphans ; do true; done
# shellcheck disable=SC2034 # shellcheck disable=SC2034
for i in $(seq 12) for i in $(seq 12)
do do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment