21 lines
886 B
Docker
21 lines
886 B
Docker
FROM openjdk:11.0.16-jre-slim-buster
|
|
|
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.4.2}
|
|
ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-collector-boot-${PINPOINT_VERSION}.jar
|
|
|
|
RUN mkdir -p /pinpoint/config \
|
|
&& mkdir -p /pinpoint/scripts
|
|
|
|
COPY /build/config/pinpoint-collector.properties /pinpoint/config/
|
|
COPY /build/scripts/start-collector.sh /pinpoint/scripts/
|
|
#temporary line for local test
|
|
#COPY /pinpoint-collector-boot-2.4.2-SNAPSHOT.jar /pinpoint/pinpoint-collector-boot.jar
|
|
|
|
RUN apt-get update && apt-get install --no-install-recommends -y curl && apt-get clean \
|
|
&& 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"]
|
|
|