Hi all, Today I was trying to set up an Apache ActiveMQ Artemis cluster with the Prometheus's JMX Exporter running as a Java agent. All broker instances are containerized and started from the official apache/artemis Docker image.
To run a .jar as an agent, additional JVM arguments must be passed to the java binary during startup. At first I tried using the usual `$JAVA_OPTS`, but had no luck with it. Then I was expecting to find some comments or ENV directives in the Dockerfile itself, but there were only a few environment variables set and none of them were related to passing additional JVM arguments. And only after inspecting the main startup script (/var/lib/artemis-instance/bin/artemis inside a container) I've found that `$JAVA_ARGS` and `$JAVA_ARGS_APPEND` are actually used. So, I have a couple of questions here: 1. Is there any official documentation describing all the environment variables supported by the apache/artemis Docker image? 2. Maybe it will make more sense if all the used envs will be documented inside Dockerfile itself? (For example, something like `ENV JAVA_OPTS=""` with a comment or a link to the documentation above would be very helpful.) I would be happy to provide any additional information or help by opening an issue or PR if needed -- just let me know. Thanks in advance for your help! -- *BR*, Gleb L.
