-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Docker registry mirror #478
Conversation
Seems to be working for me. I spotted the Docker pulls on the mirror's log as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rofafor Well done! Thank you so much for the enhancement, and sharing the detailed test report. LGTM 👍
Note:
I was in an impression that making our entrypoint.sh dependent on the existence of jq
should be done carefully even though our runner image has it preinstalled. That might break things for users who uses their own runner image that omit jq
. But as it isn't very hard to remove jq
dependency from entrypoint.sh even after this change, I think it's good to go for now.
@@ -587,6 +587,8 @@ spec: | |||
# false (default) = Docker support is provided by a sidecar container deployed in the runner pod. | |||
# true = No docker sidecar container is deployed in the runner pod but docker can be used within teh runner container instead. The image summerwind/actions-runner-dind is used by default. | |||
dockerdWithinRunnerContainer: true | |||
# Optional Docker registry mirror, only applicable if dockerdWithinRunnerContainer = true | |||
dockerRegistryMirror: https://mirror.gcr.io/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rofafor Worth adding mention to https://cloud.google.com/container-registry/docs/pulling-cached-images for more information? I'd appreciate it if you could add it here or to our docs in another PR
Thanks for implementing this. I believe this requires a helm chart bump though? |
@liamgib How are you willing to use the chart, btw? There're changes only in CRDs. If you've already installed the chart before, the only way to upgrade CRDs is to use |
Using helm chart would be good, but I tried using kubectl and still not working. Cleanuphelm uninstall actions-runner-controller Reinstallkubectl apply -f https://github.com/summerwind/actions-runner-controller/releases/download/v0.18.2/actions-runner-controller.yaml I also note that there is noReference to dockerRegistryMirror in the v.0.18.2 controller. Was this released yet? |
No worries, thank you @mumoshu |
jq
in startup.shdockerdWithinRunnerContainer
has been set, that's needed due to the current Docker Hub rate-limitingDinD: Mirror only
DinD: Mirror + MTU
Mirror + MTU