Fix
This commit is contained in:
@@ -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}" \
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ profile hassio_promtail flags=(attach_disconnected,mediate_deleted) {
|
|||||||
/init rix,
|
/init rix,
|
||||||
/bin/** rix,
|
/bin/** rix,
|
||||||
/usr/bin/** rix,
|
/usr/bin/** rix,
|
||||||
/usr/sbin/** rix,
|
/usr/sbin/** rix,
|
||||||
@{do_etc}/s6*/** r,
|
@{do_etc}/s6*/** r,
|
||||||
@{do_etc}/fix-attrs.d/{,**} r,
|
@{do_etc}/fix-attrs.d/{,**} r,
|
||||||
@{do_etc}/cont-{init,finish}.d/{,**} rwix,
|
@{do_etc}/cont-{init,finish}.d/{,**} rwix,
|
||||||
@@ -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,
|
||||||
|
|||||||
@@ -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