run 2 java process in DOCKERFILE run 2 java process in DOCKERFILE kubernetes kubernetes

run 2 java process in DOCKERFILE


I created a startall.sh script which run both ignite process and jm scrpts like below:

#!/bin/shset -m/opt/jmx_exporter/start.sh &/bin/sh -c ${IGNITE_HOME}/run.sh

and then edit my dockefile to run only the wrapper script:

FROM gridgain/community:8.8.1-slimUSER rootRUN mkdir -p /opt/jmx_exporter/ COPY ./jmx/*  /opt/jmx_exporter/ RUN chmod 700 /opt/jmx_exporter/start.sh CMD ["/bin/sh", "/opt/jmx_exporter/startall.sh" ]