test-container-in.sh 404 B

123456789101112131415161718
  1. #!/bin/ash
  2. # Script that must be run inside the container
  3. . ./common/get_args.sh $*
  4. REGISTRY_CERT_FILE=/tmp/registry_cert.crt
  5. echo "*** API"
  6. if [ -z ${PORT} ]
  7. then
  8. echo "*** non-signed"
  9. curl -k https://${REGISTRY_HOSTNAME}/v2/
  10. echo "*** signed"
  11. curl --cacert /registry_cert.crt https://${REGISTRY_HOSTNAME}/v2/
  12. else
  13. echo "*** non-secure"
  14. curl http://${REGISTRY_HOSTNAME}/v2/
  15. fi