You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Avoiding dockerhub rate limits (see https://canonical-self-hosted-github-runner-docs.readthedocs-hosted.com/en/latest/usage/faq/how-to-avoid-dockerhub-rate-limits/ for more informations)
77
+
if [ -n "$DOCKERHUB_MIRROR" ]; then
78
+
MIRROR_CONFIG=/etc/containerd/hosts.d/docker.io
79
+
sudo mkdir -p ${MIRROR_CONFIG}
80
+
sudo chown $USER ${MIRROR_CONFIG}
81
+
cat << EOF > ${MIRROR_CONFIG}/hosts.toml
82
+
[host."$DOCKERHUB_MIRROR"]
83
+
capabilities = ["pull", "resolve"]
84
+
EOF
85
+
fi
86
+
sudo apt-get remove -y docker.io containerd
75
87
sudo rm -rf /run/containerd
76
88
sudo snap install concierge --classic
77
89
sudo concierge prepare --trace
@@ -81,28 +93,47 @@ jobs:
81
93
run: |
82
94
# this step is required to prefetch heavy images to avoid false-positive failures in
83
95
# integration tests due to timeouts unrelated to the charm itself
0 commit comments