galasa-dev / projectmanagement

Project Management repo for Issues and ZenHub
7 stars 3 forks source link

Set up Docker proxy cache for GitHub Container Registry #1888

Open jadecarino opened 4 weeks ago

jadecarino commented 4 weeks ago

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

jadecarino commented 4 weeks ago

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