Skip to content

Commit 6f2330f

Browse files
authored
⬆️ Upgrades add-on base image to 12.0.0 (#141)
1 parent 771218b commit 6f2330f

File tree

7 files changed

+28
-24
lines changed

7 files changed

+28
-24
lines changed

log-viewer/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:11.1.0
1+
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:12.0.0
22
# hadolint ignore=DL3006
33
FROM ${BUILD_FROM}
44

@@ -8,12 +8,12 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
88
# Install requirements for add-on
99
RUN \
1010
apk add --no-cache \
11-
nginx=1.20.2-r0 \
12-
nodejs=16.14.0-r0 \
13-
npm=8.1.3-r0 \
11+
nginx=1.22.0-r0 \
12+
nodejs=16.15.0-r1 \
13+
npm=8.10.0-r0 \
1414
\
1515
&& apk add --no-cache --virtual .build-dependencies \
16-
git=2.34.1-r0 \
16+
git=2.36.1-r0 \
1717
\
1818
&& npm set unsafe-perm true \
1919
\

log-viewer/build.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
build_from:
3-
aarch64: ghcr.io/hassio-addons/base/aarch64:11.1.0
4-
amd64: ghcr.io/hassio-addons/base/amd64:11.1.0
5-
armhf: ghcr.io/hassio-addons/base/armhf:11.1.0
6-
armv7: ghcr.io/hassio-addons/base/armv7:11.1.0
7-
i386: ghcr.io/hassio-addons/base/i386:11.1.0
3+
aarch64: ghcr.io/hassio-addons/base/aarch64:12.0.0
4+
amd64: ghcr.io/hassio-addons/base/amd64:12.0.0
5+
armhf: ghcr.io/hassio-addons/base/armhf:12.0.0
6+
armv7: ghcr.io/hassio-addons/base/armv7:12.0.0
7+
i386: ghcr.io/hassio-addons/base/i386:12.0.0
88
codenotary:
99
base_image: [email protected]
1010

log-viewer/rootfs/etc/cont-init.d/nginx.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/with-contenv bashio
1+
#!/command/with-contenv bashio
22
# ==============================================================================
33
# Home Assistant Community Add-on: Log Viewer
44
# Configures NGINX

log-viewer/rootfs/etc/services.d/logviewer/finish

100644100755
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
#!/usr/bin/execlineb -S0
1+
#!/command/with-contenv bashio
22
# ==============================================================================
33
# Home Assistant Community Add-on: Log Viewer
44
# Take down the S6 supervision tree when Log Viewer fails
55
# ==============================================================================
6-
if -n { s6-test $# -ne 0 }
7-
if -n { s6-test ${1} -eq 256 }
6+
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then
7+
bashio::log.warning "Log Viewer crashed, halting add-on"
8+
/run/s6/basedir/bin/halt
9+
fi
810

9-
s6-svscanctl -t /var/run/s6/services
11+
bashio::log.info "Log Viewer stopped, restarting..."

log-viewer/rootfs/etc/services.d/logviewer/run

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/with-contenv bashio
1+
#!/command/with-contenv bashio
22
# ==============================================================================
33
# Home Assistant Community Add-on: Log Viewer
44
# Runs the Log Viewer

log-viewer/rootfs/etc/services.d/nginx/finish

100644100755
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
#!/usr/bin/execlineb -S0
1+
#!/command/with-contenv bashio
22
# ==============================================================================
33
# Home Assistant Community Add-on: Log Viewer
4-
# Take down the S6 supervision tree when Nginx fails
4+
# Take down the S6 supervision tree when NGINX fails
55
# ==============================================================================
6-
if { s6-test ${1} -ne 0 }
7-
if { s6-test ${1} -ne 256 }
6+
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then
7+
bashio::log.warning "NGINX crashed, halting add-on"
8+
/run/s6/basedir/bin/halt
9+
fi
810

9-
s6-svscanctl -t /var/run/s6/services
11+
bashio::log.info "NGINX stopped, restarting..."

log-viewer/rootfs/etc/services.d/nginx/run

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#!/usr/bin/with-contenv bashio
1+
#!/command/with-contenv bashio
22
# ==============================================================================
33
# Home Assistant Community Add-on: Log Viewer
4-
# Runs the Nginx daemon
4+
# Runs the NGINX daemon
55
# ==============================================================================
66

77
# Wait for the Log Viewer to become available
88
bashio::net.wait_for 4277
99

10-
bashio::log.info "Starting NGinx..."
10+
bashio::log.info "Starting NGINX..."
1111
exec nginx

0 commit comments

Comments
 (0)