You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JIB mode has some unexpected effects which cause the image to not run. The image build itself runs fine. In particular this can break images which work just fine by switching to JIB mode.
Closer inspection of the image (using e. g. docker inspect, docker history or dive reveals that the image is a strange mix between the intended image (build with JIB mode off) and the docker-build.tar containing the build context, in particular:
<targetDir> is ignored, instead the assembly name is used as path in the container. This is the main breaking issue since the paths given in <entrypoint> or <cmd> no longer apply.
The image contains an extra layer with just the Dockerfile in it.
The order of layers is changed.
The number of layers is multiplied: If there are N assemblies the build adds N * (N + 1) layers to the base image, i. e. there are N copies of each layer. The layers are only duplicated in the image manifest since their contents are identical.
The link actually leads to a fix I've been working on. I am aware that it does not yet meet all of requirements from the contribution guidelines. It at least needs sign-off and squashing.
The text was updated successfully, but these errors were encountered:
My branch currently contains an enhancement to explicitly configure the output filename for the image archive. It made the configuration for integration tests more pleasant to look at. However, I feel this feature should go into its own PR since it will probably require some discussion.
So far I have built the plugin and its integration tests locally. I plan to submit an initial PR by the end of the week to get some feedback.
Description
JIB mode has some unexpected effects which cause the image to not run. The image build itself runs fine. In particular this can break images which work just fine by switching to JIB mode.
Closer inspection of the image (using e. g.
docker inspect
,docker history
or dive reveals that the image is a strange mix between the intended image (build with JIB mode off) and the docker-build.tar containing the build context, in particular:<targetDir
> is ignored, instead the assembly name is used as path in the container. This is the main breaking issue since the paths given in<entrypoint>
or<cmd>
no longer apply.Info
mvn -v
) :Take the multi-assembly project from the plugin's examples or integration tests and turn on JIB mode.
The link actually leads to a fix I've been working on. I am aware that it does not yet meet all of requirements from the contribution guidelines. It at least needs sign-off and squashing.
The text was updated successfully, but these errors were encountered: