Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions infra/docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,8 @@

ENTRYPOINT ["/home/monitorenv/env.sh"]

CMD ["sh", "-c", "exec java \
${MONITORENV_JVM_OPTIONS} \
-Dhttp.proxyHost=${MONITORENV_HTTP_PROXY_HOST} \
-Dhttp.proxyPort=${MONITORENV_HTTP_PROXY_PORT} \
-Dhttps.proxyHost=${MONITORENV_HTTP_PROXY_HOST} \
-Dhttps.proxyPort=${MONITORENV_HTTP_PROXY_PORT} \
-Dhttp.nonProxyHosts=${MONITORENV_HTTP_NON_PROXY_HOSTS} \
-Dhttps.nonProxyHosts=${MONITORENV_HTTP_NON_PROXY_HOSTS} \
-Dspring.config.additional-location=\"/home/monitorenv/configurations/\" \
-jar \"monitorenv-${VERSION}.jar\""]
CMD exec java ${MONITORENV_JVM_OPTIONS} -Dhttp.proxyHost=${MONITORENV_HTTP_PROXY_HOST} -Dhttp.proxyPort=${MONITORENV_HTTP_PROXY_PORT} \
-Dhttps.proxyHost=${MONITORENV_HTTP_PROXY_HOST} -Dhttps.proxyPort=${MONITORENV_HTTP_PROXY_PORT} \
-Dhttp.nonProxyHosts=${MONITORENV_HTTP_NON_PROXY_HOSTS} -Dhttps.nonProxyHosts=${MONITORENV_HTTP_NON_PROXY_HOSTS} \
-Dspring.config.additional-location="/home/monitorenv/configurations/" -jar "monitorenv-${VERSION}.jar"

Check warning on line 136 in infra/docker/app/Dockerfile

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Consider wrapping this instruction in a script file and call it with exec form.

See more on https://sonarcloud.io/project/issues?id=MTES-MCT_monitorenv&issues=AZrEbGE4E1EndTSCWyBj&open=AZrEbGE4E1EndTSCWyBj&pullRequest=2623