mirror of
https://github.com/hassio-addons/addon-grocy.git
synced 2025-05-05 03:31:30 +00:00
⬆️ Upgrades add-on base image to 12.0.0 (#298)
This commit is contained in:
parent
8fccaff18f
commit
21bf1623e2
10 changed files with 45 additions and 44 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}
|
||||||
|
|
||||||
|
@ -9,34 +9,30 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
# hadolint ignore=DL3003
|
# hadolint ignore=DL3003
|
||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
nginx=1.20.2-r0 \
|
composer=2.3.7-r0 \
|
||||||
|
nginx=1.22.0-r0 \
|
||||||
patch=2.7.6-r7 \
|
patch=2.7.6-r7 \
|
||||||
php8-ctype=8.0.16-r0 \
|
php8-ctype=8.0.19-r1 \
|
||||||
php8-exif=8.0.16-r0 \
|
php8-exif=8.0.19-r1 \
|
||||||
php8-fileinfo=8.0.16-r0 \
|
php8-fileinfo=8.0.19-r1 \
|
||||||
php8-fpm=8.0.16-r0 \
|
php8-fpm=8.0.19-r1 \
|
||||||
php8-gd=8.0.16-r0 \
|
php8-gd=8.0.19-r1 \
|
||||||
php8-iconv=8.0.16-r0 \
|
php8-iconv=8.0.19-r1 \
|
||||||
php8-intl=8.0.16-r0 \
|
php8-intl=8.0.19-r1 \
|
||||||
php8-ldap=8.0.16-r0 \
|
php8-ldap=8.0.19-r1 \
|
||||||
php8-mbstring=8.0.16-r0 \
|
php8-mbstring=8.0.19-r1 \
|
||||||
php8-opcache=8.0.16-r0 \
|
php8-opcache=8.0.19-r1 \
|
||||||
php8-pdo_sqlite=8.0.16-r0 \
|
php8-pdo_sqlite=8.0.19-r1 \
|
||||||
php8-pdo=8.0.16-r0 \
|
php8-pdo=8.0.19-r1 \
|
||||||
php8-simplexml=8.0.16-r0 \
|
php8-simplexml=8.0.19-r1 \
|
||||||
php8-tokenizer=8.0.16-r0 \
|
php8-tokenizer=8.0.19-r1 \
|
||||||
php8=8.0.16-r0 \
|
php8=8.0.19-r1 \
|
||||||
\
|
|
||||||
&& ln -s /usr/bin/php8 /usr/bin/php \
|
|
||||||
\
|
\
|
||||||
&& apk add --no-cache --virtual .build-dependencies \
|
&& apk add --no-cache --virtual .build-dependencies \
|
||||||
git=2.34.1-r0 \
|
git=2.36.1-r0 \
|
||||||
php8-openssl=8.0.16-r0 \
|
php8-openssl=8.0.19-r1 \
|
||||||
php8-phar=8.0.16-r0 \
|
php8-phar=8.0.19-r1 \
|
||||||
yarn=1.22.17-r0 \
|
yarn=1.22.19-r0 \
|
||||||
\
|
|
||||||
&& curl -sS https://getcomposer.org/installer \
|
|
||||||
| php -- --install-dir=/usr/local/bin --filename=composer \
|
|
||||||
\
|
\
|
||||||
&& yarn global add modclean \
|
&& yarn global add modclean \
|
||||||
\
|
\
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -7,6 +7,7 @@ url: https://github.com/hassio-addons/addon-grocy
|
||||||
codenotary: codenotary@frenck.dev
|
codenotary: codenotary@frenck.dev
|
||||||
ingress: true
|
ingress: true
|
||||||
ingress_stream: true
|
ingress_stream: true
|
||||||
|
init: false
|
||||||
panel_icon: mdi:cart
|
panel_icon: mdi:cart
|
||||||
panel_admin: false
|
panel_admin: false
|
||||||
arch:
|
arch:
|
||||||
|
|
2
grocy/rootfs/etc/cont-init.d/grocy.sh
Normal file → Executable file
2
grocy/rootfs/etc/cont-init.d/grocy.sh
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Grocy
|
# Home Assistant Community Add-on: Grocy
|
||||||
# Sets up Grocy before the server starts
|
# Sets up Grocy before the server starts
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Grocy
|
# Home Assistant Community Add-on: Grocy
|
||||||
# Configures NGINX for use with Grocy
|
# Configures NGINX for use with Grocy
|
||||||
|
|
2
grocy/rootfs/etc/cont-init.d/php-fpm.sh
Normal file → Executable file
2
grocy/rootfs/etc/cont-init.d/php-fpm.sh
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Grocy
|
# Home Assistant Community Add-on: Grocy
|
||||||
# Configures PHP-FPM for use with Grocy
|
# Configures PHP-FPM for use with Grocy
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
#!/usr/bin/execlineb -S0
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Grocy
|
# Home Assistant Community Add-on: Grocy
|
||||||
# Take down the S6 supervision tree when Nginx fails
|
# Take down the S6 supervision tree when Nginx fails
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
if { s6-test ${1} -ne 0 }
|
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then
|
||||||
if { s6-test ${1} -ne 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..."
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Grocy
|
# Home Assistant Community Add-on: Grocy
|
||||||
# Runs the Nginx daemon
|
# Runs the Nginx daemon
|
||||||
|
|
10
grocy/rootfs/etc/services.d/php-fpm/finish
Normal file → Executable file
10
grocy/rootfs/etc/services.d/php-fpm/finish
Normal file → Executable file
|
@ -1,9 +1,11 @@
|
||||||
#!/usr/bin/execlineb -S0
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Grocy
|
# Home Assistant Community Add-on: Grocy
|
||||||
# Take down the S6 supervision tree when PHP FPM fails
|
# Take down the S6 supervision tree when PHP FPM fails
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
if { s6-test ${1} -ne 0 }
|
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then
|
||||||
if { s6-test ${1} -ne 256 }
|
bashio::log.warning "PHP-FPM crashed, halting add-on"
|
||||||
|
/run/s6/basedir/bin/halt
|
||||||
|
fi
|
||||||
|
|
||||||
s6-svscanctl -t /var/run/s6/services
|
bashio::log.info "PHP-FPM stopped, restarting..."
|
||||||
|
|
2
grocy/rootfs/etc/services.d/php-fpm/run
Normal file → Executable file
2
grocy/rootfs/etc/services.d/php-fpm/run
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
#!/command/with-contenv bashio
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Home Assistant Community Add-on: Grocy
|
# Home Assistant Community Add-on: Grocy
|
||||||
# Runs the PHP-FPM daemon
|
# Runs the PHP-FPM daemon
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue