Skip to content

Commit

Permalink
add missing files for 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
ssoroka committed Dec 24, 2020
1 parent 2252838 commit 636da53
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
6 changes: 4 additions & 2 deletions telegraf/1.14/Dockerfile → telegraf/1.17/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM buildpack-deps:stretch-curl
FROM buildpack-deps:buster-curl

RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends iputils-ping snmp procps lm-sensors && \
rm -rf /var/lib/apt/lists/*

RUN set -ex && \
mkdir ~/.gnupg; \
echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf; \
for key in \
05CE15085FC09D18E99EFB22684A14CF2582E0C5 ; \
do \
Expand All @@ -13,7 +15,7 @@ RUN set -ex && \
gpg --keyserver keyserver.pgp.com --recv-keys "$key" ; \
done

ENV TELEGRAF_VERSION 1.14.5
ENV TELEGRAF_VERSION 1.17.0
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
case "${dpkgArch##*-}" in \
amd64) ARCH='amd64';; \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
RUN apk add --no-cache iputils ca-certificates net-snmp-tools procps lm_sensors tzdata && \
update-ca-certificates

ENV TELEGRAF_VERSION 1.14.5
ENV TELEGRAF_VERSION 1.17.0

RUN set -ex && \
mkdir ~/.gnupg; \
Expand All @@ -17,14 +17,14 @@ RUN set -ex && \
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --keyserver keyserver.pgp.com --recv-keys "$key" ; \
done && \
wget --no-verbose https://dl.influxdata.com/telegraf/releases/telegraf-${TELEGRAF_VERSION}-static_linux_amd64.tar.gz.asc && \
wget --no-verbose 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 && \
wget --no-verbose https://dl.influxdata.com/telegraf/releases/telegraf-${TELEGRAF_VERSION}_static_linux_amd64.tar.gz.asc && \
wget --no-verbose 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/ && \
tar -C /usr/src -xzf telegraf-${TELEGRAF_VERSION}_static_linux_amd64.tar.gz && \
mv /usr/src/telegraf*/etc/telegraf/telegraf.conf /etc/telegraf/ && \
mkdir /etc/telegraf/telegraf.d && \
cp -a /usr/src/telegraf*/usr/bin/telegraf /usr/bin/ && \
gpgconf --kill all && \
rm -rf *.tar.gz* /usr/src /root/.gnupg && \
apk del .build-deps
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 636da53

Please sign in to comment.