File tests.obscpio of Package distribution-container
07070100000000000081a40000000000000000000000016328304800000250000000000000000000000000000000000000000e00000000tests/push.sh#!/bin/sh
set +e
TIMEOUT=5
while [ $TIMEOUT -gt 0 ]; do
STATUS=$(curl --insecure -s -o /dev/null -w '%{http_code}' http://localhost:5001/debug/health)
echo $STATUS
if [ $STATUS -eq 200 ]; then
break
fi
TIMEOUT=$(($TIMEOUT - 1))
sleep 5
done
if [ $TIMEOUT -eq 0 ]; then
echo "Distribution cannot be available within one minute."
exit 1
fi
set -e
docker pull hello-world:latest
docker tag hello-world:latest $1:5000/distribution/hello-world:latest
docker push $1:5000/distribution/hello-world:latest
docker pull $1:5000/distribution/hello-world:latest07070100000001000041ed0000000000000000000000016328304800000000000000000000000000000000000000000000000600000000tests07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!