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
It would be good for Jib to provide a way to easily take an image previously created by Jib, and to 'append' to it in various ways.
That would benefit the CDS workflow of starting an application via a container, capturing some data and then putting it into a new image (optionally overwriting the old one) and adding some jvm flags.
Note that while there are sufficient workarounds at this point in time, I'm looking for improvements to Jib to make it more elegant.
In a job, build the Jib image with containerizingMode=packaged
In the next job, run that image with -XX:ArchiveClassesAtExit=application.jsa -Dspring.context.exit=onRefresh
In the final job, pick up that application.jsa file, add it to the existing image and change the entrypoint to include -XX:SharedArchiveFile=/application.jsa
It works quite well, except step 3.
Here I have to run the following
Now the jvmFlags overwrites whatever the user has already set in their pom.xml.
It would be of great help if there was an option to append to the jvmFlags, so that both options in pom.xml and via the commandline could work together.
This issue is related to the CDS support request #2471
The text was updated successfully, but these errors were encountered:
It would be good for Jib to provide a way to easily take an image previously created by Jib, and to 'append' to it in various ways.
That would benefit the CDS workflow of starting an application via a container, capturing some data and then putting it into a new image (optionally overwriting the old one) and adding some jvm flags.
Note that while there are sufficient workarounds at this point in time, I'm looking for improvements to Jib to make it more elegant.
I currently use the following workflow in a GitLab CICD pipeline to get CDS to work (this being what Spring Framework recommends: https://docs.spring.io/spring-framework/reference/integration/cds.html).
containerizingMode=packaged
-XX:ArchiveClassesAtExit=application.jsa -Dspring.context.exit=onRefresh
-XX:SharedArchiveFile=/application.jsa
It works quite well, except step 3.
Here I have to run the following
Now the
jvmFlags
overwrites whatever the user has already set in their pom.xml.It would be of great help if there was an option to append to the
jvmFlags
, so that both options in pom.xml and via the commandline could work together.This issue is related to the CDS support request #2471
The text was updated successfully, but these errors were encountered: