I understand there are multiple answers related to how to use env variables for java process in distroless image here.
But I specifically want to ask about how we can concate/append the additional options to JAVA_TOOL_OPTIONS in distroless image while runtime.
Presently I have following:
base image: app-base content:
I understand there are multiple answers related to how to use env variables for java process in distroless image here. But I specifically want to ask about how we can concate/append the additional options to JAVA_TOOL_OPTIONS in distroless image while runtime.
Presently I have following: base image: app-base content:
myservice Dockerfile content:
Now while running the myservice container in kubernetes, I want to provide additional option "-DSERVICE_NAME=ia" using:
This will overwrite the default JAVA_TOOL_OPTIONS options. This does not work; I need to provide entire var string to make this work:
How can I make sure that variables are appended in distroless considering expansion is not supported.