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
6d82ee8a
Commit
6d82ee8a
authored
Sep 27, 2022
by
huangxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
@dev move EXT_JVM_OPTS to ENTRYPOINT
parent
5648bd9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Dockerfile
Dockerfile
+2
-2
No files found.
Dockerfile
View file @
6d82ee8a
...
...
@@ -17,6 +17,6 @@ ENV EXT_JVM_OPTS="${JAVA_OPTS}"
ENV
JVM_OPTS="-XX:MaxRAMPercentage=75 -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m\
-XX:+UseG1GC -XX:G1HeapRegionSize=2m -Xlog:gc*:/data/logs/gc/gc-%t.log:time,uptime\
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump.hprof\
-XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags
$EXT_JVM_OPTS
"
-XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags"
ENTRYPOINT
exec java $JVM_OPTS org.springframework.boot.loader.JarLauncher --spring.profiles.active=${PROFILE}
\ No newline at end of file
ENTRYPOINT
exec java $JVM_OPTS $EXT_JVM_OPTS org.springframework.boot.loader.JarLauncher --spring.profiles.active=${PROFILE}
\ No newline at end of file
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