Add support for gitlab as build registry
See original GitHub issueWe’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:
- missing “service”: “container_registry” when fetching a valid token using the token_url (this is required by gitlab)
- 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:
- Created 4 years ago
- Reactions:4
- Comments:7 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!
Update, it doesn’t work for finding pre built images it just successfully pushes