ARTIFACTORY: How to proxy a private Google Container Registry (GCR)?

ARTIFACTORY: How to proxy a private Google Container Registry (GCR)?

AuthorFullName__c
Elina Floim
articleNumber
000004161
ft:sourceType
Salesforce
FirstPublishedDate
2018-05-25T19:10:14Z
lastModifiedDate
2021-09-22
VersionNumber
9

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. 

  1. 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)
  2. 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:

User-added image

Click on “ADD KEY”, then “Create a new key” and choose JSON. Save the downloaded JSON file in an accessible location. 

  1. Navigate back to the remote repository configuration page in Artifactory, and set the credentials of the remote repository under the “Advanced tab” as follows: