commit e2b21e7cdcff6cb068b09b049cae228580a92a95 Author: WrenIX Date: Fri Feb 21 12:10:49 2025 +0100 init workaround with crane diff --git a/README.md b/README.md new file mode 100644 index 0000000..b9852d7 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +Download / Update new images + + +## Helper +Get all images from kubernetes +```bash +kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec['initContainers', 'containers'][*].image}" | tr -s '[[:space:]]' '\n' | sort | uniq -c +``` diff --git a/mirror.sh b/mirror.sh new file mode 100755 index 0000000..92cbbb3 --- /dev/null +++ b/mirror.sh @@ -0,0 +1,38 @@ +#/bin/sh +export REGISTRY=${1:-git.chaos.fyi/mirror} + +set -e + +echo "Mirror image to ${REGISTRY}" + +echo "" +echo "docker.io" + +IMAGE=bitnami/redis:7.4.2-debian-12-r5 +crane copy "docker.io/${IMAGE}" "${REGISTRY}/${IMAGE}" +IMAGE=bitnami/redis:7.4.2-debian-12-r4 +crane copy "docker.io/${IMAGE}" "${REGISTRY}/${IMAGE}" +IMAGE=bitnami/redis +crane copy "docker.io/${IMAGE}" "${REGISTRY}/${IMAGE}" + +IMAGE=bitnami/redis-exporter:1.67.0-debian-12-r9 +crane copy "docker.io/${IMAGE}" "${REGISTRY}/${IMAGE}" + +IMAGE=library/nginx:1.27.4 +crane copy "docker.io/${IMAGE}" "${REGISTRY}/${IMAGE}" + +IMAGE=library/docker:28.0.0-dind +crane copy "docker.io/${IMAGE}" "${REGISTRY}/${IMAGE}" + +IMAGE=superseriousbusiness/gotosocial:0.18.1 +crane copy "docker.io/${IMAGE}" "${REGISTRY}/${IMAGE}" +IMAGE=superseriousbusiness/gotosocial:0.18.0 +crane copy "docker.io/${IMAGE}" "${REGISTRY}/${IMAGE}" + + + +echo "" +echo "ghcr.io" + +IMAGE=metal-stack/oci-mirror +crane copy "ghcr.io/${IMAGE}" "${REGISTRY}/${IMAGE}"