Created
December 6, 2021 23:28
-
-
Save luckylittle/feb93041116d1434e81797c02de92bee to your computer and use it in GitHub Desktop.
Skopeo mirroring & flattening script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
DESTINATION=dtrqa.docker.service.com | |
NAMESPACE=enablement | |
copy_to_reg () { | |
echo ------------------------------------------ | |
echo Copying $2 from $1 to Internal Registry... | |
skopeo --insecure-policy copy --dest-tls-verify=false docker://$1/$2 docker://${DESTINATION}/${NAMESPACE}/${2##[a-z]*/} | |
### jupyterhub | |
copy_to_reg registry.redhat.io rhel8/postgresql-96 | |
copy_to_reg quay.io openshift/origin-deployer:4.7.0 | |
copy_to_reg registry.access.redhat.com ubi8/ubi-micro:8.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment