Commit dd6965d4 authored by Noel Alonso's avatar Noel Alonso
Browse files

Arregla comprobación de elastic

parent 6783b955
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -100,8 +100,8 @@ stages:
          -U ${POSTGRES_USER} \
          -c 'select 1' > /dev/null 2>&1 || [ $RETRIES -eq 0 ];
      do \
          RETRIES=$((RETRIES-=1)) \
          echo "Waiting for postgres server, ${RETRIES} remaining attempts..." \
          RETRIES=$((RETRIES-=1)); \
          echo "Waiting for postgres server, ${RETRIES} remaining attempts..."; \
          sleep 1;
      done;
      docker exec postgres psql -h localhost \
@@ -180,8 +180,8 @@ stages:

      until [ "$$RESPONSE" = 'green' ];
      do \
        RESPONSE=$(curl --silent -u "${ELASTIC_USER}:${ELASTIC_USER_PASS}" "${HEALTH_CHECK_URL}") \
        echo "Waiting for elasticsearch server (${HEALTH_CHECK_URL} -> ${RESPONSE}), remaining attempts..." \
        RESPONSE=$((curl --silent -u "${ELASTIC_USER}:${ELASTIC_USER_PASS}" "${HEALTH_CHECK_URL}")); \
        echo "Waiting for elasticsearch server (${HEALTH_CHECK_URL} -> ${RESPONSE}), remaining attempts..."; \
        sleep 5;
      done;