Bump telegraf 1.22.0
This commit is contained in:
@@ -1,53 +0,0 @@
|
|||||||
ARG BUILD_FROM
|
|
||||||
FROM ${BUILD_FROM}
|
|
||||||
|
|
||||||
# Set shell
|
|
||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
||||||
|
|
||||||
# Setup base system
|
|
||||||
ARG BUILD_ARCH=amd64
|
|
||||||
|
|
||||||
# Install syslog-ng
|
|
||||||
RUN \
|
|
||||||
apt-get update -qq && \
|
|
||||||
apt-get install -y wget ca-certificates gnupg2 debian-ports-archive-keyring xz-utils dirmngr systemd && \
|
|
||||||
wget -qO - https://ose-repo.syslog-ng.com/apt/syslog-ng-ose-pub.asc | gpg --dearmor > /usr/share/keyrings/ose-repo-archive-keyring.gpg && \
|
|
||||||
echo "deb [ signed-by=/usr/share/keyrings/ose-repo-archive-keyring.gpg ] https://ose-repo.syslog-ng.com/apt/ stable debian-testing" | tee --append /etc/apt/sources.list.d/syslog-ng-ose.list && \
|
|
||||||
apt-get update -qq && \
|
|
||||||
apt-get install -y libdbd-mysql libdbd-pgsql libdbd-sqlite3 syslog-ng && \
|
|
||||||
rm -fr /tmp/* /var/{cache,log}/* /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Copy root filesystem
|
|
||||||
COPY rootfs /
|
|
||||||
|
|
||||||
# Expose ports
|
|
||||||
EXPOSE 514/udp 601/tcp 6514/tcp
|
|
||||||
|
|
||||||
# Define HealthCheck
|
|
||||||
HEALTHCHECK --interval=2m --timeout=3s --start-period=30s CMD /usr/sbin/syslog-ng-ctl stats || exit 1
|
|
||||||
|
|
||||||
# Build arguments
|
|
||||||
ARG BUILD_ARCH
|
|
||||||
ARG BUILD_DATE
|
|
||||||
ARG BUILD_DESCRIPTION
|
|
||||||
ARG BUILD_NAME
|
|
||||||
ARG BUILD_REF
|
|
||||||
ARG BUILD_REPOSITORY
|
|
||||||
ARG BUILD_VERSION
|
|
||||||
|
|
||||||
# Labels
|
|
||||||
LABEL \
|
|
||||||
io.hass.name="${BUILD_NAME}" \
|
|
||||||
io.hass.description="${BUILD_DESCRIPTION}" \
|
|
||||||
io.hass.arch="${BUILD_ARCH}" \
|
|
||||||
io.hass.type="addon" \
|
|
||||||
io.hass.version=${BUILD_VERSION} \
|
|
||||||
maintainer="fbonelle" \
|
|
||||||
org.opencontainers.image.title="${BUILD_NAME}" \
|
|
||||||
org.opencontainers.image.description="${BUILD_DESCRIPTION}" \
|
|
||||||
org.opencontainers.image.vendor="fbonelle's addons" \
|
|
||||||
org.opencontainers.image.authors="fbonelle" \
|
|
||||||
org.opencontainers.image.licenses="MIT" \
|
|
||||||
org.opencontainers.image.created=${BUILD_DATE} \
|
|
||||||
org.opencontainers.image.revision=${BUILD_REF} \
|
|
||||||
org.opencontainers.image.version=${BUILD_VERSION}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
build_from:
|
|
||||||
aarch64: ghcr.io/hassio-addons/ubuntu-base/aarch64:7.1.4
|
|
||||||
amd64: ghcr.io/hassio-addons/ubuntu-base/amd64:7.1.4
|
|
||||||
armv7: ghcr.io/hassio-addons/ubuntu-base/armv7:7.1.4
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
---
|
|
||||||
name: syslog-ng
|
|
||||||
version: 1.0
|
|
||||||
slug: hassio_syslog_ng
|
|
||||||
description: An addon to add syslog-ng to hassio.
|
|
||||||
url: https://gitea.bonelle-family.dscloud.biz/francois.bonelle/hassio-repo.git
|
|
||||||
init: false
|
|
||||||
startup: services
|
|
||||||
boot: manual
|
|
||||||
arch:
|
|
||||||
- aarch64
|
|
||||||
- amd64
|
|
||||||
- armv7
|
|
||||||
ports:
|
|
||||||
514/udp: null
|
|
||||||
601/tcp: null
|
|
||||||
6514/tcp: null
|
|
||||||
apparmor: false
|
|
||||||
map:
|
|
||||||
- config:ro
|
|
||||||
- ssl:ro
|
|
||||||
- addons:ro
|
|
||||||
- backup:ro
|
|
||||||
- share:ro
|
|
||||||
host_ipc: true
|
|
||||||
host_dbus: true
|
|
||||||
privileged:
|
|
||||||
- NET_ADMIN
|
|
||||||
- SYS_ADMIN
|
|
||||||
- SYS_RAWIO
|
|
||||||
- SYS_TIME
|
|
||||||
- SYS_NICE
|
|
||||||
- SYS_RESOURCE
|
|
||||||
- SYS_PTRACE
|
|
||||||
- SYS_MODULE
|
|
||||||
- DAC_READ_SEARCH
|
|
||||||
host_pid: true
|
|
||||||
full_access: true
|
|
||||||
udev: true
|
|
||||||
devicetree: true
|
|
||||||
tmpfs: true
|
|
||||||
journald: true
|
|
||||||
options:
|
|
||||||
custom_conf:
|
|
||||||
location: "/config/syslog-ng.conf"
|
|
||||||
schema:
|
|
||||||
custom_conf:
|
|
||||||
location: str
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
|
||||||
# ==============================================================================
|
|
||||||
# Home Assistant Community Add-on: syslog-ng
|
|
||||||
# Configures syslog-ng
|
|
||||||
# ==============================================================================
|
|
||||||
readonly CONFIG="/etc/syslog-ng/syslog-ng.conf"
|
|
||||||
|
|
||||||
CUSTOM_CONF=$(bashio::config 'custom_conf.location')
|
|
||||||
|
|
||||||
bashio::log.info "Using custom conf file"
|
|
||||||
rm /etc/syslog-ng/syslog-ng.conf
|
|
||||||
cp "${CUSTOM_CONF}" /etc/syslog-ng/syslog-ng.conf
|
|
||||||
|
|
||||||
bashio::log.info "Finished updating config"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/etc/syslog-ng/syslog-ng.conf false root 0755 0755
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
#!/usr/bin/execlineb -S0
|
|
||||||
# ==============================================================================
|
|
||||||
# Home Assistant Community Add-on: syslog-ng
|
|
||||||
# ==============================================================================
|
|
||||||
if -n { s6-test $# -ne 0 }
|
|
||||||
if -n { s6-test ${1} -eq 256 }
|
|
||||||
|
|
||||||
s6-svscanctl -t /var/run/s6/services
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
|
||||||
# ==============================================================================
|
|
||||||
# Home Assistant Community Add-on: Example
|
|
||||||
# Runs example1 script
|
|
||||||
# ==============================================================================
|
|
||||||
|
|
||||||
|
|
||||||
bashio::log.info "Starting syslog-ng"
|
|
||||||
|
|
||||||
exec /usr/sbin/syslog-ng -F --no-caps --verbose
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
@version: 3.29
|
|
||||||
|
|
||||||
options {
|
|
||||||
use_dns(no);
|
|
||||||
create_dirs(no);
|
|
||||||
ts_format(iso);
|
|
||||||
};
|
|
||||||
|
|
||||||
source s_systemd {
|
|
||||||
system();
|
|
||||||
internal();
|
|
||||||
};
|
|
||||||
|
|
||||||
source s_homeassistant {
|
|
||||||
file("/var/log/home-assistant.log" program-override("homeassistant"));
|
|
||||||
};
|
|
||||||
|
|
||||||
destination d_remotesyslog {
|
|
||||||
syslog("192.168.100.254" transport("udp") port("1514"));
|
|
||||||
};
|
|
||||||
|
|
||||||
rewrite r_host {
|
|
||||||
set("homeassistant", value("HOST"));
|
|
||||||
};
|
|
||||||
|
|
||||||
log {
|
|
||||||
source(s_systemd);
|
|
||||||
rewrite(r_host);
|
|
||||||
destination(d_remotesyslog);
|
|
||||||
};
|
|
||||||
|
|
||||||
log {
|
|
||||||
source(s_homeassistant);
|
|
||||||
rewrite(r_host);
|
|
||||||
destination(d_remotesyslog);
|
|
||||||
};
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
build_from:
|
build_from:
|
||||||
aarch64: ghcr.io/hassio-addons/debian-base/aarch64:5.2.3
|
aarch64: ghcr.io/hassio-addons/debian-base/aarch64:5.3.0
|
||||||
amd64: ghcr.io/hassio-addons/debian-base/amd64:5.2.3
|
amd64: ghcr.io/hassio-addons/debian-base/amd64:5.3.0
|
||||||
armhf: ghcr.io/hassio-addons/debian-base/armhf:5.2.3
|
armhf: ghcr.io/hassio-addons/debian-base/armhf:5.3.0
|
||||||
armv7: ghcr.io/hassio-addons/debian-base/armv7:5.2.3
|
armv7: ghcr.io/hassio-addons/debian-base/armv7:5.3.0
|
||||||
i386: ghcr.io/hassio-addons/debian-base/i386:5.2.3
|
i386: ghcr.io/hassio-addons/debian-base/i386:5.3.0
|
||||||
args:
|
args:
|
||||||
TELEGRAF_VERSION: 1.21.4
|
TELEGRAF_VERSION: 1.22.0
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
name: Telegraf
|
name: Telegraf
|
||||||
version: 1.21.4_a
|
version: 1.22.0_a
|
||||||
slug: hassio_telegraf
|
slug: hassio_telegraf
|
||||||
description: An addon to add telegraf to hassio.
|
description: An addon to add telegraf to hassio.
|
||||||
url: https://gitea.bonelle-family.dscloud.biz/francois.bonelle/hassio-repo.git
|
url: https://gitea.bonelle-family.dscloud.biz/francois.bonelle/hassio-repo.git
|
||||||
|
|||||||
Reference in New Issue
Block a user