diff --git a/.env b/.env index 65cb19a..5219c6e 100644 --- a/.env +++ b/.env @@ -7,7 +7,6 @@ PINPOINT_ZOOKEEPER_ADDRESS=zoo1 PINPOINT_HBASE_NAME=pinpoint-hbase #config for hbase in external docker -EXTERNAL_HBASE_PORT=2181 ### Pinpoint-mysql MYSQL_ROOT_PASSWORD=root123 diff --git a/docker-compose.yml b/docker-compose.yml index 86efd4e..2a8ef51 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -71,7 +71,6 @@ services: - pinpoint-mysql restart: always expose: - - "${SERVER_PORT:-8080}" - "9997" ports: - "9997:9997" diff --git a/pinpoint-agent/build/scripts/configure-agent.sh b/pinpoint-agent/build/scripts/configure-agent.sh index 7ed5bec..74f5554 100644 --- a/pinpoint-agent/build/scripts/configure-agent.sh +++ b/pinpoint-agent/build/scripts/configure-agent.sh @@ -2,24 +2,22 @@ set -e set -x -sed -i "/profiler.transport.module=/ s/=.*/=${PROFILER_TRANSPORT_MODULE}/" /pinpoint-agent/pinpoint.config -sed -i "/profiler.transport.module=/ s/=.*/=${PROFILER_TRANSPORT_MODULE}/" /pinpoint-agent/profiles/${SPRING_PROFILES}/pinpoint-env.config +#sed -i "/profiler.transport.module=/ s/=.*/=${PROFILER_TRANSPORT_MODULE}/" /pinpoint-agent/pinpoint.config +sed -i "/profiler.transport.module=/ s/=.*/=${PROFILER_TRANSPORT_MODULE}/" /pinpoint-agent/profiles/${SPRING_PROFILES}/pinpoint.config -sed -i "/profiler.collector.ip=/ s/=.*/=${COLLECTOR_IP}/" /pinpoint-agent/pinpoint.config -sed -i "/profiler.collector.tcp.port=/ s/=.*/=${COLLECTOR_TCP_PORT}/" /pinpoint-agent/pinpoint.config -sed -i "/profiler.collector.stat.port=/ s/=.*/=${COLLECTOR_STAT_PORT}/" /pinpoint-agent/pinpoint.config -sed -i "/profiler.collector.span.port=/ s/=.*/=${COLLECTOR_SPAN_PORT}/" /pinpoint-agent/pinpoint.config +sed -i "/profiler.collector.ip=/ s/=.*/=${COLLECTOR_IP}/" /pinpoint-agent/profiles/${SPRING_PROFILES}/pinpoint.config +sed -i "/profiler.collector.tcp.port=/ s/=.*/=${COLLECTOR_TCP_PORT}/" /pinpoint-agent/pinpoint-root.config +sed -i "/profiler.collector.stat.port=/ s/=.*/=${COLLECTOR_STAT_PORT}/" /pinpoint-agent/pinpoint-root.config +sed -i "/profiler.collector.span.port=/ s/=.*/=${COLLECTOR_SPAN_PORT}/" /pinpoint-agent/pinpoint-root.config -sed -i "/profiler.transport.grpc.collector.ip=/ s/=.*/=${COLLECTOR_IP}/" /pinpoint-agent/pinpoint.config -sed -i "/profiler.transport.grpc.collector.ip=/ s/=.*/=${COLLECTOR_IP}/" /pinpoint-agent/profiles/${SPRING_PROFILES}/pinpoint-env.config -sed -i "/profiler.transport.grpc.agent.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint.config -sed -i "/profiler.transport.grpc.metadata.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint.config -sed -i "/profiler.transport.grpc.stat.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_STAT_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint.config -sed -i "/profiler.transport.grpc.span.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint.config -sed -i "/profiler.sampling.rate=/ s/=.*/=${PROFILER_SAMPLING_RATE}/" /pinpoint-agent/profiles/${SPRING_PROFILES}/pinpoint-env.config +#sed -i "/profiler.transport.grpc.collector.ip=/ s/=.*/=${COLLECTOR_IP}/" /pinpoint-agent/pinpoint.config +sed -i "/profiler.transport.grpc.collector.ip=/ s/=.*/=${COLLECTOR_IP}/" /pinpoint-agent/profiles/${SPRING_PROFILES}/pinpoint.config +sed -i "/profiler.transport.grpc.agent.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_AGENT_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint-root.config +sed -i "/profiler.transport.grpc.metadata.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_METADATA_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint-root.config +sed -i "/profiler.transport.grpc.stat.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_STAT_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint-root.config +sed -i "/profiler.transport.grpc.span.collector.port=/ s/=.*/=${PROFILER_TRANSPORT_SPAN_COLLECTOR_PORT}/" /pinpoint-agent/pinpoint-root.config +sed -i "/profiler.sampling.rate=/ s/=.*/=${PROFILER_SAMPLING_RATE}/" /pinpoint-agent/profiles/${SPRING_PROFILES}/pinpoint.config -sed -i "/level value=/ s/=.*/=\"${DEBUG_LEVEL}\"\/>/g" /pinpoint-agent/profiles/${SPRING_PROFILES}/log4j.xml - -#ln -s /pinpoint-agent /pinpoint-agent +sed -i "/Root level=/ s/=.*/=\"${DEBUG_LEVEL}\"\/>/g" /pinpoint-agent/profiles/${SPRING_PROFILES}/log4j2.xml exec "$@" diff --git a/pinpoint-collector/Dockerfile b/pinpoint-collector/Dockerfile index 445bd27..74c39e4 100644 --- a/pinpoint-collector/Dockerfile +++ b/pinpoint-collector/Dockerfile @@ -4,7 +4,7 @@ LABEL maintainer="Roy Kim " ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.0.4} -ARG INSTALL_URL=https://github.com/naver/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-collector-boot-${PINPOINT_VERSION}.war +ARG INSTALL_URL=https://github.com/naver/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-collector-boot-${PINPOINT_VERSION}.jar RUN mkdir -p /pinpoint/config \ && mkdir -p /pinpoint/scripts @@ -14,7 +14,8 @@ COPY /build/scripts/start-collector.sh /pinpoint/scripts/ #temporary line for local test #COPY /pinpoint-collector-boot-2.1.0-SNAPSHOT.jar /pinpoint/pinpoint-collector-boot.jar -RUN chmod a+x /pinpoint/scripts/start-collector.sh \ +RUN apk --no-cache add curl \ + && chmod a+x /pinpoint/scripts/start-collector.sh \ && chmod a+x /pinpoint/config/pinpoint-collector.properties \ && curl -SL ${INSTALL_URL} -o /pinpoint/pinpoint-collector-boot.jar diff --git a/pinpoint-collector/build/scripts/start-collector.sh b/pinpoint-collector/build/scripts/start-collector.sh index 724b7f3..9973d9e 100644 --- a/pinpoint-collector/build/scripts/start-collector.sh +++ b/pinpoint-collector/build/scripts/start-collector.sh @@ -2,4 +2,4 @@ set -e set -x -exec java -jar /pinpoint/pinpoint-collector-boot.jar --spring.config.additional-location=/pinpoint/config/pinpoint-web.properties \ No newline at end of file +exec java -jar /pinpoint/pinpoint-collector-boot.jar --spring.config.additional-location=/pinpoint/config/pinpoint-collector.properties \ No newline at end of file diff --git a/pinpoint-hbase/docker-compose.yml b/pinpoint-hbase/docker-compose.yml index 2e9583e..c6e3a0b 100644 --- a/pinpoint-hbase/docker-compose.yml +++ b/pinpoint-hbase/docker-compose.yml @@ -15,8 +15,8 @@ services: - /home/pinpoint/hbase - /home/pinpoint/zookeeper expose: - # zookeeper - - "2181" +# # zookeeper +# - "2181" # HBase Master API port - "60000" # HBase Master Web UI diff --git a/pinpoint-web/Dockerfile b/pinpoint-web/Dockerfile index 9f92495..99745b1 100644 --- a/pinpoint-web/Dockerfile +++ b/pinpoint-web/Dockerfile @@ -13,7 +13,8 @@ COPY /build/scripts/start-web.sh /pinpoint/scripts/ #temporary line for local test #COPY /pinpoint-web-boot-2.1.0-SNAPSHOT.jar /pinpoint/pinpoint-web-boot.jar -RUN chmod a+x /pinpoint/scripts/start-web.sh \ +RUN apk --no-cache add curl \ + && chmod a+x /pinpoint/scripts/start-web.sh \ && chmod a+x /pinpoint/config/pinpoint-web.properties \ && curl -SL ${INSTALL_URL} -o /pinpoint/pinpoint-web-boot.jar