fix
This commit is contained in:
@@ -10,9 +10,14 @@ ARG BUILD_REF
|
||||
ARG BUILD_REPOSITORY
|
||||
ARG BUILD_VERSION
|
||||
ARG TELEGRAF_VERSION
|
||||
ARG BASHIO_VERSION
|
||||
ARG TEMPIO_VERSION
|
||||
|
||||
# Set shell
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends iputils-ping snmp procps lm-sensors libcap2-bin && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends bash ca-certificates curl jq tzdata xz-utils iputils-ping snmp procps lm-sensors libcap2-bin && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN set -ex && \
|
||||
@@ -39,6 +44,22 @@ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
|
||||
dpkg -i telegraf_${TELEGRAF_VERSION}-1_${ARCH}.deb && \
|
||||
rm -f telegraf_${TELEGRAF_VERSION}-1_${ARCH}.deb*
|
||||
|
||||
RUN curl -J -L -o /tmp/bashio.tar.gz \
|
||||
"https://github.com/hassio-addons/bashio/archive/${BASHIO_VERSION}.tar.gz" \
|
||||
&& mkdir /tmp/bashio \
|
||||
&& tar zxvf \
|
||||
/tmp/bashio.tar.gz \
|
||||
--strip 1 -C /tmp/bashio \
|
||||
\
|
||||
&& mv /tmp/bashio/lib /usr/lib/bashio \
|
||||
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
|
||||
\
|
||||
&& curl -L -s -o /usr/bin/tempio \
|
||||
"https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}" \
|
||||
&& chmod a+x /usr/bin/tempio \
|
||||
&& rm -fr \
|
||||
/tmp/*
|
||||
|
||||
EXPOSE 8125/udp 8092/udp 8094
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
@@ -6,3 +6,5 @@ build_from:
|
||||
i386: library/buildpack-deps:bullseye-curl
|
||||
args:
|
||||
TELEGRAF_VERSION: 1.23.0
|
||||
BASHIO_VERSION: v0.14.3
|
||||
TEMPIO_VERSION: 2021.09.0
|
||||
Reference in New Issue
Block a user