question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for gitlab as build registry

See original GitHub issue

We’re trying to use a gitlab registry as backend for build images.

The setup is done using a helm chart, and passing in the configuration:

config:
  DockerRegistry:
    token_url: "https://gitlab.cern.ch/jwt/auth"
    username: <username>
    password: <password>
  BinderHub:
    image_prefix: gitlab-registry.cern.ch/binder/images/build-
registry:
  url: "gitlab-registry.cern.ch"

After debugging the multiple authz errors, it seems to boil down to:

  1. missing “service”: “container_registry” when fetching a valid token using the token_url (this is required by gitlab)
  2. the build image name logic assumes a dockerhub like structure (up to two levels in the path). The gitlab registry allows more and we rely on this (see above with binder/images/actual-image-name)

I’ll push a PR soon, just figuring out the best way to make 2. generic.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dichaelencommented, Feb 7, 2020

Hi @rochaporto,

As of primo February 2020 is there any solution to this? Or are anybody working on it to your knowledge? We are facing the same challenge and would like to have as much input as possible, A shortterm solution is to use our legacy registry outside GitLab, but it is not sustainable.

thanks in advance!

0reactions
ctr26commented, Feb 19, 2021

Update, it doesn’t work for finding pre built images it just successfully pushes

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitLab Container Registry
Authenticate with the Container Registry. · Run the command to build or push. For example, to build: docker build -t registry.example.com/group/project/image .
Read more >
Container registry · Project · User · Help · GitLab
Enable the Container Registry for your project · First, ask your system administrator to enable GitLab Container Registry following the administration ...
Read more >
Using GitLab feeds with Octopus Deploy
The GitLab Package Registry supports a wide variety of package types, ... After you add this, you're ready to define your build definition....
Read more >
Container registry · Project · User · Help · GitLab
Enable the Container Registry for your project · First, ask your system administrator to enable GitLab Container Registry following the administration ...
Read more >
How To Set Up a Continuous Deployment Pipeline with ...
You are going to configure the GitLab CI/CD pipeline. The pipeline will build a Docker image and push it to the container registry....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found