Skip to content

Commit

Permalink
[BE] ๐Ÿ“ docs : jconsole ์„ค์ • merge
Browse files Browse the repository at this point in the history
[BE] ๐Ÿ“ docs : jconsole ์„ค์ • #559
  • Loading branch information
hobeen-kim authored Oct 19, 2023
2 parents 2b4329f + 2da6581 commit 70686c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ ARG JAR_FILE=build/libs/*-SNAPSHOT.jar
# (3) jar ๋นŒ๋“œ ํŒŒ์ผ์„ ๋„์ปค ์ปจํ…Œ์ด๋„ˆ๋กœ ๋ณต์‚ฌ
COPY ${JAR_FILE} app.jar
COPY src/main/resources/prometheus.pem prometheus.pem
COPY start.sh start.sh

# (4) pem ํŒŒ์ผ์˜ ๊ถŒํ•œ ์„ค์ •
RUN groupadd -r ubuntu && useradd -r -g ubuntu ubuntu \
&& chmod 400 prometheus.pem && chown ubuntu:ubuntu prometheus.pem
&& chmod 400 prometheus.pem && chown ubuntu:ubuntu prometheus.pem \
&& chmod +x start.sh # ์Šคํฌ๋ฆฝํŠธ์— ์‹คํ–‰ ๊ถŒํ•œ ๋ถ€์—ฌ

# (5) jar ํŒŒ์ผ ์‹คํ–‰
ENTRYPOINT ["java","-jar","/app.jar"]
CMD ["./start.sh"]
3 changes: 2 additions & 1 deletion Server/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ spring:
properties:
hibernate:
dialect: com.server.global.dialect.CustomMySQL8Dialect

# open-in-view: false

pem:
location: /prometheus.pem
Expand All @@ -118,3 +118,4 @@ decorator:

warmup:
is-completed: true

1 change: 1 addition & 0 deletions Server/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exec java $JAVA_OPTS -jar app.jar

0 comments on commit 70686c9

Please sign in to comment.