Skip to content

Commit

Permalink
Migrate whisparr to s6v3 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
thespad authored Sep 26, 2022
1 parent eaeb608 commit b9f7778
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 9 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM ghcr.io/linuxserver/baseimage-alpine:3.15
FROM ghcr.io/linuxserver/baseimage-alpine:3.16

# set version label
ARG BUILD_DATE
ARG VERSION
ARG APP_VERSION
LABEL build_version="Version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thespad"
LABEL org.opencontainers.image.source="https://github.com/thespad/docker-whisparr"
LABEL org.opencontainers.image.url="https://github.com/thespad/docker-whisparr"

# environment settings
ARG APP_BRANCH="nightly"
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM ghcr.io/linuxserver/baseimage-alpine:3.15
FROM ghcr.io/linuxserver/baseimage-alpine:3.16

# set version label
ARG BUILD_DATE
ARG VERSION
ARG APP_VERSION
LABEL build_version="Version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thespad"
LABEL org.opencontainers.image.source="https://github.com/thespad/docker-whisparr"
LABEL org.opencontainers.image.url="https://github.com/thespad/docker-whisparr"

# environment settings
ARG APP_BRANCH="nightly"
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile.armhf
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM ghcr.io/linuxserver/baseimage-alpine:3.15
FROM ghcr.io/linuxserver/baseimage-alpine:3.16

# set version label
ARG BUILD_DATE
ARG VERSION
ARG APP_VERSION
LABEL build_version="Version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thespad"
LABEL org.opencontainers.image.source="https://github.com/thespad/docker-whisparr"
LABEL org.opencontainers.image.url="https://github.com/thespad/docker-whisparr"

# environment settings
ARG APP_BRANCH="nightly"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ Container images are configured using parameters passed at runtime (such as thos

## Versions

* **23.09.22:** - Rebase to 3.16, migrate to s6v3.
* **01.04.22:** - Initial Release.
2 changes: 1 addition & 1 deletion root/etc/cont-init.d/10-adduser → root/etc/s6-overlay/s6-rc.d/init-adduser/run
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ fi

chown abc:abc /app
chown abc:abc /config
chown abc:abc /defaults
chown abc:abc /defaults
Empty file.
Empty file.
File renamed without changes.
1 change: 1 addition & 0 deletions root/etc/s6-overlay/s6-rc.d/init-whisparr-config/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oneshot
1 change: 1 addition & 0 deletions root/etc/s6-overlay/s6-rc.d/init-whisparr-config/up
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-whisparr-config/run
Empty file.
1 change: 1 addition & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-whisparr/notification-fd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3
6 changes: 6 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-whisparr/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/with-contenv bash

exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z 127.0.0.1 6969" \
s6-setuidgid abc /app/whisparr/bin/Whisparr \
-nobrowser -data=/config
1 change: 1 addition & 0 deletions root/etc/s6-overlay/s6-rc.d/svc-whisparr/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
longrun
Empty file.
Empty file.
5 changes: 0 additions & 5 deletions root/etc/services.d/whisparr/run

This file was deleted.

0 comments on commit b9f7778

Please sign in to comment.