Fix library path

This commit is contained in:
Dawid Malinowski
2017-01-08 13:58:56 +01:00
parent 317c8adfcd
commit 1ae4cfd8ba
+4 -5
View File
@@ -10,17 +10,16 @@ ADD configure-agent.sh /usr/local/bin/
RUN apk add --update curl bash \
&& chmod a+x /usr/local/bin/configure-agent.sh \
&& mkdir -p /assets \
&& mkdir -p /assets/pinpoint-agent \
&& curl -SL https://raw.githubusercontent.com/naver/pinpoint/$PINPOINT_VERSION/agent/src/main/resources/pinpoint.config -o /assets/pinpoint.config \
&& curl -SL https://github.com/naver/pinpoint/releases/download/$PINPOINT_VERSION/pinpoint-agent-$PINPOINT_VERSION.tar.gz -o pinpoint-agent-$PINPOINT_VERSION.tar.gz \
&& gunzip pinpoint-agent-$PINPOINT_VERSION.tar.gz \
&& tar -xf pinpoint-agent-$PINPOINT_VERSION.tar -C /assets \
&& if test -d /assets/pinpoint-agent-$PINPOINT_VERSION; then mv /assets/pinpoint-agent-$PINPOINT_VERSION /assets/pinpoint-agent; fi \
&& sed -i 's/DEBUG/INFO/' /assets/lib/log4j.xml \
&& tar -xf pinpoint-agent-$PINPOINT_VERSION.tar -C /assets/pinpoint-agent \
&& sed -i 's/DEBUG/INFO/' /assets/pinpoint-agent/lib/log4j.xml \
&& rm pinpoint-agent-$PINPOINT_VERSION.tar \
&& apk del curl \
&& rm /var/cache/apk/*
VOLUME /assets/pinpoint-agent
VOLUME ["/assets/pinpoint-agent"]
ENTRYPOINT ["/usr/local/bin/configure-agent.sh"]