DrydockDrydock
ConfigurationRegistriesGitLab

GHCR (Gitlab Container Registry)

The gitlab registry lets you configure GITLAB integration.

logo

The gitlab registry lets you configure GITLAB integration.

Variables

Env varRequiredDescriptionSupported valuesDefault value when missing
DD_REGISTRY_GITLAB_{REGISTRY_NAME}_AUTHURL🔴Gitlab Authentication base urlhttps://gitlab.com
DD_REGISTRY_GITLAB_{REGISTRY_NAME}_TOKEN🔴Gitlab Personal Access Token
DD_REGISTRY_GITLAB_{REGISTRY_NAME}_URL🔴Gitlab Registry base urlhttps://registry.gitlab.com

Examples

Configure to access images from gitlab.com

services:
  drydock:
    image: codeswhat/drydock
    ...
    environment:
      - DD_REGISTRY_GITLAB_PUBLIC_TOKEN=xxxxx
docker run \
  -e DD_REGISTRY_GITLAB_PUBLIC_TOKEN="xxxxx" \
  ...
  codeswhat/drydock

Configure to access images from self hosted gitlab instance

services:
  drydock:
    image: codeswhat/drydock
    ...
    environment:
      - DD_REGISTRY_GITLAB_PRIVATE_URL=https://registry.mygitlab.acme.com
      - DD_REGISTRY_GITLAB_PRIVATE_AUTHURL=https://mygitlab.acme.com
      - DD_REGISTRY_GITLAB_PRIVATE_TOKEN=xxxxx
docker run \
  -e DD_REGISTRY_GITLAB_PRIVATE_URL="https://registry.mygitlab.acme.com"
  -e DD_REGISTRY_GITLAB_PRIVATE_AUTHURL="https://mygitlab.acme.com"
  -e DD_REGISTRY_GITLAB_PRIVATE_TOKEN="xxxxx" \
  ...
  codeswhat/drydock

How to create a Gitlab Personal Access Token

Go to your Gitlab settings and open the Personal Access Token page

Open GitLab Personal Access Tokens

Enter the details of the token to be created

Choose an expiration time & appropriate scopes (read_registry is only needed for drydock) and generate. image

Copy the token & use it as the DD_REGISTRY_GITLAB_TOKEN value

image

On this page