From ea6a703eedb820776d34929b976e3743881770d0 Mon Sep 17 00:00:00 2001 From: Mussab Abdalla <mussab.abdalla@eox.at> Date: Mon, 16 Mar 2020 17:57:22 +0100 Subject: [PATCH] editing wait.sh to debug service creation --- .gitlab-ci.yml | 2 +- wait_for_container.sh | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) mode change 100644 => 100755 wait_for_container.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 14c6daa1..24bf45a6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -88,7 +88,7 @@ test: - docker stack deploy -c docker-compose.emg.yml -c docker-compose.emg.dev.yml emg-pvs script: # - swift post --auth-version $ST_AUTH_VERSION_DOWNLOAD --os-identity-api-version 3 --os-auth-url $OS_AUTH_URL_DOWNLOAD --os-username $OS_USERNAME_DOWNLOAD --os-password $OS_PASSWORD_DOWNLOAD --os-tenant-name $OS_TENANT_NAME_DOWNLOAD --os-tenant-id $OS_TENANT_ID_DOWNLOAD --os-region-name $OS_REGION_NAME_DOWNLOAD preprocessor_test - - apk update && apk add postgresql-dev gcc python3-dev musl-dev py-pip + - apk update && apk add postgresql-dev gcc python3-dev musl-dev py-pip gdal - pip3 install -r requirements.txt - ./wait_for_container.sh - docker ps diff --git a/wait_for_container.sh b/wait_for_container.sh old mode 100644 new mode 100755 index c0bd75df..fb14eef7 --- a/wait_for_container.sh +++ b/wait_for_container.sh @@ -1,6 +1,12 @@ #!/bin/sh -while [ -z $(docker ps -qf "name=vhr18-pvs_renderer") ]; do - >&2 docker ps - sleep 150 - done \ No newline at end of file +# while [ -z $(docker ps -qf "name=emg-pvs_renderer") ]; do +# >&2 echo "Container is unavailable - sleeping" +# sleep 15 +# done + + +for run in 1 2 3; do + docker service ls + sleep 150 +done \ No newline at end of file -- GitLab