health-check:container job failing
health-check:container
is failing with:
--snip--
$ docker run --rm --net test -v "$PWD:/work" curlimages/curl /work/bin/health-check $SERVICE_URL /work gitlab_webhook_token
Unable to find image 'curlimages/curl:latest' locally
latest: Pulling from curlimages/curl
--snip--
Digest: sha256:9fab1b73f45e06df9506d947616062d7e8319009257d3a05d970b0de80a41ec5
Status: Downloaded newer image for curlimages/curl:latest
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: triage-web
HTTP status: 000
Response:
cat: can't open '/work/response': No such file or directory
❌
$ docker stop ${CONTAINER_NAME}
triage-web
$ docker network rm test
test
$ test ! -f health-check-failed
Uploading artifacts for failed job 00:03
Uploading artifacts...
container.log: found 1 matching files and directories
WARNING: Upload request redirected location=https://gitlab.com/api/v4/jobs/2962490634/artifacts?artifact_format=zip&artifact_type=archive&expire_in=31d new-url=https://gitlab.com
WARNING: Retrying... context=artifacts-uploader error=request redirected
Uploading artifacts as "archive" to coordinator... 201 Created id=2962490634 responseStatus=201 Created token=5xgS_RuD
Cleaning up project directory and file based variables 00:00
ERROR: Job failed: exit code 1
Edited by Ash McKenzie