diff --git a/changedetection.io/CHANGELOG.md b/changedetection.io/CHANGELOG.md new file mode 100644 index 000000000..ffb4c0044 --- /dev/null +++ b/changedetection.io/CHANGELOG.md @@ -0,0 +1,3 @@ + +## 0.45.1 (10-09-2023) +- Initial build diff --git a/changedetection/Dockerfile b/changedetection.io/Dockerfile similarity index 85% rename from changedetection/Dockerfile rename to changedetection.io/Dockerfile index c944ddf8c..b9abf536b 100644 --- a/changedetection/Dockerfile +++ b/changedetection.io/Dockerfile @@ -31,7 +31,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ # Global LSIO modifications ADD --chmod=744 "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh" -ARG CONFIGLOCATION="/config" +ARG CONFIGLOCATION="/config/addons_config/changedetection.io" RUN if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_lsio.sh ################## @@ -42,7 +42,7 @@ RUN if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_ls COPY rootfs/ / # Modules -ARG MODULES="00-banner.sh 01-custom_script.sh" +ARG MODULES="00-banner.sh 01-custom_script.sh 00-global_var.sh" # Automatic modules download ADD --chmod=744 "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automodules.sh" "/ha_automodules.sh" @@ -65,16 +65,8 @@ ADD --chmod=777 "https://raw.githubusercontent.com/alexbelgium/hassio-addons/mas # Entrypoint modifications ADD --chmod=777 "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint_modif.sh" +RUN /ha_entrypoint_modif.sh && rm /ha_entrypoint_modif.sh -RUN \ - # Corrects permissions for s6 v3 - if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \ - if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \ - #Correct shebang in entrypoint - mkdir -p /run/s6/container_environment && \ - for shebang in "/command/with-contenv bashio" "/usr/bin/env bashio" "/usr/bin/bashio" "/bin/bash" "/bin/sh"; do if [ -f "${shebang%% *}" ]; then break; fi; done; sed -i "s|/command/with-contenv bashio|$shebang|g" /ha_entrypoint.sh - -# #WORKDIR / #ENTRYPOINT [ "/usr/bin/env" ] #CMD [ "/ha_entrypoint.sh" ] diff --git a/changedetection/README.md b/changedetection.io/README.md similarity index 82% rename from changedetection/README.md rename to changedetection.io/README.md index b629f8b81..7d72c6b66 100644 --- a/changedetection/README.md +++ b/changedetection.io/README.md @@ -24,36 +24,15 @@ _Thanks to everyone having starred my repo! To star it click on the image below, This addon is based on the [docker image](https://github.com/linuxserver/docker-changedetection.io) from linuxserver.io. - - - - - - - - - - - - - - - - ## Configuration -Webui can be found at `:8096`. +Webui can be found at `:5000`. ```yaml PGID: user GPID: user -TZ: timezone -claim: claim code for changedetection.io server # see https://github.com/linuxserver/docker-changedetection.io -localdisks: sda1 #put the hardware name of your drive to mount separated by commas, or its label. ex. sda1, sdb1, MYNAS... -networkdisks: "//SERVER/SHARE" # optional, list of smb servers to mount, separated by commas -cifsusername: "username" # optional, smb username, same for all smb shares -cifspassword: "password" # optional, smb password -cifsdomain: "domain" # optional, allow setting the domain for the smb share +TZ: Etc/UTC specify a timezone to use, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List +BASE_URL: Specify the full URL (including protocol) when running behind a reverse proxy ``` ## Installation diff --git a/changedetection.io/apparmor.txt b/changedetection.io/apparmor.txt new file mode 100644 index 000000000..9de4432d7 --- /dev/null +++ b/changedetection.io/apparmor.txt @@ -0,0 +1,67 @@ +#include + +profile addon_db21ed7f_changedetection.io_nas flags=(attach_disconnected,mediate_deleted) { + #include + + capability, + file, + signal, + mount, + umount, + remount, + network udp, + network tcp, + network dgram, + network stream, + network inet, + network inet6, + network netlink raw, + network unix dgram, + + capability setgid, + capability setuid, + capability sys_admin, + capability dac_read_search, + # capability dac_override, + # capability sys_rawio, + +# S6-Overlay + /init ix, + /run/{s6,s6-rc*,service}/** ix, + /package/** ix, + /command/** ix, + /run/{,**} rwk, + /dev/tty rw, + /bin/** ix, + /usr/bin/** ix, + /usr/lib/bashio/** ix, + /etc/s6/** rix, + /run/s6/** rix, + /etc/services.d/** rwix, + /etc/cont-init.d/** rwix, + /etc/cont-finish.d/** rwix, + /init rix, + /var/run/** mrwkl, + /var/run/ mrwkl, + /dev/i2c-1 mrwkl, + # Files required + /dev/fuse mrwkl, + /dev/sda1 mrwkl, + /dev/sdb1 mrwkl, + /dev/nvme0 mrwkl, + /dev/nvme1 mrwkl, + /dev/mmcblk0p1 mrwkl, + /dev/ttyUSB0 mrwkl, + /dev/* mrwkl, + /tmp/** mrkwl, + + # Data access + /data/** rw, + + # suppress ptrace denials when using 'docker ps' or using 'ps' inside a container + ptrace (trace,read) peer=docker-default, + + # docker daemon confinement requires explict allow rule for signal + signal (receive) set=(kill,term) peer=/usr/bin/docker, + +} diff --git a/changedetection.io/build.json b/changedetection.io/build.json new file mode 100644 index 000000000..13fca3e2d --- /dev/null +++ b/changedetection.io/build.json @@ -0,0 +1,9 @@ +{ + "build_from": { + "aarch64": "lscr.io/linuxserver/changedetection.io:arm64v8-latest", + "amd64": "lscr.io/linuxserver/changedetection.io:amd64-latest" + }, + "codenotary": { + "signer": "alexandrep.github@gmail.com" + } +} diff --git a/changedetection.io/config.json b/changedetection.io/config.json new file mode 100644 index 000000000..2afb4d650 --- /dev/null +++ b/changedetection.io/config.json @@ -0,0 +1,38 @@ +{ + "arch": [ + "aarch64", + "amd64" + ], + "codenotary": "alexandrep.github@gmail.com", + "description": "free, open-source web page monitoring, notification and change detection", + "environment": { + "PGID": "0", + "PUID": "0" + }, + "image": "ghcr.io/alexbelgium/changedetection.io_nas-{arch}", + "init": false, + "map": [ + "config:rw" + ], + "name": "Changedetection.io", + "options": { + "PGID": 0, + "PUID": 0 + }, + "ports": { + "5000/udp": 5000 + }, + "ports_description": { + "5000/udp": "Webui" + }, + "schema": { + "PGID": "int", + "PUID": "int", + "TZ": "str?", + "BASE_URL": "str?" + }, + "slug": "changedetection.io", + "url": "https://github.com/alexbelgium/hassio-addons/tree/master/changedetection.io", + "version": "0.45.1", + "webui": "[PROTO:ssl]://[HOST]:[PORT:5000]" +} diff --git a/changedetection.io/icon.png b/changedetection.io/icon.png new file mode 100644 index 000000000..ff5cf145c Binary files /dev/null and b/changedetection.io/icon.png differ diff --git a/changedetection.io/logo.png b/changedetection.io/logo.png new file mode 100644 index 000000000..ff5cf145c Binary files /dev/null and b/changedetection.io/logo.png differ diff --git a/changedetection.io/rootfs/blank b/changedetection.io/rootfs/blank new file mode 100644 index 000000000..e69de29bb diff --git a/changedetection.io/rootfs/etc/cont-init.d/21-folders.sh b/changedetection.io/rootfs/etc/cont-init.d/21-folders.sh new file mode 100644 index 000000000..5f12c568c --- /dev/null +++ b/changedetection.io/rootfs/etc/cont-init.d/21-folders.sh @@ -0,0 +1,14 @@ +#!/usr/bin/with-contenv bashio +# shellcheck shell=bash + +# Define user +PUID=$(bashio::config "PUID") +PGID=$(bashio::config "PGID") + +# Check data location +LOCATION="/config/addons_config/changedetection.io" + +# Check structure +mkdir -p "$LOCATION" +chown -R "$PUID":"$PGID" "$LOCATION" +chmod -R 755 "$LOCATION" diff --git a/changedetection.io/stats.png b/changedetection.io/stats.png new file mode 100644 index 000000000..a72a273e2 Binary files /dev/null and b/changedetection.io/stats.png differ diff --git a/changedetection.io/updater.json b/changedetection.io/updater.json new file mode 100644 index 000000000..539b3ad20 --- /dev/null +++ b/changedetection.io/updater.json @@ -0,0 +1,9 @@ +{ + "github_fulltag": "false", + "last_update": "09-09-2023", + "repository": "alexbelgium/hassio-addons", + "slug": "changedetection.io", + "source": "github", + "upstream_repo": "linuxserver/docker-changedetection.io", + "upstream_version": "0.45.1" +}