Update add-ons and persist Vector data
This commit is contained in:
1 parent
f0f325a3d3
commit
0ded6f19a0
11 files changed
+24
-45
No files matched your search
+8
-11
@@ -1,21 +1,18 @@
|
||||
ARG BUILD_FROM=ghcr.io/hassio-addons/debian-base:9.2.0
|
||||
# hadolint ignore=DL3006
|
||||
FROM ${BUILD_FROM}
|
||||
FROM ghcr.io/hassio-addons/debian-base:9.5.2
|
||||
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
ARG VECTOR_VERSION=0.57.0
|
||||
|
||||
WORKDIR /vector
|
||||
ARG VECTOR_VERSION=0.61.0
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends systemd \
|
||||
&& apt-get clean \
|
||||
&& mkdir -p /var/lib/vector \
|
||||
&& curl -sSL -o vector.tar.gz \
|
||||
https://github.com/vectordotdev/vector/releases/download/v${VECTOR_VERSION}/vector-${VECTOR_VERSION}-x86_64-unknown-linux-musl.tar.gz \
|
||||
&& tar -xvf vector.tar.gz --strip-components=2 \
|
||||
&& cp /vector/bin/* /usr/local/bin/
|
||||
&& mkdir -p /tmp/vector \
|
||||
&& curl -fsSL "https://github.com/vectordotdev/vector/releases/download/v${VECTOR_VERSION}/vector-${VECTOR_VERSION}-x86_64-unknown-linux-musl.tar.gz" \
|
||||
| tar -xz -C /tmp/vector --strip-components=2 \
|
||||
&& mv /tmp/vector/bin/vector /usr/local/bin/vector \
|
||||
&& rm -rf /tmp/vector /var/lib/apt/lists/* \
|
||||
&& ln -sT /data/vector /var/lib/vector
|
||||
|
||||
LABEL \
|
||||
org.opencontainers.image.title="Vector Add-on" \
|
||||
|
||||
Reference in new issue
Block a user