Skip to content

Commit

Permalink
build: pinpoint 관련 JAVA_OPTS 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sukkyun2 committed Sep 24, 2023
1 parent bd15415 commit 745973e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy with Docker

on:
push:
branches: [ master ]
branches: [ master, build/* ]

env:
DOCKER_IMAGE: ghcr.io/${{ github.actor }}/sbb
Expand Down
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,12 @@ COPY --from=build ${EXTRACTED}/dependencies/ ./
COPY --from=build ${EXTRACTED}/spring-boot-loader/ ./
COPY --from=build ${EXTRACTED}/snapshot-dependencies/ ./
COPY --from=build ${EXTRACTED}/application/ ./
ENTRYPOINT ["java","org.springframework.boot.loader.JarLauncher"]

ARG PINPOINT_VERSION
ARG AGENT_ID
ARG APP_NAME
ARG SPRING_PROFILES

ARG JAVA_OPTS="-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME} -Dpinpoint.profiler.profiles.active=${SPRING_PROFILES}"

ENTRYPOINT ["java","${JAVA_OPT}","org.springframework.boot.loader.JarLauncher"]

0 comments on commit 745973e

Please sign in to comment.