Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
angelSuho authored Jul 5, 2023
1 parent 3044629 commit 47792d3
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
FROM openjdk:17-jdk-alpine
ADD https://github.com/pinpoint-apm/pinpoint/releases/download/v2.5.2/pinpoint-agent-2.5.2.tar.gz /usr/local/
RUN tar -zxvf /usr/local/pinpoint-agent-2.5.2.tar.gz -C /usr/local/
RUN sed -i 's/profiler\.transport\.grpc\.collector\.ip=127\.0\.0\.1/profiler.transport.grpc.collector.ip=101.101.219.220/' /usr/local/pinpoint-agent-2.5.2/pinpoint-root.config
RUN sed -i 's/profiler.transport.grpc.agent.collector.port=9991/profiler.transport.grpc.agent.collector.port=9994/g' /usr/local/pinpoint-agent-2.5.2/pinpoint-root.config
RUN sed -i 's/profiler.transport.grpc.metadata.collector.port=9991/profiler.transport.grpc.metadata.collector.port=9994/g' /usr/local/pinpoint-agent-2.5.2/pinpoint-root.config
ARG JAR_FILE=build/libs/*.jar
ADD https://github.com/pinpoint-apm/pinpoint/releases/download/1.7.3/pinpoint-agent-1.7.3.tar.gz /usr/local/
RUN tar -zxvf /usr/local/pinpoint-agent-1.7.3.tar.gz -C /usr/local/
RUN sed -i 's/profiler.collector.ip=127.0.0.1/profiler.collector.ip=101.101.219.220/g'ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar
EXPOSE 8080
ENTRYPOINT ["java","-jar", \
"-javaagent:/usr/local/pinpoint-agent-2.5.2/pinpoint-bootstrap-2.5.2.jar", \
"-javaagent:/usr/local/pinpoint-agent-1.7.3/pinpoint-bootstrap-1.7.3.jar", \
"-Dpinpoint.applicationName=TrendPick", \
"-Dpinpoint.config=/usr/local/pinpoint-agent-2.5.2/pinpoint-root.config", \
"-Dpinpoint.config=/usr/local/pinpoint-agent-1.7.3/pinpoint.config", \
"-Dspring.profiles.active=prod", \
"/app.jar"]

0 comments on commit 47792d3

Please sign in to comment.