-
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
NPE on parse json manifest from Nexus #2819
Comments
@Hubbitus thanks for the detailed report. Initially I thought not having I think you have control over the base image |
Glad to hear that will b fixed, thank you. The problem with |
Maybe you can pass http://docs.podman.io/en/latest/markdown/podman-build.1.html Not sure if it's free of issues (e.g., I just saw containers/buildah#2317). But I guess it's basically working. |
@chanseokoh, thank you for the workaround suggestion! It looks like pushing base image with |
@Hubbitus Jib 2.7.0 has been released with this fix! Should be able to handle OCI manifests (and indices) that has no |
Environment:
Description of the issue:
On simple gradle project which tried to push into
Nexus
docker repo (as far as I know) I gotNPE
in parsing response:Expected behavior:
Sucessul create docker image
Steps to reproduce:
jib
plugin, configure as provided belowDOCKER_REGISTRY_HOST=repo.tddev.ru DOCKER_REGISTRY_USER=<user> DOCKER_REGISTRY_PASSWORD=<password> ./gradlew --no-daemon jib -S
jib-gradle-plugin
Configuration:Additional Information:
Exception happened in com.google.cloud.tools.jib.registry.AbstractManifestPuller#getManifestTemplateFromJson:148:
In debuger I see
JSON
response and its look like:So
mediaType
key on top-level is not exists, only asconfig
sub-key.Really for me part:
looks like incorrect answer format from server side... How you think? Could it be handled on
JIB
side?The text was updated successfully, but these errors were encountered: