-
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
Build fails when using Micronaut #3250
Comments
We know that public ghcr.io certainly works.
Can you follow the steps above carefully and tell us if it works? And did you edit your Jib log while copying-and-pasting? It doesn't make sense at all that there's a reference to a Docker Hub image
Where do you think it's coming from? |
And are you using any Jib extension? |
@chanseokoh yeah, I'm using micronaut maven plugin, that has jib extension. Yes, when I tried your steps, it works. So I'll look into micronaut maven plugin. Thanks @chanseokoh ! |
I remember a chat with a Micronaut dev where they said their Jib extension changes a base image to I think an immediate workaround is to do |
AFAIK this is still an issue, but we do not have immediate plans to work on this. Any community contributions are welcome. |
Environment:
Description of the issue:
When the base image is from public registry hosted by github packages then the build fails. Tested on
ghcr.io/graalvm/graalvm-ce:ol8-java11-21.1.0
Expected behavior:
Build passes
Steps to reproduce:
jib-maven-plugin
Configuration:Log output:
Additional Information:
The first call that tries to download manifest:
curl -v --compressed -H 'Accept: application/vnd.oci.image.manifest.v1+json,application/vnd.docker.distribution.manifest.v2+json,application/vnd.docker.distribution.manifest.v1+json,application/vnd.docker.distribution.manifest.list.v2+json' -H 'Accept-Encoding: gzip' -H 'User-Agent: jib 3.0.0 jib-maven-plugin Google-HTTP-Java-Client/1.38.1 (gzip)' -- 'https://ghcr.io/v2/graalvm/graalvm-ce/manifests/ol8-java11-21.1.0'
fails however when the Auth header-H 'Authorization: <Not Logged>'
is added then if passes and manifest is downloaded.The text was updated successfully, but these errors were encountered: