1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

fix telegraf

This commit is contained in:
kev 2016-06-01 18:30:12 +08:00
parent ce858ae072
commit d4e3087b4b
3 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,7 @@ ENV TELEGRAF_URL https://dl.influxdata.com/telegraf/releases/${TELEGRAF_FILE}
RUN set -xe \ RUN set -xe \
&& apk add --no-cache --virtual .build-deps ca-certificates curl tar \ && apk add --no-cache --virtual .build-deps ca-certificates curl tar \
&& update-ca-certificates \ && update-ca-certificates \
&& curl -sSL ${TELEGRAF_URL} | tar xz --strip 1 -C / \ && curl -sSL ${TELEGRAF_URL} | tar xz --strip 2 -C / \
&& apk del .build-deps \ && apk del .build-deps \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*

View File

@ -5,4 +5,6 @@ telegraf:
- "8094:8094/tcp" - "8094:8094/tcp"
volumes: volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf - ./telegraf.conf:/etc/telegraf/telegraf.conf
net: host
pid: host
restart: always restart: always

View File

@ -5,4 +5,6 @@ telegraf:
- "8094:8094/tcp" - "8094:8094/tcp"
volumes: volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf - ./telegraf.conf:/etc/telegraf/telegraf.conf
net: host
pid: host
restart: always restart: always