mirror of
https://github.com/hassio-addons/addon-home-panel.git
synced 2025-05-04 19:01:21 +00:00
⬆️ Upgrades add-on base image to 12.0.0 (#174)
This commit is contained in:
parent
c851802919
commit
f43ff54602
8 changed files with 30 additions and 26 deletions
|
@ -1,4 +1,4 @@
|
||||||
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:11.1.0
|
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:12.0.0
|
||||||
# hadolint ignore=DL3006
|
# hadolint ignore=DL3006
|
||||||
FROM ${BUILD_FROM}
|
FROM ${BUILD_FROM}
|
||||||
|
|
||||||
|
@ -15,10 +15,10 @@ RUN \
|
||||||
tar=1.34-r0 \
|
tar=1.34-r0 \
|
||||||
\
|
\
|
||||||
&& apk add --no-cache \
|
&& apk add --no-cache \
|
||||||
nginx=1.20.2-r0 \
|
nginx=1.22.0-r0 \
|
||||||
nodejs=16.14.0-r \
|
nodejs=16.15.0-r1 \
|
||||||
openssl=1.1.1n-r0 \
|
openssl=1.1.1o-r0 \
|
||||||
yarn=1.22.17-r0 \
|
yarn=1.22.19-r0 \
|
||||||
\
|
\
|
||||||
&& mkdir -p /opt/panel \
|
&& mkdir -p /opt/panel \
|
||||||
&& curl -L -s "https://github.com/timmo001/home-panel/releases/download/v2.11.6/home-panel.tar.gz" \
|
&& curl -L -s "https://github.com/timmo001/home-panel/releases/download/v2.11.6/home-panel.tar.gz" \
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
---
|
---
|
||||||
build_from:
|
build_from:
|
||||||
aarch64: ghcr.io/hassio-addons/base/aarch64:11.1.0
|
aarch64: ghcr.io/hassio-addons/base/aarch64:12.0.0
|
||||||
amd64: ghcr.io/hassio-addons/base/amd64:11.1.0
|
amd64: ghcr.io/hassio-addons/base/amd64:12.0.0
|
||||||
armhf: ghcr.io/hassio-addons/base/armhf:11.1.0
|
armhf: ghcr.io/hassio-addons/base/armhf:12.0.0
|
||||||
armv7: ghcr.io/hassio-addons/base/armv7:11.1.0
|
armv7: ghcr.io/hassio-addons/base/armv7:12.0.0
|
||||||
i386: ghcr.io/hassio-addons/base/i386:11.1.0
|
i386: ghcr.io/hassio-addons/base/i386:12.0.0
|
||||||
codenotary:
|
codenotary:
|
||||||
base_image: codenotary@frenck.dev
|
base_image: codenotary@frenck.dev
|
||||||
signer: codenotary@frenck.dev
|
signer: codenotary@frenck.dev
|
||||||
|
|
2
home-panel/rootfs/etc/cont-init.d/nginx.sh
Normal file → Executable file
2
home-panel/rootfs/etc/cont-init.d/nginx.sh
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Home Panel
|
# Home Assistant Community Add-on: Home Panel
|
||||||
# Configures NGINX for use with Home Panel
|
# Configures NGINX for use with Home Panel
|
||||||
|
|
2
home-panel/rootfs/etc/cont-init.d/secrets.sh
Normal file → Executable file
2
home-panel/rootfs/etc/cont-init.d/secrets.sh
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Home Panel
|
# Home Assistant Community Add-on: Home Panel
|
||||||
# This updates the internal auth secret for the API
|
# This updates the internal auth secret for the API
|
||||||
|
|
10
home-panel/rootfs/etc/services.d/home-panel/finish
Normal file → Executable file
10
home-panel/rootfs/etc/services.d/home-panel/finish
Normal file → Executable file
|
@ -1,9 +1,11 @@
|
||||||
#!/usr/bin/execlineb -S0
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Home Panel
|
# Home Assistant Community Add-on: Home Panel
|
||||||
# Take down the S6 supervision tree when Home Panel fails
|
# Take down the S6 supervision tree when Home Panel fails
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
if -n { s6-test $# -ne 0 }
|
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then
|
||||||
if -n { s6-test ${1} -eq 256 }
|
bashio::log.warning "Home Panel crashed, halting add-on"
|
||||||
|
/run/s6/basedir/bin/halt
|
||||||
|
fi
|
||||||
|
|
||||||
s6-svscanctl -t /var/run/s6/services
|
bashio::log.info "Home Panel stopped, restarting..."
|
||||||
|
|
4
home-panel/rootfs/etc/services.d/home-panel/run
Normal file → Executable file
4
home-panel/rootfs/etc/services.d/home-panel/run
Normal file → Executable file
|
@ -1,9 +1,9 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Home Panel
|
# Home Assistant Community Add-on: Home Panel
|
||||||
# Starts server to serve the app
|
# Starts server to serve the app
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
bashio::log.info "Run Home Panel.."
|
bashio::log.info "Run Home Panel..."
|
||||||
|
|
||||||
cd /opt/panel \
|
cd /opt/panel \
|
||||||
|| bashio::exit.nok "Could not change into app directory"
|
|| bashio::exit.nok "Could not change into app directory"
|
||||||
|
|
12
home-panel/rootfs/etc/services.d/nginx/finish
Normal file → Executable file
12
home-panel/rootfs/etc/services.d/nginx/finish
Normal file → Executable file
|
@ -1,9 +1,11 @@
|
||||||
#!/usr/bin/execlineb -S0
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Home Panel
|
# Home Assistant Community Add-on: Home Panel
|
||||||
# Take down the S6 supervision tree when Nginx fails
|
# Take down the S6 supervision tree when NGINX fails
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
if -n { s6-test $# -ne 0 }
|
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then
|
||||||
if -n { s6-test ${1} -eq 256 }
|
bashio::log.warning "NGINX crashed, halting add-on"
|
||||||
|
/run/s6/basedir/bin/halt
|
||||||
|
fi
|
||||||
|
|
||||||
s6-svscanctl -t /var/run/s6/services
|
bashio::log.info "NGINX stopped, restarting..."
|
||||||
|
|
6
home-panel/rootfs/etc/services.d/nginx/run
Normal file → Executable file
6
home-panel/rootfs/etc/services.d/nginx/run
Normal file → Executable file
|
@ -1,10 +1,10 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Home Panel
|
# Home Assistant Community Add-on: Home Panel
|
||||||
# Runs the Nginx daemon
|
# Runs the NGINX daemon
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Wait for Home Panel to become available
|
# Wait for Home Panel to become available
|
||||||
bashio::net.wait_for 8234
|
bashio::net.wait_for 8234
|
||||||
|
|
||||||
bashio::log.info "Starting NGinx..."
|
bashio::log.info "Starting NGINX..."
|
||||||
exec nginx
|
exec nginx
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue