DrydockDrydock
ConfigurationRegistriesGCR

GCR (Google Container Registry)

The gcr registry lets you configure GCR integration.

logo

The gcr registry lets you configure GCR integration.

Variables

Env varRequiredDescriptionSupported valuesDefault value when missing
DD_REGISTRY_GCR_{REGISTRY_NAME}_CLIENTEMAILService Account Client Email (required for private images access)See Service Account credentials
DD_REGISTRY_GCR_{REGISTRY_NAME}_PRIVATEKEYService Account Private Key (required for private images access)See Service Account credentials

Examples

Configure for authenticated access

services:
  drydock:
    image: codeswhat/drydock
    ...
    environment:
      - DD_REGISTRY_GCR_PRIVATE_CLIENTEMAIL=johndoe@mysuperproject.iam.gserviceaccount.com
      - DD_REGISTRY_GCR_PRIVATE_PRIVATEKEY=-----BEGIN PRIVATE KEY-----xxxxxxxxxxx\n-----END PRIVATE KEY-----\n 
docker run \
  -e DD_REGISTRY_GCR_PRIVATE_CLIENTEMAIL="[email protected]" \
  -e DD_REGISTRY_GCR_PRIVATE_PRIVATEKEY="-----BEGIN PRIVATE KEY-----xxxxxxxxxxx\n-----END PRIVATE KEY-----\n" \
  ...
  codeswhat/drydock

How to create a Service Account on Google Cloud Platform

1. Go to the Service Account page

2. Create a new Service Account

3. Add the Container Registry Service Role

4. Save the Service Account

5. Create a new key for the newly created Service Account

6. Download the keyfile JSON file and store it securely

7. Open the JSON file, get the client_email and private_key values and configure drydock with them

On this page