Public | Automated Build

Last pushed: 2 years ago
Dockerfile
FROM alpine:3.4 ENV TELEGRAF_VERSION 1.0.0-beta2 RUN apk add --no-cache --virtual .build-deps wget gnupg tar ca-certificates && \ update-ca-certificates && \ gpg --keyserver hkp://ha.pool.sks-keyservers.net \ --recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5 && \ wget -q https://dl.influxdata.com/telegraf/releases/telegraf-${TELEGRAF_VERSION}-static_linux_amd64.tar.gz.asc && \ wget -q https://dl.influxdata.com/telegraf/releases/telegraf-${TELEGRAF_VERSION}-static_linux_amd64.tar.gz && \ gpg --batch --verify telegraf-${TELEGRAF_VERSION}-static_linux_amd64.tar.gz.asc telegraf-${TELEGRAF_VERSION}-static_linux_amd64.tar.gz && \ mkdir -p /usr/src /etc/telegraf && \ tar -C /usr/src -xzf telegraf-${TELEGRAF_VERSION}-static_linux_amd64.tar.gz && \ mv /usr/src/telegraf*/telegraf.conf /etc/telegraf/ && \ chmod +x /usr/src/telegraf*/* && \ cp -a /usr/src/telegraf*/* /usr/bin/ && \ rm -rf *.tar.gz* /usr/src /root/.gnupg && \ apk del .build-deps EXPOSE 8125/udp 8092/udp 8094 RUN rm /etc/telegraf/telegraf.conf COPY tele.conf /etc/telegraf/telegraf.conf COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] CMD ["telegraf"]
Source Repository