From 3044629ab7124a42d97d7e0e1fc3b5a1440620fb Mon Sep 17 00:00:00 2001 From: SoohoLee Date: Wed, 5 Jul 2023 14:20:23 +0900 Subject: [PATCH] Update Dockerfile --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 45e7b449..86e95055 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,15 @@ 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/profiles/release/pinpoint.config -RUN sed -i 's/profiler\.collector\.ip=127\.0\.0\.1/profiler.collector.ip=101.101.219.220/' /usr/local/pinpoint-agent-2.5.2/profiles/release/pinpoint.config +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 COPY ${JAR_FILE} app.jar EXPOSE 8080 ENTRYPOINT ["java","-jar", \ "-javaagent:/usr/local/pinpoint-agent-2.5.2/pinpoint-bootstrap-2.5.2.jar", \ "-Dpinpoint.applicationName=TrendPick", \ -"-Dpinpoint.config=/usr/local/pinpoint-agent-2.5.2/profiles/release/pinpoint.config", \ +"-Dpinpoint.config=/usr/local/pinpoint-agent-2.5.2/pinpoint-root.config", \ "-Dspring.profiles.active=prod", \ "/app.jar"]