Skip to content
Snippets Groups Projects
Commit 96606878 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

show logs

parent 605331c5
No related branches found
No related tags found
1 merge request!27test images
Pipeline #133479 failed
......@@ -82,12 +82,10 @@ variables:
- echo "Now Testing"
- apk add --no-cache curl
- docker run --name ${MD5SUM} -d -u 999 -p 0.0.0.0:3838:3838 $IMAGE_PATH
- HTTP_CODE=$(curl --retry-all-errors --retry 10 --retry-delay 1 -w "%{http_code}" -s -o /dev/null 0.0.0.0:3838)
- CURL_ERR=0
- curl --retry-all-errors --retry 10 --retry-delay 1 -s -o /dev/null 0.0.0.0:3838 || CURL_ERR=1
- |
if [ ${HTTP_CODE} == "200" ]; then
echo "HTTP_CODE is 200, good."
else
echo "HTTP_CODE is ${HTTP_CODE}, which is a bad news, here are the logs:"
if [ ${CURL_ERR} == "1" ]; then
docker logs ${MD5SUM}
exit 2
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment