diff --git a/argocd/manifests/forgejo-runner/configmap.yaml b/argocd/manifests/forgejo-runner/configmap.yaml index dc4584e..18d5448 100644 --- a/argocd/manifests/forgejo-runner/configmap.yaml +++ b/argocd/manifests/forgejo-runner/configmap.yaml @@ -22,3 +22,7 @@ data: network: "host" # Connect to DinD sidecar via TCP (not socket) docker_host: tcp://127.0.0.1:2375 + daemon.json: | + { + "registry-mirrors": ["http://host.minikube.internal:5050"] + } diff --git a/argocd/manifests/forgejo-runner/deployment.yaml b/argocd/manifests/forgejo-runner/deployment.yaml index 75b978c..decbd7a 100644 --- a/argocd/manifests/forgejo-runner/deployment.yaml +++ b/argocd/manifests/forgejo-runner/deployment.yaml @@ -77,6 +77,10 @@ spec: volumeMounts: - name: dind-storage mountPath: /var/lib/docker + - name: config + mountPath: /etc/docker/daemon.json + subPath: daemon.json + readOnly: true volumes: - name: data diff --git a/docs/changelog.d/feature-dind-zot-registry-mirror.infra.md b/docs/changelog.d/feature-dind-zot-registry-mirror.infra.md new file mode 100644 index 0000000..a88d5d8 --- /dev/null +++ b/docs/changelog.d/feature-dind-zot-registry-mirror.infra.md @@ -0,0 +1 @@ +Configure DinD sidecar to use Zot as a pull-through registry mirror for Docker Hub images, reducing bandwidth and avoiding rate limits during Dagger CI builds.