2018-12-23 00:02:17 +08:00
|
|
|
FROM alpine
|
|
|
|
|
2021-09-02 11:48:28 +08:00
|
|
|
ARG ARTHAS_VERSION="3.5.4"
|
2018-12-23 00:02:17 +08:00
|
|
|
ARG MIRROR=false
|
|
|
|
|
2020-04-02 22:36:59 +08:00
|
|
|
ENV MAVEN_HOST=https://repo1.maven.org/maven2 \
|
|
|
|
MIRROR_MAVEN_HOST=https://maven.aliyun.com/repository/public
|
2018-12-23 00:02:17 +08:00
|
|
|
|
|
|
|
# if use mirror change to aliyun mirror site
|
|
|
|
RUN if $MIRROR; then MAVEN_HOST=${MIRROR_MAVEN_HOST} ; fi && \
|
|
|
|
# download & install arthas
|
|
|
|
wget -qO /tmp/arthas.zip "${MAVEN_HOST}/com/taobao/arthas/arthas-packaging/${ARTHAS_VERSION}/arthas-packaging-${ARTHAS_VERSION}-bin.zip" && \
|
|
|
|
mkdir -p /opt/arthas && \
|
|
|
|
unzip /tmp/arthas.zip -d /opt/arthas && \
|
|
|
|
rm /tmp/arthas.zip
|