mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-14 04:35:49 +02:00
22 lines
569 B
Docker
22 lines
569 B
Docker
#
|
|
# Dockerfile for telegraf-arm
|
|
#
|
|
|
|
FROM easypi/alpine-arm
|
|
MAINTAINER kev <noreply@easypi.info>
|
|
|
|
ENV TELEGRAF_VERSION 0.13.1
|
|
ENV TELEGRAF_FILE telegraf-${TELEGRAF_VERSION}_linux_armhf.tar.gz
|
|
ENV TELEGRAF_URL https://dl.influxdata.com/telegraf/releases/${TELEGRAF_FILE}
|
|
|
|
RUN set -xe \
|
|
&& apk add --no-cache --virtual .build-deps ca-certificates curl tar \
|
|
&& update-ca-certificates \
|
|
&& curl -sSL ${TELEGRAF_URL} | tar xz --strip 2 -C / \
|
|
&& apk del .build-deps \
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
EXPOSE 8092/udp 8094/tcp 8125/udp
|
|
|
|
ENTRYPOINT ["telegraf"]
|