pinpoint-docker-fork/pinpoint-batch/Dockerfile

17 lines
727 B
Docker
Raw Normal View History

2022-07-28 09:24:05 +00:00
FROM openjdk:11.0.16-jre-slim-buster
2022-04-20 07:31:50 +00:00
2022-08-04 05:49:35 +00:00
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.4.1}
2022-04-20 07:31:50 +00:00
ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-batch-${PINPOINT_VERSION}.jar
RUN mkdir -p /pinpoint/config \
&& mkdir -p /pinpoint/scripts
COPY /build/config/pinpoint-batch.properties /pinpoint/config/
COPY /build/scripts/start-batch.sh /pinpoint/scripts/
2022-07-28 09:24:05 +00:00
RUN apt-get update && apt-get install --no-install-recommends -y curl && apt-get clean \
2022-04-20 07:31:50 +00:00
&& chmod a+x /pinpoint/scripts/start-batch.sh \
&& chmod a+x /pinpoint/config/pinpoint-batch.properties \
&& curl -SL ${INSTALL_URL} -o /pinpoint/pinpoint-batch.jar
ENTRYPOINT ["sh", "/pinpoint/scripts/start-batch.sh"]