Commit 6d314484 authored by liaozan's avatar liaozan 🏀

Update entrypoint.sh

parent 0d81fb10
...@@ -15,19 +15,19 @@ COPY build-script/scripts/*.sh /app/ ...@@ -15,19 +15,19 @@ COPY build-script/scripts/*.sh /app/
RUN chmod +x /app/*.sh RUN chmod +x /app/*.sh
ENV PROFILE=${PROFILE} \ ENV PROFILE=${PROFILE} \
APP_NAME=${APP_NAME} \ APP_NAME='${APP_NAME}' \
# Don't remove it, it's used in entrypoint.sh # Don't remove it, it's used in entrypoint.sh
EXT_JVM_OPTS=${JAVA_OPTS} \ EXT_JVM_OPTS='${JAVA_OPTS}' \
# https://skywalking.apache.org/docs/skywalking-java/next/en/setup/service-agent/java-agent/configurations # https://skywalking.apache.org/docs/skywalking-java/next/en/setup/service-agent/java-agent/configurations
SW_AGENT_NAME=${APP_NAME} \ SW_AGENT_NAME='${APP_NAME}' \
SW_LOGGING_LEVEL=WARN \ SW_LOGGING_LEVEL=WARN \
SW_LOGGING_MAX_HISTORY_FILES=15 \ SW_LOGGING_MAX_HISTORY_FILES=15 \
SW_LOGGING_DIR=/data/logs/skywalking \ SW_LOGGING_DIR=/data/logs/skywalking \
SW_JDBC_TRACE_SQL_PARAMETERS=true \ SW_JDBC_TRACE_SQL_PARAMETERS=true \
SW_PLUGIN_DUBBO_COLLECT_CONSUMER_ARGUMENTS=true \ SW_PLUGIN_DUBBO_COLLECT_CONSUMER_ARGUMENTS=true \
SW_PLUGIN_DUBBO_COLLECT_PROVIDER_ARGUMENTS=true \ SW_PLUGIN_DUBBO_COLLECT_PROVIDER_ARGUMENTS=true \
SW_AGENT_COLLECTOR_BACKEND_SERVICES=skywalking-oap-server.devops:11800 \ SW_AGENT_COLLECTOR_BACKEND_SERVICES='skywalking-oap-server.devops:11800' \
SW_AGENT_TRACE_IGNORE_PATH=OPTIONS:/**,GET:/actuator/**,Mysql/**,HikariCP/**,Redisson/PING SW_AGENT_TRACE_IGNORE_PATH='OPTIONS:/**,GET:/actuator/**,Mysql/**,HikariCP/**,Redisson/PING'
ENV JVM_OPTS="-javaagent:/opt/skywalking-agent/skywalking-agent.jar \ ENV JVM_OPTS="-javaagent:/opt/skywalking-agent/skywalking-agent.jar \
-XX:InitialRAMPercentage=70 -XX:MaxRAMPercentage=70 \ -XX:InitialRAMPercentage=70 -XX:MaxRAMPercentage=70 \
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
# Create the required directories # Create the required directories
mkdir -p "/data/logs/gc" "/data/heapdump" mkdir -p "/data/logs/gc" "/data/heapdump"
# Start process, EXT_JVM_OPTS must before JVM_OPTS to make sure it can be overwritten # Start process, JVM_OPTS must before EXT_JVM_OPTS to make sure it can be overwritten
exec java $EXT_JVM_OPTS $JVM_OPTS org.springframework.boot.loader.JarLauncher --spring.profiles.active=$PROFILE exec java $JVM_OPTS $EXT_JVM_OPTS org.springframework.boot.loader.JarLauncher --spring.profiles.active=$PROFILE
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