Commit 13174bc3 authored by Krishna Nikhil Vedurumudi's avatar Krishna Nikhil Vedurumudi
Browse files

Added default JVM Args in Docker File

parent 104dba91
Pipeline #42167 passed with stage
in 34 seconds
......@@ -152,8 +152,13 @@ azure_containerize:
ARG JAR_FILE
ARG APPLICATIONINSIGHTS_INSTRUMENTATION_KEY
COPY ${JAR_FILE} app.jar
ENV APPLICATIONINSIGHTS_CONNECTION_STRING=${APPLICATIONINSIGHTS_INSTRUMENTATION_KEY}
ENTRYPOINT ["java","-javaagent:/opt/agents/applicationinsights-agent.jar","-jar","/app.jar"]' > Dockerfile
ENV DEFAULT_JVM_OPTS="-XX:InitialRAMPercentage=25.0 -XX:MaxRAMPercentage=50.0 -XX:+HeapDumpOnOutOfMemoryError"
ENV JAVA_OPTS="${DEFAULT_JVM_OPTS} -javaagent:/opt/agents/applicationinsights-agent.jar ${JAVA_OPTS}"
ENTRYPOINT exec java ${JAVA_OPTS} -jar /app.jar' > Dockerfile
- |
if [ "$AZURE_SERVICE" == "entitlements" ]; then
TARGET=$(find ./$AZURE_BUILD_SUBDIR/target -name '*.jar' |head -n 1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment