2020-08-25 23:51:56 +00:00
|
|
|
FROM openjdk:8-jdk-alpine
|
2018-05-11 09:30:45 +00:00
|
|
|
|
|
|
|
LABEL maintainer="Roy Kim <roy.kim@navercorp.com>"
|
|
|
|
|
2020-07-23 08:27:49 +00:00
|
|
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.0.4}
|
2020-08-25 23:51:56 +00:00
|
|
|
ARG INSTALL_URL=https://github.com/naver/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-web-boot-${PINPOINT_VERSION}.jar
|
2018-05-11 09:30:45 +00:00
|
|
|
|
2020-08-25 23:51:56 +00:00
|
|
|
RUN mkdir -p /pinpoint/config \
|
|
|
|
&& mkdir -p /pinpoint/scripts
|
2018-05-11 09:30:45 +00:00
|
|
|
|
2020-08-25 23:51:56 +00:00
|
|
|
COPY /build/config/pinpoint-web.properties /pinpoint/config/
|
|
|
|
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
|
2018-05-11 09:30:45 +00:00
|
|
|
|
2020-09-10 13:14:21 +00:00
|
|
|
RUN apk --no-cache add curl \
|
|
|
|
&& chmod a+x /pinpoint/scripts/start-web.sh \
|
2020-08-25 23:51:56 +00:00
|
|
|
&& chmod a+x /pinpoint/config/pinpoint-web.properties \
|
|
|
|
&& curl -SL ${INSTALL_URL} -o /pinpoint/pinpoint-web-boot.jar
|
|
|
|
|
|
|
|
#entry point to start-web.sh for future use.
|
|
|
|
ENTRYPOINT ["sh", "/pinpoint/scripts/start-web.sh"]
|