Artifactory allows us to proxy a Google Container Registry by configuring a remote repository pointing to the GCR endpoint. Google offers the https://gcr.io and https://eu.gcr.io endpoints, both can be proxied in Artifactory, according to the needed endpoint.
- First, create a Docker remote repository in Artifactory, and set the URL to point to https://gcr.io (or https://eu.gcr.io, depending on the need)
- In the Google Cloud Platform UI, navigate to IAM & Admin → Service Accounts → Choose your service account → navigate to the “Keys” tab of the chosen account:
Click on “ADD KEY”, then “Create a new key” and choose JSON. Save the downloaded JSON file in an accessible location.
- Navigate back to the remote repository configuration page in Artifactory, and set the credentials of the remote repository under the “Advanced tab” as follows: