pinpoint-docker-fork/pinpoint-collector/Dockerfile

21 lines
816 B
Docker
Raw Normal View History

FROM openjdk:8-jdk-alpine
2018-05-11 09:30:45 +00:00
2022-05-30 10:41:05 +00:00
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.4.0}
2022-04-20 07:31:50 +00:00
ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-collector-boot-${PINPOINT_VERSION}.jar
2018-05-11 09:30:45 +00:00
RUN mkdir -p /pinpoint/config \
&& mkdir -p /pinpoint/scripts
2018-05-11 09:30:45 +00:00
COPY /build/config/pinpoint-collector.properties /pinpoint/config/
COPY /build/scripts/start-collector.sh /pinpoint/scripts/
#temporary line for local test
2022-05-30 10:41:05 +00:00
#COPY /pinpoint-collector-boot-2.4.0-SNAPSHOT.jar /pinpoint/pinpoint-collector-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-collector.sh \
&& chmod a+x /pinpoint/config/pinpoint-collector.properties \
&& curl -SL ${INSTALL_URL} -o /pinpoint/pinpoint-collector-boot.jar
ENTRYPOINT ["sh", "/pinpoint/scripts/start-collector.sh"]
2018-05-11 09:30:45 +00:00