This commit is contained in:
2023-08-25 15:27:56 +02:00
parent 3abf75e158
commit af234fdcc8
3 changed files with 7 additions and 23 deletions

View File

@@ -13,15 +13,12 @@ ARG YQ_VERSION
ARG PROMTAIL_VERSION ARG PROMTAIL_VERSION
# Add yq and tzdata (required for the timestamp stage) # Add yq and tzdata (required for the timestamp stage)
RUN apt-get update && apt-get install -qy libsystemd-dev
RUN set -eux; \ RUN set -eux; \
apt-get update; \ apt-get update; \
apt-get install -qy --no-install-recommends \ apt-get install -qy --no-install-recommends \
tar \ tar \
unzip \ unzip \
psmisc \ libsystemd-dev \
procps \
strace \
; \ ; \
update-ca-certificates; \ update-ca-certificates; \
case "${BUILD_ARCH}" in \ case "${BUILD_ARCH}" in \
@@ -51,8 +48,6 @@ RUN set -eux; \
COPY rootfs / COPY rootfs /
WORKDIR /data/promtail WORKDIR /data/promtail
COPY s6-overlay /package/admin/s6-overlay-3.1.5.0/
# Labels # Labels
LABEL \ LABEL \
io.hass.name="${BUILD_NAME}" \ io.hass.name="${BUILD_NAME}" \

View File

@@ -48,7 +48,11 @@ profile hassio_promtail flags=(attach_disconnected,mediate_deleted) {
@{do_etc}/* rw, @{do_etc}/* rw,
@{do_usr}/share/{,**} r, @{do_usr}/share/{,**} r,
/var/cache/{,**} rw, /var/cache/{,**} rw,
/var/cache/debconf/{,**} rw, /var/cache/debconf rw,
/var/cache/debconf/{,**} rwklam,
/lib/{,**} rix,
/usr/lib/{,**} rix,
/dev/urandom r,
# Bashio # Bashio
/usr/lib/bashio/** ix, /usr/lib/bashio/** ix,

View File

@@ -1,15 +0,0 @@
#!/command/with-contenv bashio
# shellcheck shell=bash
# ==============================================================================
# Home Assistant Community Add-on: Base Images
# Configures the timezone
# ==============================================================================
set -x
bashio::log.info "Configuring timezone (${TZ:-None})..."
ln --symbolic --no-dereference --force "/usr/share/zoneinfo/${TZ:-UTC}" /etc/localtime
echo "${TZ:-UTC}" > /etc/timezone
ls -al /var/cache/debconf
strace dpkg-reconfigure --frontend noninteractive tzdata