Initial updates

This commit is contained in:
Roy Kim
2018-05-11 18:30:45 +09:00
commit c49e5665fa
40 changed files with 1375 additions and 0 deletions

22
pinpoint-quickstart/.env Normal file
View File

@@ -0,0 +1,22 @@
PINPOINT_VERSION=1.7.2
### Pinpoint-Agent
PINPOINT_AGENT_NAME=pinpoint-agent
#collector information required
COLLECTOR_IP=
COLLECTOR_TCP_PORT=9994
COLLECTOR_STAT_PORT=9995
COLLECTOR_SPAN_PORT=9996
# Set sampling rate. If you set it to N, 1 out of N transaction will be sampled.
PROFILER_SAMPLING_RATE=1
AGENT_ID=app-in-docker
APP_NAME=quickapp
AGENT_DEBUG_LEVEL=INFO
### Pinpoint-quickstart
APP_PORT=8000

View File

@@ -0,0 +1,12 @@
FROM tomcat:8-jre8
LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"
COPY /build/pinpoint-quickstart-testapp.war quickstart.war
RUN rm -rf /usr/local/tomcat/webapps \
&& mkdir -p /usr/local/tomcat/webapps \
&& unzip quickstart.war -d /usr/local/tomcat/webapps/ROOT \
&& rm -rf quickstart.war
CMD [ "catalina.sh", "run" ]

View File

@@ -0,0 +1,51 @@
version: "3.6"
services:
pinpoint-quickstart:
build:
context: .
dockerfile: Dockerfile
container_name: "pinpoint-quickstart"
image: "pinpointdocker/pinpoint-quickstart"
ports:
- "${APP_PORT:-8080}:8080"
volumes:
- data-volume:/pinpoint-agent
environment:
JAVA_OPTS: "-javaagent:/pinpoint-agent/pinpoint-bootstrap-${PINPOINT_VERSION}.jar -Dpinpoint.agentId=${AGENT_ID} -Dpinpoint.applicationName=${APP_NAME}"
networks:
- pinpoint
depends_on:
- pinpoint-agent
pinpoint-agent:
build:
context: ../pinpoint-agent/
dockerfile: Dockerfile
args:
- PINPOINT_VERSION=${PINPOINT_VERSION}
container_name: "${PINPOINT_AGENT_NAME}"
image: "pinpointdocker/pinpoint-agent:${PINPOINT_VERSION}"
restart: unless-stopped
networks:
- pinpoint
volumes:
- data-volume:/pinpoint-agent
environment:
- COLLECTOR_IP=${COLLECTOR_IP}
- COLLECTOR_TCP_PORT=${COLLECTOR_TCP_PORT}
- COLLECTOR_STAT_PORT=${COLLECTOR_STAT_PORT}
- COLLECTOR_SPAN_PORT=${COLLECTOR_SPAN_PORT}
- PROFILER_SAMPLING_RATE=${PROFILER_SAMPLING_RATE}
- DEBUG_LEVEL=${AGENT_DEBUG_LEVEL}
volumes:
data-volume:
networks:
pinpoint:
driver: bridge