-
Notifications
You must be signed in to change notification settings - Fork 443
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
JAVA_OPTS support for ash-template #738
Comments
Thanks for your feature request. What can I do to help you make a pull request for t his :) |
Apologies for the late reply. Unfortunately I had to abandon using Alpine Linux/Ash for now because of other issues (related to the images I'm using) encountered during the evaluation. In order to workaround the issue, I've copied So it would just be something like:
I'm not sure if this is sufficient for the general use case though :/ |
Thanks @fakraemer for sharing. I'm not familiar with Unfortunately the original author seems to have deleted his account. @pawelkaczor did the last addition. The bash script has this extra check # Now we check to see if there are any java opts on the environment. These get listed first, with the script able to override them.
if [[ "$JAVA_OPTS" != "" ]]; then
java_opts="${JAVA_OPTS}"
fi
# uses array access style
${java_opts[@]} I'm not completely sure why we use array access here. |
I guess this is closed with #866 |
We are using the Docker Plugin, and noticed that AshScriptPlugin using the ash-template ignores
JAVA_OPTS
, as opposed to the bash-template which is used by default.We are running in a PaaS environment which currently does not allow us to pass arguments through to the docker command, and instead only allows us to set additional environment variables. Given that template, the only thing I can do atm is to modify the Docker image being used to include an additional file with the additional JVM arguments (
$script_conf_file
). It would be much more convenient to have support forJAVA_OPTS
.The text was updated successfully, but these errors were encountered: