2018-05-11 09:30:45 +00:00
|
|
|
FROM alpine:3.7
|
|
|
|
|
2022-09-30 03:32:07 +00:00
|
|
|
ARG PINPOINT_VERSION=${PINPOINT_VERSION:-2.4.2}
|
2022-04-20 07:31:50 +00:00
|
|
|
ARG INSTALL_URL=https://github.com/pinpoint-apm/pinpoint/releases/download/v${PINPOINT_VERSION}/pinpoint-agent-${PINPOINT_VERSION}.tar.gz
|
2018-05-11 09:30:45 +00:00
|
|
|
|
|
|
|
COPY /build/scripts/configure-agent.sh /usr/local/bin/
|
|
|
|
|
|
|
|
RUN apk add --update curl bash \
|
|
|
|
&& chmod a+x /usr/local/bin/configure-agent.sh \
|
|
|
|
&& mkdir -p /pinpoint-agent \
|
|
|
|
&& chmod -R o+x /pinpoint-agent \
|
|
|
|
&& curl -SL ${INSTALL_URL} -o pinpoint-agent.tar.gz \
|
|
|
|
&& gunzip pinpoint-agent.tar.gz \
|
2020-03-18 01:35:54 +00:00
|
|
|
&& tar -xf pinpoint-agent.tar --strip 1 -C /pinpoint-agent \
|
2018-05-11 09:30:45 +00:00
|
|
|
&& rm pinpoint-agent.tar \
|
|
|
|
&& apk del curl \
|
|
|
|
&& rm /var/cache/apk/*
|
|
|
|
|
|
|
|
VOLUME ["/pinpoint-agent"]
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/configure-agent.sh"]
|
|
|
|
CMD ["tail", "-f", "/dev/null"]
|