Skip to content

Commit 9a8a854

Browse files
authored
⬆️ Upgrades add-on base image to 12.0.0 (#184)
* ⬆️ Upgrades add-on base image to 12.0.0 * ⬆️ Upgrades php8 to 8.0.20-r0
1 parent dd65d6b commit 9a8a854

File tree

10 files changed

+47
-49
lines changed

10 files changed

+47
-49
lines changed

bookstack/Dockerfile

Lines changed: 20 additions & 20 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.2
1+
ARG BUILD_FROM=ghcr.io/hassio-addons/base/amd64:12.0.0
22
# hadolint ignore=DL3006
33
FROM ${BUILD_FROM}
44

@@ -9,27 +9,27 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
99
# hadolint ignore=DL3003
1010
RUN \
1111
apk add --no-cache \
12-
mariadb-client=10.6.7-r0 \
13-
nginx=1.20.2-r1 \
14-
php8-curl=8.0.18-r0 \
15-
php8-dom=8.0.18-r0 \
16-
php8-fileinfo=8.0.18-r0 \
17-
php8-fpm=8.0.18-r0 \
18-
php8-gd=8.0.18-r0 \
19-
php8-ldap=8.0.18-r0 \
20-
php8-mbstring=8.0.18-r0 \
21-
php8-mysqlnd=8.0.18-r0 \
22-
php8-openssl=8.0.18-r0 \
23-
php8-pdo_mysql=8.0.18-r0 \
24-
php8-session=8.0.18-r0 \
25-
php8-simplexml=8.0.18-r0 \
26-
php8-tokenizer=8.0.18-r0 \
27-
php8-xml=8.0.18-r0 \
28-
php8-xmlwriter=8.0.18-r0 \
29-
php8=8.0.18-r0 \
12+
mariadb-client=10.6.8-r0 \
13+
nginx=1.22.0-r0 \
14+
php8-curl=8.0.20-r0 \
15+
php8-dom=8.0.20-r0 \
16+
php8-fileinfo=8.0.20-r0 \
17+
php8-fpm=8.0.20-r0 \
18+
php8-gd=8.0.20-r0 \
19+
php8-ldap=8.0.20-r0 \
20+
php8-mbstring=8.0.20-r0 \
21+
php8-mysqlnd=8.0.20-r0 \
22+
php8-openssl=8.0.20-r0 \
23+
php8-pdo_mysql=8.0.20-r0 \
24+
php8-session=8.0.20-r0 \
25+
php8-simplexml=8.0.20-r0 \
26+
php8-tokenizer=8.0.20-r0 \
27+
php8-xml=8.0.20-r0 \
28+
php8-xmlwriter=8.0.20-r0 \
29+
php8=8.0.20-r0 \
3030
\
3131
&& apk add --no-cache --virtual .build-dependencies \
32-
composer=2.2.12-r0 \
32+
composer=2.3.7-r0 \
3333
\
3434
&& curl -J -L -o /tmp/bookstack.tar.gz \
3535
https://github.com/BookStackApp/BookStack/archive/v22.04.1.tar.gz \

bookstack/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.2
4-
amd64: ghcr.io/hassio-addons/base/amd64:11.1.2
5-
armhf: ghcr.io/hassio-addons/base/armhf:11.1.2
6-
armv7: ghcr.io/hassio-addons/base/armv7:11.1.2
7-
i386: ghcr.io/hassio-addons/base/i386:11.1.2
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: codenotary@frenck.dev
1010
signer: codenotary@frenck.dev

bookstack/rootfs/etc/cont-init.d/bookstack.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: Bookstack
44
# This file validates config, creates the database and configures the app key

bookstack/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: Bookstack
44
# This file configures nginx

bookstack/rootfs/etc/fix-attrs.d/bookstack

Lines changed: 0 additions & 6 deletions
This file was deleted.

bookstack/rootfs/etc/php8/php-fpm.d/www.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[www]
2-
user = nginx
3-
group = nginx
2+
user = root
3+
group = root
44
listen = 127.0.0.1:9001
55
pm = dynamic
66
pm.max_children = 10

bookstack/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: Bookstack
4-
# Take down the S6 supervision tree when Nginx fails
4+
# Take down the S6 supervision tree when NGINX 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 "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..."

bookstack/rootfs/etc/services.d/nginx/run

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

77
# Wait for PHP-FPM to become available
88
bashio::net.wait_for 9001
99

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

1212
exec nginx

bookstack/rootfs/etc/services.d/php-fpm/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: Bookstack
44
# Take down the S6 supervision tree when PHP FPM 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 "PHP-FPM 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 "PHP-FPM stopped, restarting..."

bookstack/rootfs/etc/services.d/php-fpm/run

100644100755
Lines changed: 2 additions & 2 deletions
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: Bookstack
44
# Runs the PHP-FPM daemon
@@ -50,4 +50,4 @@ php8 /var/www/bookstack/artisan migrate --force
5050

5151
bashio::log.info "Starting PHP-FPM..."
5252

53-
exec php-fpm8 --nodaemonize
53+
exec php-fpm8 -R --nodaemonize

0 commit comments

Comments
 (0)