Deploy a Quay.io / Mirror-registry on container
Nothing original, it just the documentation of redhat, but can be usefull to kickstart a registry.
mirror="https://mirror.openshift.com/pub/openshift-v4/clients"
wget ${mirror}/mirror-registry/latest/mirror-registry.tar.gz
tar zxvf mirror-registry.tar.gz
sudo ./mirror-registry install \
--quayHostname quay01.example.local \
--quayRoot /opt
podman login -u init \
-p 7u2Dm68a1s3bQvz9twrh4Nel0i5EMXUB \
quay01.example.local:8443 \
--tls-verify=false
# Get IP
sudo podman inspect --format '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' quay-app
#unistall
sudo ./mirror-registry uninstall -v \
--quayRoot <example_directory_name>
sudo ./mirror-registry install \
--quayHostname quay01.example.local \
--quayRoot /srv \
--sslCert quay01.example.local.cer \
--sslKey quay01.example.local.pem
curl -u init: https://quay01.example.local:8443/v2/_catalog | jq
curl -u root:password https://<url>:<port>/v2/ocp4/openshift4/tags/list | jq
unlock user init/admin
QUAY_POSTGRES=`podman ps | grep quay-postgres | awk '{print $1}'`
podman exec -it $QUAY_POSTGRES psql -d quay -c "UPDATE "public.user" SET invalid_login_attempts = 0 WHERE username = 'init'"
Comments