-
Bug
-
Resolution: Done
-
Minor
-
None
-
None
-
False
-
False
-
Hello Team,
There is duplicate logging of JAVA_ARGS when running a java process in the ubi8/openjdk-8:1.3-12 base image using the default script.
As per the Dockerfile:
```
...
WORKDIR /home/jboss
- Define run cmd
CMD ["/usr/local/s2i/run"] >>>> Script executed
```
Ref:
~~~ - cat /usr/local/s2i/run (source Dockerfile for ubi8/openjdk-8:1.3-12)
``
exec ${DEPLOYMENTS_DIR}/bin/run.sh $args ${JAVA_ARGS}
else
echo "Starting the Java application using ${JBOSS_CONTAINER_JAVA_RUN_MODULE}/run-java.sh $args..."
exec "${JBOSS_CONTAINER_JAVA_RUN_MODULE}/run-java.sh" $args ${JAVA_ARGS} <<<<<<<<<<<<<<<<<<<< Here it is.
fi
``
- cat run-java.sh
...
if [ "x${JAVA_MAIN_CLASS}" != x ] ; then
args="${JAVA_MAIN_CLASS}"
else
args="-jar ${JAVA_APP_JAR}"
fi
log_info "exec $(get_exec_args) java $(get_java_options) -cp \"$(get_classpath)\" ${args} $* ${JAVA_ARGS}" <<<<<<<<<<<<< Log statement.
exec $(get_exec_args) java $(get_java_options) -cp "$(get_classpath)" ${args} $*
}
From the above it is evident that
{JAVA_ARGS}is just printed in the log_info, not present in the actual command. $* is also present in the exec command.