Commit 55dba625 authored by liaozan's avatar liaozan 🏀

Update Dockerfile

parent fbd03ddf
...@@ -14,16 +14,24 @@ COPY build-script/scripts/*.sh /app/ ...@@ -14,16 +14,24 @@ COPY build-script/scripts/*.sh /app/
RUN chmod +x /app/*.sh RUN chmod +x /app/*.sh
ENV EXT_JVM_OPTS="${JAVA_OPTS}" ENV PROFILE=${PROFILE} \
APP_NAME=${APP_NAME} \
# Don't remove it, it's used in entrypoint.sh
EXT_JVM_OPTS=${JAVA_OPTS} \
# https://skywalking.apache.org/docs/skywalking-java/next/en/setup/service-agent/java-agent/configurations
SW_AGENT_NAME=${APP_NAME} \
SW_LOGGING_LEVEL=WARN \
SW_LOGGING_MAX_HISTORY_FILES=15 \
SW_LOGGING_DIR=/data/logs/skywalking \
SW_JDBC_TRACE_SQL_PARAMETERS=true \
SW_AGENT_COLLECTOR_BACKEND_SERVICES=skywalking-oap-server.devops:11800 \
SW_AGENT_TRACE_IGNORE_PATH=OPTIONS:/**,GET:/actuator/**,Mysql/**,HikariCP/**,Redisson/PING
ENV PROFILE="${PROFILE}" ENV JVM_OPTS="-javaagent:/opt/skywalking-agent/skywalking-agent.jar \
-XX:+UseG1GC -XX:G1HeapRegionSize=8m -XX:+UseStringDeduplication -XX:+ClassUnloading \
ENV JVM_OPTS="-javaagent:/opt/skywalking-agent/skywalking-agent.jar=agent.service_name=${APP_NAME},collector.backend_service=skywalking-oap-server.devops:11800\ -XX:InitialRAMPercentage=50 -XX:MaxRAMPercentage=50 -XX:MaxMetaspaceSize=512m \
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false\ -Xlog:gc*=info,gc+heap=debug,gc+age=trace:/data/logs/gc/gc-%t.log:time:filecount=20,filesize=20m \
-XX:+UseG1GC -XX:G1HeapRegionSize=8m -XX:+UseStringDeduplication -XX:+ClassUnloading\ -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump/heapdump.hprof -XX:OnOutOfMemoryError=/app/dump-file-rollover.sh \
-XX:InitialRAMPercentage=50 -XX:MaxRAMPercentage=50 -XX:MaxMetaspaceSize=512m\
-Xlog:gc*=info,gc+heap=debug,gc+age=trace:/data/logs/gc/gc-%t.log:time:filecount=20,filesize=20m\
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump/heapdump.hprof -XX:OnOutOfMemoryError=/app/dump-file-rollover.sh\
-XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags" -XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags"
ENTRYPOINT ["/app/entrypoint.sh"] ENTRYPOINT ["/app/entrypoint.sh"]
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