Skip to content

Commit

Permalink
Merge pull request #166 from mdegat01/bump-addon-base-12.2.3
Browse files Browse the repository at this point in the history
Update addon base 12.2.3
  • Loading branch information
mdegat01 authored Aug 30, 2022
2 parents 6ab8cec + e53988d commit b92a14f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
4 changes: 2 additions & 2 deletions loki/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ RUN set -eux; \
apk del .build-deps; \
\
apk add --no-cache \
ca-certificates=20211220-r0 \
nginx=1.20.2-r1 \
ca-certificates=20220614-r0 \
nginx=1.22.0-r1 \
; \
update-ca-certificates; \
nginx -v; \
Expand Down
8 changes: 4 additions & 4 deletions loki/build.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
build_from:
amd64: ghcr.io/hassio-addons/base/amd64:11.1.2
armhf: ghcr.io/hassio-addons/base/armhf:11.1.2
armv7: ghcr.io/hassio-addons/base/armv7:11.1.2
aarch64: ghcr.io/hassio-addons/base/aarch64:11.1.2
amd64: ghcr.io/hassio-addons/base/amd64:12.2.3
armhf: ghcr.io/hassio-addons/base/armhf:12.2.3
armv7: ghcr.io/hassio-addons/base/armv7:12.2.3
aarch64: ghcr.io/hassio-addons/base/aarch64:12.2.3
codenotary:
base_image: [email protected]
signer: [email protected]
13 changes: 9 additions & 4 deletions loki/rootfs/etc/services.d/loki/finish
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#!/usr/bin/execlineb -S0
#!/usr/bin/env bashio
# ==============================================================================
# Home Assistant Add-on: Loki
# Take down the S6 supervision tree when Loki fails
# ==============================================================================
if { s6-test ${1} -ne 0 }
if { s6-test ${1} -ne 256 }

s6-svscanctl -t /var/run/s6/services
declare APP_EXIT_CODE=${1}

if [[ "${APP_EXIT_CODE}" -ne 0 ]] && [[ "${APP_EXIT_CODE}" -ne 256 ]]; then
bashio::log.warning "Halt add-on with exit code ${APP_EXIT_CODE}"
echo "${APP_EXIT_CODE}" > /run/s6-linux-init-container-results/exitcode
exec /run/s6/basedir/bin/halt
fi

12 changes: 8 additions & 4 deletions loki/rootfs/etc/services.d/nginx/finish
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#!/usr/bin/execlineb -S0
#!/usr/bin/env bashio
# ==============================================================================
# Home Assistant Add-on: Loki
# Take down the S6 supervision tree when Nginx fails
# ==============================================================================
if { s6-test ${1} -ne 0 }
if { s6-test ${1} -ne 256 }

s6-svscanctl -t /var/run/s6/services
declare APP_EXIT_CODE=${1}

if [[ "${APP_EXIT_CODE}" -ne 0 ]] && [[ "${APP_EXIT_CODE}" -ne 256 ]]; then
bashio::log.warning "Halt add-on with exit code ${APP_EXIT_CODE}"
echo "${APP_EXIT_CODE}" > /run/s6-linux-init-container-results/exitcode
exec /run/s6/basedir/bin/halt
fi

0 comments on commit b92a14f

Please sign in to comment.