diff --git a/.github/workflows/call_invalid_helper.yml b/.github/workflows/call_invalid_helper.yml new file mode 100644 index 0000000..773767c --- /dev/null +++ b/.github/workflows/call_invalid_helper.yml @@ -0,0 +1,12 @@ +name: Comment on invalid interaction +on: + issues: + types: + - labeled +jobs: + add-comment-on-invalid: + if: github.event.label.name == 'invalid' + permissions: + issues: write + uses: linuxserver/github-workflows/.github/workflows/invalid-interaction-helper.yml@v1 + secrets: inherit diff --git a/Dockerfile b/Dockerfile index 1aeef93..dd4ba79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ -FROM ghcr.io/linuxserver/baseimage-ubuntu:focal +# syntax=docker/dockerfile:1 + +FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy # set version label ARG BUILD_DATE @@ -23,7 +25,10 @@ RUN \ "resilio-sync=${SYNC_VERSION}" && \ echo "**** cleanup ****" && \ rm -rf \ - /tmp/* + /tmp/* \ + /var/lib/apt/lists/* \ + /var/tmp/* \ + /var/log/* # add local files COPY root/ / diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 581b383..e7621aa 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -1,4 +1,6 @@ -FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-focal +# syntax=docker/dockerfile:1 + +FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-jammy # set version label ARG BUILD_DATE @@ -23,7 +25,10 @@ RUN \ "resilio-sync=${SYNC_VERSION}" && \ echo "**** cleanup ****" && \ rm -rf \ - /tmp/* + /tmp/* \ + /var/lib/apt/lists/* \ + /var/tmp/* \ + /var/log/* # add local files COPY root/ / diff --git a/Dockerfile.armhf b/Dockerfile.armhf index d88c376..398cea6 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -1,4 +1,6 @@ -FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-focal +# syntax=docker/dockerfile:1 + +FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-jammy # set version label ARG BUILD_DATE @@ -23,7 +25,10 @@ RUN \ "resilio-sync=${SYNC_VERSION}" && \ echo "**** cleanup ****" && \ rm -rf \ - /tmp/* + /tmp/* \ + /var/lib/apt/lists/* \ + /var/tmp/* \ + /var/log/* # add local files COPY root/ / diff --git a/README.md b/README.md index eacd356..0bb8e29 100644 --- a/README.md +++ b/README.md @@ -231,6 +231,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **14.12.22:** - Rebase to Jammy, migrate to s6v3. * **03.10.21:** - Use upstream apt repo to install. Rebase to focal. * **20.01.21:** - Deprecate `UMASK_SET` in favor of UMASK in baseimage, see above for more information. * **23.03.19:** - Switching to new Base images, shift to arm32v7 tag. diff --git a/readme-vars.yml b/readme-vars.yml index 21ed602..9715d2f 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -46,6 +46,7 @@ app_setup_block: | # changelog changelogs: + - { date: "14.12.22:", desc: "Rebase to Jammy, migrate to s6v3." } - { date: "03.10.21:", desc: "Use upstream apt repo to install. Rebase to focal." } - { date: "20.01.21:", desc: "Deprecate `UMASK_SET` in favor of UMASK in baseimage, see above for more information." } - { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." } diff --git a/root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-resilio-sync-config b/root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-resilio-sync-config new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/s6-overlay/s6-rc.d/init-resilio-sync-config/dependencies.d/init-config b/root/etc/s6-overlay/s6-rc.d/init-resilio-sync-config/dependencies.d/init-config new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/cont-init.d/30-config b/root/etc/s6-overlay/s6-rc.d/init-resilio-sync-config/run old mode 100644 new mode 100755 similarity index 61% rename from root/etc/cont-init.d/30-config rename to root/etc/s6-overlay/s6-rc.d/init-resilio-sync-config/run index 5e70d11..30a498e --- a/root/etc/cont-init.d/30-config +++ b/root/etc/s6-overlay/s6-rc.d/init-resilio-sync-config/run @@ -1,11 +1,13 @@ #!/usr/bin/with-contenv bash # copy config -[[ ! -e /config/sync.conf ]] && \ +if [[ ! -e /config/sync.conf ]]; then cp /defaults/sync.conf /config/sync.conf +fi # permissions -chown -R abc:abc \ +lsiown -R abc:abc \ /config -chown abc:abc \ + +lsiown abc:abc \ /sync diff --git a/root/etc/s6-overlay/s6-rc.d/init-resilio-sync-config/type b/root/etc/s6-overlay/s6-rc.d/init-resilio-sync-config/type new file mode 100644 index 0000000..bdd22a1 --- /dev/null +++ b/root/etc/s6-overlay/s6-rc.d/init-resilio-sync-config/type @@ -0,0 +1 @@ +oneshot diff --git a/root/etc/s6-overlay/s6-rc.d/init-resilio-sync-config/up b/root/etc/s6-overlay/s6-rc.d/init-resilio-sync-config/up new file mode 100644 index 0000000..c90642c --- /dev/null +++ b/root/etc/s6-overlay/s6-rc.d/init-resilio-sync-config/up @@ -0,0 +1 @@ +/etc/s6-overlay/s6-rc.d/init-resilio-sync-config/run diff --git a/root/etc/s6-overlay/s6-rc.d/svc-resilio-sync/dependencies.d/init-services b/root/etc/s6-overlay/s6-rc.d/svc-resilio-sync/dependencies.d/init-services new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/s6-overlay/s6-rc.d/svc-resilio-sync/notification-fd b/root/etc/s6-overlay/s6-rc.d/svc-resilio-sync/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/root/etc/s6-overlay/s6-rc.d/svc-resilio-sync/notification-fd @@ -0,0 +1 @@ +3 diff --git a/root/etc/s6-overlay/s6-rc.d/svc-resilio-sync/run b/root/etc/s6-overlay/s6-rc.d/svc-resilio-sync/run new file mode 100755 index 0000000..1bb6c0b --- /dev/null +++ b/root/etc/s6-overlay/s6-rc.d/svc-resilio-sync/run @@ -0,0 +1,6 @@ +#!/usr/bin/with-contenv bash + + exec \ + s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8888" \ + s6-setuidgid abc rslsync \ + --nodaemon --config /config/sync.conf diff --git a/root/etc/s6-overlay/s6-rc.d/svc-resilio-sync/type b/root/etc/s6-overlay/s6-rc.d/svc-resilio-sync/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/root/etc/s6-overlay/s6-rc.d/svc-resilio-sync/type @@ -0,0 +1 @@ +longrun diff --git a/root/etc/s6-overlay/s6-rc.d/user/contents.d/init-resilio-sync-config b/root/etc/s6-overlay/s6-rc.d/user/contents.d/init-resilio-sync-config new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/s6-overlay/s6-rc.d/user/contents.d/svc-resilio-sync b/root/etc/s6-overlay/s6-rc.d/user/contents.d/svc-resilio-sync new file mode 100644 index 0000000..e69de29 diff --git a/root/etc/services.d/resilio/run b/root/etc/services.d/resilio/run deleted file mode 100644 index 4a064ce..0000000 --- a/root/etc/services.d/resilio/run +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/with-contenv bash - - if [ -n "${UMASK_SET}" ] && [ -z "${UMASK}" ]; then - echo -e "You are using a legacy method of defining umask\nplease update your environment variable from UMASK_SET to UMASK\nto keep the functionality after July 2021" - umask ${UMASK_SET} - fi - - exec \ - s6-setuidgid abc rslsync \ - --nodaemon --config /config/sync.conf