Open sgashchenko-tempo opened 2 months ago
Environment:
Description of the issue: Container labels (jib.container.labels), in addition to the image descriptor, appear in the manifest of the extra directory layer. When using non-constant values, this causes the layer digest to change.
jib.container.labels
image.json layer.json
Expected behavior: Labels are listed only in the image descriptor.
Steps to reproduce:
jib-gradle-plugin Configuration:
jib-gradle-plugin
jib { from { image = "eclipse-temurin:17-jre-alpine" } to { image = "jib-extra-dir-labels:latest" } extraDirectories { paths { path { setFrom(layout.projectDirectory.dir("extra-dir")) } } } container { labels.put("some-label", "some-value") } }
It looks like this behavior is consistent with docker build.
docker build
@sgashchenko-tempo can you please confirm if the issue still exists?
Environment:
Description of the issue: Container labels (
jib.container.labels
), in addition to the image descriptor, appear in the manifest of the extra directory layer. When using non-constant values, this causes the layer digest to change.image.json layer.json
Expected behavior: Labels are listed only in the image descriptor.
Steps to reproduce:
jib-gradle-plugin
Configuration: