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

Añade opciones a curl para mostrar errores

parent 4801ab6e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -173,12 +173,12 @@ stages:
        -e ES_XPACK_SECURITY_ENABLED \
        ${ELASTICSEARCH_IMAGE_NAME}:${ELASTICSEARCH_IMAGE_TAG};
    - >
      HEALTH_CHECK_URL="${ELASTIC_HOSTS}:${ELASTIC_PORT}/_cat/health?h=status";
      HEALTH_CHECK_URL=${ELASTIC_HOSTS}:${ELASTIC_PORT}/_cat/health?h=status;
      RESPONSE="";
      until [ "$RESPONSE" = "green" ];
      do
        echo "HEALTH_CHECK";
        RESPONSE="$(curl -u \"${ELASTIC_USER}:${ELASTIC_USER_PASS}\" \"${HEALTH_CHECK_URL}\")";
        RESPONSE="$(curl -sS -u \"${ELASTIC_USER}:${ELASTIC_USER_PASS}\" \"${HEALTH_CHECK_URL}\")";
        echo "Waiting for elasticsearch server, remaining attempts...";
        sleep 5;
      done;