-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-Djib.allowInsecureRegistries=true does not seems to work #2074
Comments
Hi @chmouel, Just for a quick check. Does it work when you put |
Off-line @chanseokoh suggested that your image registry (image-registry.openshift-image-registry.svc:5000) likely requires authentication and we don't send passwords in the clear by default. Please try running with |
I have tested against and this time against a image registry from the docker I am fine to close this, |
I suspect something, and I would like to understand why it's failing with an insecure OpenShift registry. It may not just be the fault of OpenShift, as currently Jib doesn't honor |
Yes no worries, I can help with that, I have tried again
The full debug with This is indeed with tekton. If you have a tekton ( task.yaml which would push to the internal openshfit registry |
I can reproduce also this error @chmouel |
Thanks @chmouel. The cause is what I suspected before, which is more or less an intended behavior that, although Jib allows talking to insecure registries, it won't allow token exchanges with auth servers which may be a separate auth/login server. But for practical purposes, I am now convinced it is reasonable to lift this restriction. #2100 will fix this. |
@chmouel @cmoulliard this should work now with Jib 1.8.0. |
I did a new test using the following parameters top of ocp3 and that fails using jib-maven 2.0.0
Error
If I add to the config too
If I use
@chanseokoh @chmouel : This is what I experimented too here : tektoncd/catalog#172 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This is weird. This can happen in the following case:
This feels like the server is not returning the right And what is the server implementation ( |
I believe you meant |
UPDATED(@chanseokoh): it's the "Integrated OpenShift V3 registry" (#2074 (comment)) |
What do you want to check here ? |
here is the config of the registry config (click to expand)
|
We also get this error even if the maven builds is about
|
Thanks for the information. I see the registry is an Integrated OpenShift V3 registry. It's not the usual Docker registry ("Docker Distribution"). (BTW, the Docker daemon (or Docker engine) is not a registry; it doesn't implement the registry API.)
I'll try to see if I can set up this OpenShift V3 registry on my machine. |
@cmoulliard unfortunately, I couldn't figure out how to properly set up the internal OpenShift registry as a standalone registry, so I need your help here. Could you pass
|
@cmoulliard because the original issue is fixed (you still have to pass |
Environment: Docker image: gcr.io/cloud-builders/mvn
Jib version: 1.6.1
*Build tool: Maven
OS: Docker Container
Description of the issue:
I am trying to use the
-Djib.allowInsecureRegistries=true
option to my tool and I am getting an error of this type when using it :I am using it while building a sample helloworld application https://github.com/che-samples/console-java-simple
Expected behavior:
Working
Steps to reproduce:
Log output:
Full log output
The text was updated successfully, but these errors were encountered: