Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
build-script
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tools
build-script
Commits
55dba625
Commit
55dba625
authored
Sep 02, 2023
by
liaozan
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Dockerfile
parent
fbd03ddf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
Dockerfile
Dockerfile
+17
-9
No files found.
Dockerfile
View file @
55dba625
...
...
@@ -14,16 +14,24 @@ COPY build-script/scripts/*.sh /app/
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=agent.service_name=${APP_NAME},collector.backend_service=skywalking-oap-server.devops:11800\
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false\
-XX:+UseG1GC -XX:G1HeapRegionSize=8m -XX:+UseStringDeduplication -XX:+ClassUnloading\
-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\
ENV
JVM_OPTS="-javaagent:/opt/skywalking-agent/skywalking-agent.jar \
-XX:+UseG1GC -XX:G1HeapRegionSize=8m -XX:+UseStringDeduplication -XX:+ClassUnloading \
-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"
ENTRYPOINT
["/app/entrypoint.sh"]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment