telegraf 1.7.0
This commit is contained in:
Родитель
fe4f81c2e5
Коммит
c9cd99dc6f
|
@ -0,0 +1,35 @@
|
|||
FROM buildpack-deps:stretch-curl
|
||||
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends iputils-ping snmp procps && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN set -ex && \
|
||||
for key in \
|
||||
05CE15085FC09D18E99EFB22684A14CF2582E0C5 ; \
|
||||
do \
|
||||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" || \
|
||||
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
|
||||
gpg --keyserver keyserver.pgp.com --recv-keys "$key" ; \
|
||||
done
|
||||
|
||||
ENV TELEGRAF_VERSION 1.7.0
|
||||
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
|
||||
case "${dpkgArch##*-}" in \
|
||||
amd64) ARCH='amd64';; \
|
||||
arm64) ARCH='arm64';; \
|
||||
armhf) ARCH='armhf';; \
|
||||
armel) ARCH='armel';; \
|
||||
*) echo "Unsupported architecture: ${dpkgArch}"; exit 1;; \
|
||||
esac && \
|
||||
wget --no-verbose https://dl.influxdata.com/telegraf/releases/telegraf_${TELEGRAF_VERSION}-1_${ARCH}.deb.asc && \
|
||||
wget --no-verbose https://dl.influxdata.com/telegraf/releases/telegraf_${TELEGRAF_VERSION}-1_${ARCH}.deb && \
|
||||
gpg --batch --verify telegraf_${TELEGRAF_VERSION}-1_${ARCH}.deb.asc telegraf_${TELEGRAF_VERSION}-1_${ARCH}.deb && \
|
||||
dpkg -i telegraf_${TELEGRAF_VERSION}-1_${ARCH}.deb && \
|
||||
rm -f telegraf_${TELEGRAF_VERSION}-1_${ARCH}.deb*
|
||||
|
||||
EXPOSE 8125/udp 8092/udp 8094
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["telegraf"]
|
|
@ -0,0 +1,33 @@
|
|||
FROM alpine:3.6
|
||||
|
||||
RUN echo 'hosts: files dns' >> /etc/nsswitch.conf
|
||||
RUN apk add --no-cache iputils ca-certificates net-snmp-tools procps && \
|
||||
update-ca-certificates
|
||||
|
||||
ENV TELEGRAF_VERSION 1.7.0
|
||||
|
||||
RUN set -ex && \
|
||||
apk add --no-cache --virtual .build-deps wget gnupg tar && \
|
||||
for key in \
|
||||
05CE15085FC09D18E99EFB22684A14CF2582E0C5 ; \
|
||||
do \
|
||||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" || \
|
||||
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 && \
|
||||
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
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["telegraf"]
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ "${1:0:1}" = '-' ]; then
|
||||
set -- telegraf "$@"
|
||||
fi
|
||||
|
||||
exec "$@"
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ "${1:0:1}" = '-' ]; then
|
||||
set -- telegraf "$@"
|
||||
fi
|
||||
|
||||
exec "$@"
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "telegraf",
|
||||
"versions": ["1.4", "1.5", "1.6"],
|
||||
"versions": ["1.4", "1.5", "1.6", "1.7"],
|
||||
"architectures": [
|
||||
"amd64",
|
||||
"arm32v7",
|
||||
|
|
Загрузка…
Ссылка в новой задаче