Rebase to alpine 3.16, migrate to S6V3

This commit is contained in:
Roxedus 2022-10-17 13:02:59 +02:00
parent c3409bc317
commit e3dfd1966f
No known key found for this signature in database
GPG Key ID: EBC13557C4D91D7B
16 changed files with 19 additions and 14 deletions

View File

@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-alpine:3.15
FROM ghcr.io/linuxserver/baseimage-alpine:3.16
# set version label
ARG BUILD_DATE
@ -40,7 +40,7 @@ RUN \
echo "**** install pip packages ****" && \
cd /app/apprise-api && \
pip3 install -U --no-cache-dir pip wheel && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.15/ -r requirements.txt && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.16/ -r requirements.txt && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
@ -51,3 +51,4 @@ RUN \
# copy local files
COPY root/ /
EXPOSE 8000

View File

@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.15
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.16
# set version label
ARG BUILD_DATE
@ -40,7 +40,7 @@ RUN \
echo "**** install pip packages ****" && \
cd /app/apprise-api && \
pip3 install -U --no-cache-dir pip wheel && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.15/ -r requirements.txt && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.16/ -r requirements.txt && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
@ -51,3 +51,4 @@ RUN \
# copy local files
COPY root/ /
EXPOSE 8000

View File

@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.15
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.16
# set version label
ARG BUILD_DATE
@ -40,7 +40,7 @@ RUN \
echo "**** install pip packages ****" && \
cd /app/apprise-api && \
pip3 install -U --no-cache-dir pip wheel && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.15/ -r requirements.txt && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.16/ -r requirements.txt && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
@ -51,3 +51,4 @@ RUN \
# copy local files
COPY root/ /
EXPOSE 8000

View File

@ -1,5 +1,4 @@
---
# project information
project_name: apprise-api
project_url: "https://github.com/caronc/apprise-api"
@ -79,6 +78,7 @@ app_setup_block: []
# changelog
changelogs:
- { date: "17.10.22:", desc: "Rebase to alpine 3.16, migrate to S6V3"}
- { date: "28.02.21:", desc: "Rebase to alpine 3.15." }
- { date: "03.11.21:", desc: "Increase uWSGI buffer size to 32kb." }
- { date: "16.05.21:", desc: "Add linuxserver wheel index." }

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-apprise-config/run

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bash
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8000" \
cd /app/apprise-api/apprise_api s6-setuidgid abc /usr/sbin/uwsgi --http-socket=:8000 --enable-threads --plugin=python3 --module=core.wsgi:application --static-map=/s=static --buffer-size=32768

View File

@ -0,0 +1 @@
longrun

View File

@ -1,7 +0,0 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
cd /app/apprise-api/apprise_api || exit
exec \
s6-setuidgid abc /usr/sbin/uwsgi --http-socket=:8000 --enable-threads --plugin=python3 --module=core.wsgi:application --static-map=/s=static --buffer-size=32768