25 lines
979 B
Docker
25 lines
979 B
Docker
FROM ghcr.io/hassio-addons/debian-base:9.5.2
|
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
ARG VECTOR_VERSION=0.61.0
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends systemd \
|
|
&& apt-get clean \
|
|
&& 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" \
|
|
org.opencontainers.image.description="Vector log processor for Home Assistant" \
|
|
org.opencontainers.image.url="https://vector.dev" \
|
|
org.opencontainers.image.source="https://github.com/vectordotdev/vector" \
|
|
org.opencontainers.image.documentation="https://vector.dev/docs"
|
|
|
|
COPY rootfs /
|