File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,12 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
13
13
armel) ARCH='armel' ;; \
14
14
*) echo "Unsupported architecture: ${dpkgArch}" ; exit 1;; \
15
15
esac && \
16
- wget --no-verbose https://dl.influxdata.com/telegraf/releases /telegraf_${TELEGRAF_VERSION}_${ARCH}.deb && \
16
+ wget --no-verbose https://dl.influxdata.com/telegraf/nightlies /telegraf_${TELEGRAF_VERSION}_${ARCH}.deb && \
17
17
dpkg -i telegraf_${TELEGRAF_VERSION}_${ARCH}.deb && \
18
18
rm -f telegraf_${TELEGRAF_VERSION}_${ARCH}.deb*
19
19
20
20
EXPOSE 8125/udp 8092/udp 8094
21
21
22
- USER telegraf
23
-
24
22
COPY entrypoint.sh /entrypoint.sh
25
23
ENTRYPOINT ["/entrypoint.sh" ]
26
24
CMD ["telegraf" ]
Original file line number Diff line number Diff line change @@ -4,15 +4,13 @@ RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
4
4
RUN apk add --no-cache iputils ca-certificates net-snmp-tools procps lm_sensors tzdata su-exec && \
5
5
update-ca-certificates
6
6
7
-
8
7
ENV TELEGRAF_VERSION nightly
9
8
10
9
RUN set -ex && \
11
10
apk add --no-cache --virtual .build-deps wget tar && \
12
- wget --no-verbose https://dl.influxdata.com/telegraf/nightlies/telegraf-static-${TELEGRAF_VERSION}_linux_amd64.tar.gz.asc && \
13
- wget --no-verbose https://dl.influxdata.com/telegraf/nightlies/telegraf-static-${TELEGRAF_VERSION}_linux_amd64.tar.gz && \
11
+ wget --no-verbose https://dl.influxdata.com/telegraf/nightlies/telegraf-${TELEGRAF_VERSION}_static_linux_amd64.tar.gz && \
14
12
mkdir -p /usr/src /etc/telegraf && \
15
- tar -C /usr/src -xzf telegraf-static- ${TELEGRAF_VERSION}_linux_amd64 .tar.gz && \
13
+ tar -C /usr/src -xzf telegraf-${TELEGRAF_VERSION}_static_linux_amd64 .tar.gz && \
16
14
mv /usr/src/telegraf*/etc/telegraf/telegraf.conf /etc/telegraf/ && \
17
15
mkdir /etc/telegraf/telegraf.d && \
18
16
cp -a /usr/src/telegraf*/usr/bin/telegraf /usr/bin/ && \
@@ -25,8 +23,6 @@ RUN set -ex && \
25
23
26
24
EXPOSE 8125/udp 8092/udp 8094
27
25
28
- USER telegraf
29
-
30
26
COPY entrypoint.sh /entrypoint.sh
31
27
ENTRYPOINT ["/entrypoint.sh" ]
32
28
CMD ["telegraf" ]
You can’t perform that action at this time.
0 commit comments