[#naver/pinpoint#6598] add spring profiles

This commit is contained in:
Roy Kim
2020-03-16 16:01:28 +09:00
committed by Roy Kim
parent d26879d8f0
commit 3748be1ab7
18 changed files with 25 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
### Pinpoint with Java
PINPOINT_VERSION=2.0.1
SPRING_PROFILES=release
AGENT_ID=app-in-docker
APP_NAME=quickapp

View File

@@ -5,7 +5,7 @@ LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"
ARG PINPOINT_VERSION
ARG AGENT_ID
ARG APP_NAME
ENV JAVA_OPTS="-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME}"
ENV JAVA_OPTS="-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME} -Dspring.profiles.active=${SPRING_PROFILES}"
RUN mkdir -p javasample
COPY build/Sample.java javasample

View File

@@ -9,6 +9,7 @@ services:
- PINPOINT_VERSION=${PINPOINT_VERSION}
- AGENT_ID=${AGENT_ID}
- APP_NAME=${APP_NAME}
- SPRING_PROFILES=${SPRING_PROFILES}
container_name: "java"
image: "Your Image"