Skip to content
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

Set up Docker proxy cache for GitHub Container Registry #1888

Open
3 tasks
jadecarino opened this issue May 31, 2024 · 1 comment
Open
3 tasks

Set up Docker proxy cache for GitHub Container Registry #1888

jadecarino opened this issue May 31, 2024 · 1 comment

Comments

@jadecarino
Copy link

Story

As a Galasa developer, I want to use GHCR as a Docker cache, so that we don't encounter the Dockerhub pull limit during our build pipelines.

Background

We currently have a Docker proxy cache set up in Harbor and many of our custom images pull FROM a Docker official image like alpine. The proxy cache allows us not to hit the Dockerhub pull limit (100 pulls every 6 hours).

We need to set up the same thing for the GHCR so that when we eventually get rid of Harbor, our Docker builds don't start failing, and instead pull from the GHCR proxy cache.

So all FROM statements in our Dockerfiles that are like: FROM harbor.galasa.dev/docker_proxy_cache/library/alpine:3.18.4 would become FROM ghcr.io/library/alpine:3.18.4.

Tasks

  • Set up the Docker proxy cache for GHCR
  • Update all FROM statements in Dockerfiles to use this new proxy cache
  • Delete cached images from Harbor / delete Harbor if ready to do so at this stage
@jadecarino
Copy link
Author

@techcobweb FYI - something I've just thought about while making the 'automation' GH Actions workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 5 Backlog
Development

No branches or pull requests

1 participant