Update add-ons and persist Vector data

This commit is contained in:
sinav committed 2026-11-07 08:25:04 +03:00
1 parent f0f325a3d3
commit 0ded6f19a0
11 files changed
+24 -45

No files matched your search

+8 -11
View File
@@ -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" \
-5
View File
@@ -1,5 +0,0 @@
---
build_from:
amd64: ghcr.io/hassio-addons/debian-base/amd64:9.3.0
codenotary:
base_image: [email protected]
+1 -1
View File
@@ -1,5 +1,5 @@
name: "Vector"
version: "0.57.0"
version: "0.61.0"
slug: "vector"
description: "Vector log processor"
url: "https://vector.dev"
@@ -23,4 +23,5 @@ else
bashio::log.info "Using existing configuration at $CONFIG_PATH"
fi
mkdir -p /data/vector || exit 1
exec /usr/local/bin/vector --config /config/vector.yaml
+1 -1
View File
@@ -1,4 +1,4 @@
data_dir: /var/lib/vector
data_dir: /data/vector
sources:
demo: