Dockerfile + registry auth (gitlab): 403
In my templates i can pull images from my private gitlab instance in "docker_service" via "image". This is achieved by using "docker" provider with "registry_auth". Now i tried to use the same image but from a Dockerfile. This results in 403 (Forbidden). I added various combinations of the available options to "docker_image" -> "build" -> "auth_config" but i can't get it working. Any idea how to get this working?
8 Replies
<#1397244191477858364>
Category
Help needed
Product
Coder (v2)
Platform
N/A
Logs
Please post any relevant logs/error messages.
What operating system are you running Coder (v2) on?
@daschatten i would actually advise against using a Dockerfile in terraform templates, what are you willing to achieve?
I used the Dockerfiles for adding some coder specific things. Though i now think its better to switch to a gitlab ci/cd approach for templates and docker images.
yes, I was about to recommend that :)
Maybe you can note this in the docs. It reads like all the stuff i tried is possible 😉
will do!
closing this for the sake of keeping our list of issues shorter
@Phorcys closed the thread.