| 123456789101112131415161718 |
- #!/bin/ash
- # Script that must be run inside the container
- . ./common/get_args.sh $*
- REGISTRY_CERT_FILE=/tmp/registry_cert.crt
- echo "*** API"
- if [ -z ${PORT} ]
- then
- echo "*** non-signed"
- curl -k https://${REGISTRY_HOSTNAME}/v2/
- echo "*** signed"
- curl --cacert /registry_cert.crt https://${REGISTRY_HOSTNAME}/v2/
- else
- echo "*** non-secure"
- curl http://${REGISTRY_HOSTNAME}/v2/
- fi
|