2018-05-11 09:30:45 +00:00
|
|
|
FROM tomcat:8-jre8
|
|
|
|
|
|
|
|
LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"
|
|
|
|
|
2020-03-13 11:28:00 +00:00
|
|
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.0.1}
|
2018-05-11 09:30:45 +00:00
|
|
|
|
2020-03-16 02:39:47 +00:00
|
|
|
ARG INSTALL_URL=https://github.com/naver/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-collector-${PINPOINT_VERSION}.war
|
2018-05-11 09:30:45 +00:00
|
|
|
|
|
|
|
COPY /build/scripts/start-collector.sh /usr/local/bin/
|
|
|
|
|
2020-03-16 02:41:53 +00:00
|
|
|
RUN chmod a+x /usr/local/bin/start-collector.sh \
|
|
|
|
&& curl -SL ${INSTALL_URL} -o pinpoint-collector.war \
|
|
|
|
&& rm -rf /usr/local/tomcat/webapps \
|
|
|
|
&& mkdir -p /usr/local/tomcat/webapps \
|
|
|
|
&& unzip pinpoint-collector.war -d /usr/local/tomcat/webapps/ROOT \
|
|
|
|
&& rm -rf pinpoint-collector.war \
|
|
|
|
&& sed -i "s/8005/9005/g" /usr/local/tomcat/conf/server.xml \
|
2018-05-11 09:30:45 +00:00
|
|
|
&& sed -i "s/8080/9080/g" /usr/local/tomcat/conf/server.xml \
|
|
|
|
&& sed -i "s/8009/9009/g" /usr/local/tomcat/conf/server.xml \
|
|
|
|
&& sed -i "s/8443/9443/g" /usr/local/tomcat/conf/server.xml
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/start-collector.sh"]
|
|
|
|
|