Fix
This commit is contained in:
@@ -13,15 +13,12 @@ ARG YQ_VERSION
|
||||
ARG PROMTAIL_VERSION
|
||||
|
||||
# Add yq and tzdata (required for the timestamp stage)
|
||||
RUN apt-get update && apt-get install -qy libsystemd-dev
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
apt-get install -qy --no-install-recommends \
|
||||
tar \
|
||||
unzip \
|
||||
psmisc \
|
||||
procps \
|
||||
strace \
|
||||
libsystemd-dev \
|
||||
; \
|
||||
update-ca-certificates; \
|
||||
case "${BUILD_ARCH}" in \
|
||||
@@ -51,8 +48,6 @@ RUN set -eux; \
|
||||
COPY rootfs /
|
||||
WORKDIR /data/promtail
|
||||
|
||||
COPY s6-overlay /package/admin/s6-overlay-3.1.5.0/
|
||||
|
||||
# Labels
|
||||
LABEL \
|
||||
io.hass.name="${BUILD_NAME}" \
|
||||
|
||||
@@ -48,7 +48,11 @@ profile hassio_promtail flags=(attach_disconnected,mediate_deleted) {
|
||||
@{do_etc}/* rw,
|
||||
@{do_usr}/share/{,**} r,
|
||||
/var/cache/{,**} rw,
|
||||
/var/cache/debconf/{,**} rw,
|
||||
/var/cache/debconf rw,
|
||||
/var/cache/debconf/{,**} rwklam,
|
||||
/lib/{,**} rix,
|
||||
/usr/lib/{,**} rix,
|
||||
/dev/urandom r,
|
||||
|
||||
# Bashio
|
||||
/usr/lib/bashio/** ix,
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user