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
64ba12cb
Commit
64ba12cb
authored
Jul 31, 2023
by
liaozan
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update build-script
parent
443a4ff2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
Dockerfile
Dockerfile
+7
-1
entrypoint.sh
entrypoint.sh
+6
-0
k8s-deploy-template.yaml
k8s-deploy-template.yaml
+0
-4
No files found.
Dockerfile
View file @
64ba12cb
...
@@ -10,8 +10,14 @@ COPY --from=builder app/spring-boot-loader/ ./
...
@@ -10,8 +10,14 @@ COPY --from=builder app/spring-boot-loader/ ./
COPY
--from=builder app/snapshot-dependencies/ ./
COPY
--from=builder app/snapshot-dependencies/ ./
COPY
--from=builder app/application/ ./
COPY
--from=builder app/application/ ./
COPY
build-script/entrypoint.sh entrypoint.sh
RUN
chmod
+x /app/entrypoint.sh
ENV
EXT_JVM_OPTS="${JAVA_OPTS}"
ENV
EXT_JVM_OPTS="${JAVA_OPTS}"
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\
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\
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false\
-XX:MaxRAMPercentage=60 -XX:MaxMetaspaceSize=256m\
-XX:MaxRAMPercentage=60 -XX:MaxMetaspaceSize=256m\
...
@@ -19,4 +25,4 @@ ENV JVM_OPTS="-javaagent:/opt/skywalking-agent/skywalking-agent.jar=agent.servic
...
@@ -19,4 +25,4 @@ ENV JVM_OPTS="-javaagent:/opt/skywalking-agent/skywalking-agent.jar=agent.servic
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump/heapdump.hprof -XX:OnOutOfMemoryError=/app/dump-file-rollover.sh\
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/heapdump/heapdump.hprof -XX:OnOutOfMemoryError=/app/dump-file-rollover.sh\
-XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags"
-XX:-OmitStackTraceInFastThrow -XX:+PrintCommandLineFlags"
ENTRYPOINT
exec java $JVM_OPTS $EXT_JVM_OPTS org.springframework.boot.loader.JarLauncher --spring.profiles.active=${PROFILE}
ENTRYPOINT
["/app/entrypoint.sh"]
entrypoint.sh
0 → 100644
View file @
64ba12cb
#!/bin/bash
# Create the required directories
mkdir
-p
"/data/logs/gc"
"/data/heapdump"
# Start process
exec
java
$JVM_OPTS
$EXT_JVM_OPTS
org.springframework.boot.loader.JarLauncher
--spring
.profiles.active
=
$PROFILE
k8s-deploy-template.yaml
View file @
64ba12cb
...
@@ -41,10 +41,6 @@ spec:
...
@@ -41,10 +41,6 @@ spec:
-
name
:
actuator
-
name
:
actuator
containerPort
:
1024
containerPort
:
1024
protocol
:
TCP
protocol
:
TCP
lifecycle
:
postStart
:
exec
:
command
:
[
"
/bin/sh"
,
"
-c"
,
"
umask
0022
&&
mkdir
-p
/data/logs/gc
/data/heapdump"
]
startupProbe
:
startupProbe
:
httpGet
:
httpGet
:
scheme
:
HTTP
scheme
:
HTTP
...
...
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