From a792139837be1af1b0f3d075efd540cc619e936d Mon Sep 17 00:00:00 2001 From: Alexandre Date: Mon, 10 Jan 2022 16:50:34 +0100 Subject: [PATCH] modulization --- addons_updater/Dockerfile | 10 ++++++++++ arpspoof/Dockerfile | 10 ++++++++++ bazarr/Dockerfile | 10 ++++++++++ bitwarden/Dockerfile | 10 ++++++++++ booksonic_air/Dockerfile | 10 ++++++++++ cloudcommander/Dockerfile | 10 ++++++++++ code-server/Dockerfile | 10 ++++++++++ elasticsearch/Dockerfile | 10 ++++++++++ emby/Dockerfile | 10 ++++++++++ enedisgateway2mqtt/Dockerfile | 10 ++++++++++ enedisgateway2mqtt_dev/Dockerfile | 10 ++++++++++ filebrowser/Dockerfile | 10 ++++++++++ fireflyiii/Dockerfile | 10 ++++++++++ fireflyiii_data_importer/Dockerfile | 10 ++++++++++ flaresolverr/Dockerfile | 10 ++++++++++ flexget/Dockerfile | 10 ++++++++++ gazpar2mqtt/Dockerfile | 10 ++++++++++ grav/Dockerfile | 10 ++++++++++ inadyn/Dockerfile | 10 ++++++++++ jackett/Dockerfile | 10 ++++++++++ jellyfin/Dockerfile | 10 ++++++++++ joal/Dockerfile | 10 ++++++++++ joplin/Dockerfile | 10 ++++++++++ lidarr/Dockerfile | 10 ++++++++++ mealie/Dockerfile | 10 ++++++++++ mylar3/Dockerfile | 10 ++++++++++ nextcloud/Dockerfile | 16 +++++++++++++--- nzbget/Dockerfile | 10 ++++++++++ ombi/Dockerfile | 10 ++++++++++ organizr/Dockerfile | 10 ++++++++++ paperless_ng/Dockerfile | 10 ++++++++++ papermerge/Dockerfile | 10 ++++++++++ photoprism/Dockerfile | 10 ++++++++++ piwigo/Dockerfile | 10 ++++++++++ plex/Dockerfile | 10 ++++++++++ portainer/Dockerfile | 10 ++++++++++ prowlarr/Dockerfile | 10 ++++++++++ qbittorrent/Dockerfile | 4 ++-- radarr/Dockerfile | 10 ++++++++++ readarr/Dockerfile | 10 ++++++++++ requestrr/Dockerfile | 10 ++++++++++ resiliosync/Dockerfile | 10 ++++++++++ scrutiny/Dockerfile | 12 +++++++++++- sonarr/Dockerfile | 10 ++++++++++ teamspeak/Dockerfile | 10 ++++++++++ transmission/Dockerfile | 10 ++++++++++ ubooquity/Dockerfile | 10 ++++++++++ webtop/Dockerfile | 10 ++++++++++ webtrees/Dockerfile | 10 ++++++++++ wger/Dockerfile | 10 ++++++++++ whoogle/Dockerfile | 10 ++++++++++ xteve/Dockerfile | 10 ++++++++++ 52 files changed, 516 insertions(+), 6 deletions(-) diff --git a/addons_updater/Dockerfile b/addons_updater/Dockerfile index cd224d934..c199d5e75 100644 --- a/addons_updater/Dockerfile +++ b/addons_updater/Dockerfile @@ -39,6 +39,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/arpspoof/Dockerfile b/arpspoof/Dockerfile index d7b8849b5..f46bf0204 100644 --- a/arpspoof/Dockerfile +++ b/arpspoof/Dockerfile @@ -39,6 +39,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/bazarr/Dockerfile b/bazarr/Dockerfile index 7316515a5..29d4d755d 100644 --- a/bazarr/Dockerfile +++ b/bazarr/Dockerfile @@ -49,6 +49,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/bitwarden/Dockerfile b/bitwarden/Dockerfile index d63eb3b7b..f4cb88f4f 100644 --- a/bitwarden/Dockerfile +++ b/bitwarden/Dockerfile @@ -50,6 +50,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/booksonic_air/Dockerfile b/booksonic_air/Dockerfile index e806d2cbd..65edc4262 100644 --- a/booksonic_air/Dockerfile +++ b/booksonic_air/Dockerfile @@ -49,6 +49,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/cloudcommander/Dockerfile b/cloudcommander/Dockerfile index 8a5c24877..6eaa0e545 100644 --- a/cloudcommander/Dockerfile +++ b/cloudcommander/Dockerfile @@ -41,6 +41,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/code-server/Dockerfile b/code-server/Dockerfile index 344a9a010..c7a962338 100644 --- a/code-server/Dockerfile +++ b/code-server/Dockerfile @@ -48,6 +48,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/elasticsearch/Dockerfile b/elasticsearch/Dockerfile index d1c0572a1..9d05aa134 100644 --- a/elasticsearch/Dockerfile +++ b/elasticsearch/Dockerfile @@ -37,6 +37,16 @@ RUN sed -i '5a echo "Data location moved. Please wait while elasticsearch starts # 3 Install apps # ################## +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/emby/Dockerfile b/emby/Dockerfile index e9f0d8e65..9e3c0f747 100644 --- a/emby/Dockerfile +++ b/emby/Dockerfile @@ -52,6 +52,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/enedisgateway2mqtt/Dockerfile b/enedisgateway2mqtt/Dockerfile index 7b45adb95..3edc2dfd2 100644 --- a/enedisgateway2mqtt/Dockerfile +++ b/enedisgateway2mqtt/Dockerfile @@ -41,6 +41,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/enedisgateway2mqtt_dev/Dockerfile b/enedisgateway2mqtt_dev/Dockerfile index 615031871..e9e11a5ec 100644 --- a/enedisgateway2mqtt_dev/Dockerfile +++ b/enedisgateway2mqtt_dev/Dockerfile @@ -41,6 +41,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/filebrowser/Dockerfile b/filebrowser/Dockerfile index 5c98561c8..5a06aae7f 100644 --- a/filebrowser/Dockerfile +++ b/filebrowser/Dockerfile @@ -41,6 +41,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/fireflyiii/Dockerfile b/fireflyiii/Dockerfile index 6ba05707c..67ef1ef57 100644 --- a/fireflyiii/Dockerfile +++ b/fireflyiii/Dockerfile @@ -45,6 +45,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/fireflyiii_data_importer/Dockerfile b/fireflyiii_data_importer/Dockerfile index 6ba05707c..67ef1ef57 100644 --- a/fireflyiii_data_importer/Dockerfile +++ b/fireflyiii_data_importer/Dockerfile @@ -45,6 +45,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/flaresolverr/Dockerfile b/flaresolverr/Dockerfile index d77d05a6c..e55addc53 100644 --- a/flaresolverr/Dockerfile +++ b/flaresolverr/Dockerfile @@ -40,6 +40,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/flexget/Dockerfile b/flexget/Dockerfile index 698764096..928d400e5 100644 --- a/flexget/Dockerfile +++ b/flexget/Dockerfile @@ -57,6 +57,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE] +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/gazpar2mqtt/Dockerfile b/gazpar2mqtt/Dockerfile index 1c68afb44..a52873ac0 100644 --- a/gazpar2mqtt/Dockerfile +++ b/gazpar2mqtt/Dockerfile @@ -41,6 +41,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/grav/Dockerfile b/grav/Dockerfile index fb8f5a164..6da5c948a 100644 --- a/grav/Dockerfile +++ b/grav/Dockerfile @@ -52,6 +52,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/inadyn/Dockerfile b/inadyn/Dockerfile index e297eabd7..a1f7a96ab 100644 --- a/inadyn/Dockerfile +++ b/inadyn/Dockerfile @@ -61,6 +61,16 @@ RUN apk add --no-cache \ rm -rf $GOPATH /var/cache/apk/* /tmp/src &&\ apk del .build-deps xz build-base || true +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/jackett/Dockerfile b/jackett/Dockerfile index 665afdbd2..fa956e51f 100644 --- a/jackett/Dockerfile +++ b/jackett/Dockerfile @@ -50,6 +50,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/jellyfin/Dockerfile b/jellyfin/Dockerfile index 472028d30..755701618 100644 --- a/jellyfin/Dockerfile +++ b/jellyfin/Dockerfile @@ -48,6 +48,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/joal/Dockerfile b/joal/Dockerfile index 4a39a3cac..8489cf1d0 100644 --- a/joal/Dockerfile +++ b/joal/Dockerfile @@ -54,6 +54,16 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] ARG BUILD_VERSION ARG BUILD_UPSTREAM="2.1.29" +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/joplin/Dockerfile b/joplin/Dockerfile index 91f274479..32ff1662a 100644 --- a/joplin/Dockerfile +++ b/joplin/Dockerfile @@ -42,6 +42,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/lidarr/Dockerfile b/lidarr/Dockerfile index 471a8d12d..14258e930 100644 --- a/lidarr/Dockerfile +++ b/lidarr/Dockerfile @@ -52,6 +52,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/mealie/Dockerfile b/mealie/Dockerfile index 972df80c6..f369154f8 100644 --- a/mealie/Dockerfile +++ b/mealie/Dockerfile @@ -43,6 +43,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/mylar3/Dockerfile b/mylar3/Dockerfile index 422657d7b..9c1a38a7e 100644 --- a/mylar3/Dockerfile +++ b/mylar3/Dockerfile @@ -47,6 +47,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index c5826d645..91cba5f48 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -38,9 +38,9 @@ RUN \ # modify data limits files # -e 's/memory_limit=512M/memory_limit=1024M/g' \ && sed -i \ - -e 's/upload_max_filesize=1024M/upload_max_filesize=10240M/g' \ - -e 's/post_max_size=1024M/post_max_size=10240M/g' \ - /etc/php7/php.ini \ + -e 's/upload_max_filesize=1024M/upload_max_filesize=10240M/g' \ + -e 's/post_max_size=1024M/post_max_size=10240M/g' \ + /etc/php7/php.ini \ && sed -i "s|client_max_body_size 512M;|client_max_body_size 10240M;|g" /defaults/default ################## @@ -63,6 +63,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get VOLUME ["/share", "/ssl", "/data", "/media"] +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/nzbget/Dockerfile b/nzbget/Dockerfile index 9772dc7e1..5f0d5a025 100644 --- a/nzbget/Dockerfile +++ b/nzbget/Dockerfile @@ -49,6 +49,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/ombi/Dockerfile b/ombi/Dockerfile index 96da037e4..c80815db2 100644 --- a/ombi/Dockerfile +++ b/ombi/Dockerfile @@ -50,6 +50,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/organizr/Dockerfile b/organizr/Dockerfile index 92a00fa0f..b94e20ca8 100644 --- a/organizr/Dockerfile +++ b/organizr/Dockerfile @@ -54,6 +54,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/paperless_ng/Dockerfile b/paperless_ng/Dockerfile index fc30ce0b8..60e660a44 100644 --- a/paperless_ng/Dockerfile +++ b/paperless_ng/Dockerfile @@ -54,6 +54,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/papermerge/Dockerfile b/papermerge/Dockerfile index 82e4a6af7..d46710744 100644 --- a/papermerge/Dockerfile +++ b/papermerge/Dockerfile @@ -51,6 +51,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/photoprism/Dockerfile b/photoprism/Dockerfile index ef3204383..f83718f36 100644 --- a/photoprism/Dockerfile +++ b/photoprism/Dockerfile @@ -58,6 +58,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/piwigo/Dockerfile b/piwigo/Dockerfile index 1e8a30fe5..7b4530cb7 100644 --- a/piwigo/Dockerfile +++ b/piwigo/Dockerfile @@ -48,6 +48,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/plex/Dockerfile b/plex/Dockerfile index e8f25cc15..8be001869 100644 --- a/plex/Dockerfile +++ b/plex/Dockerfile @@ -63,6 +63,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/portainer/Dockerfile b/portainer/Dockerfile index 3eafb1623..0700f2ef9 100644 --- a/portainer/Dockerfile +++ b/portainer/Dockerfile @@ -61,6 +61,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/prowlarr/Dockerfile b/prowlarr/Dockerfile index 3cb8ab0a2..8a264026f 100644 --- a/prowlarr/Dockerfile +++ b/prowlarr/Dockerfile @@ -53,6 +53,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/qbittorrent/Dockerfile b/qbittorrent/Dockerfile index c89a6c65e..d2585b27b 100644 --- a/qbittorrent/Dockerfile +++ b/qbittorrent/Dockerfile @@ -71,8 +71,8 @@ ARG MODULES="00-banner.sh 92-local_mounts.sh 92-smb_mounts.sh 90-dns_set.sh" # Automatic modules download RUN mkdir -p /tmpscripts /etc/cont-init.d && \ for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ - /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && \ - chmod -R 755 /etc/cont-init.d && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE ################ diff --git a/radarr/Dockerfile b/radarr/Dockerfile index bb876d50d..d5597e896 100644 --- a/radarr/Dockerfile +++ b/radarr/Dockerfile @@ -54,6 +54,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/readarr/Dockerfile b/readarr/Dockerfile index d2f5a7b5f..6ccfbb3cf 100644 --- a/readarr/Dockerfile +++ b/readarr/Dockerfile @@ -48,6 +48,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/requestrr/Dockerfile b/requestrr/Dockerfile index 2e1a7f209..06425bccf 100644 --- a/requestrr/Dockerfile +++ b/requestrr/Dockerfile @@ -52,6 +52,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/resiliosync/Dockerfile b/resiliosync/Dockerfile index fd87d67ed..30306146e 100644 --- a/resiliosync/Dockerfile +++ b/resiliosync/Dockerfile @@ -62,6 +62,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/scrutiny/Dockerfile b/scrutiny/Dockerfile index 0e39e41f5..2bec1d0de 100644 --- a/scrutiny/Dockerfile +++ b/scrutiny/Dockerfile @@ -33,7 +33,7 @@ RUN \ && sed -i 's| /config| /data|g' /etc/crontabs/root \ # correct url paths && grep -rl '/web/' /app/scrutiny-web/ | xargs sed -i 's|/web/|./|g' - + ################## # 3 Install apps # ################## @@ -55,6 +55,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/sonarr/Dockerfile b/sonarr/Dockerfile index 1dd833184..0924ba6b3 100644 --- a/sonarr/Dockerfile +++ b/sonarr/Dockerfile @@ -53,6 +53,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/teamspeak/Dockerfile b/teamspeak/Dockerfile index fcb9cc06e..f31bd2c76 100644 --- a/teamspeak/Dockerfile +++ b/teamspeak/Dockerfile @@ -31,6 +31,16 @@ VOLUME [ "/data:/var/ts3server/" ] # 3 Install apps # ################## +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/transmission/Dockerfile b/transmission/Dockerfile index efff5cfb8..10615fd3a 100644 --- a/transmission/Dockerfile +++ b/transmission/Dockerfile @@ -52,6 +52,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/ubooquity/Dockerfile b/ubooquity/Dockerfile index d314458ee..4a82e5d69 100644 --- a/ubooquity/Dockerfile +++ b/ubooquity/Dockerfile @@ -60,6 +60,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/webtop/Dockerfile b/webtop/Dockerfile index 744220cdd..621acfcb8 100644 --- a/webtop/Dockerfile +++ b/webtop/Dockerfile @@ -52,6 +52,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/webtrees/Dockerfile b/webtrees/Dockerfile index 32d6d75c8..347a7da3a 100644 --- a/webtrees/Dockerfile +++ b/webtrees/Dockerfile @@ -50,6 +50,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/wger/Dockerfile b/wger/Dockerfile index b0a61cd7f..a0a05814b 100644 --- a/wger/Dockerfile +++ b/wger/Dockerfile @@ -31,6 +31,16 @@ RUN touch /data/database.sqlite \ # 3 Install apps # ################## +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/whoogle/Dockerfile b/whoogle/Dockerfile index cd3ed814b..ec3bd68bd 100644 --- a/whoogle/Dockerfile +++ b/whoogle/Dockerfile @@ -41,6 +41,16 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get /automatic_packages.sh "${PACKAGES:-}" && \ rm /automatic_packages.sh || printf '%s\n' "${PACKAGES:-}" > /ENVFILE +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################ diff --git a/xteve/Dockerfile b/xteve/Dockerfile index f0ee292ae..13a23a7ca 100644 --- a/xteve/Dockerfile +++ b/xteve/Dockerfile @@ -26,6 +26,16 @@ RUN cp -vnpr /etc/opt/xteve* /data || true CMD ["-config", "/data", "-port", "34400"] +# Modules +ARG MODULES="00-banner.sh" + +# Automatic modules download +RUN mkdir -p /tmpscripts /etc/cont-init.d && \ + for scripts in $MODULES; do curl -L -f -s "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/zzz_templates/$scripts" -o /tmpscripts/"$scripts"; done && \ + if [ -d /etc/cont-init.d ]; then /bin/cp -rf /tmpscripts/* /etc/cont-init.d/ && chmod -R 755 /etc/cont-init.d; fi && \ + if [ -d /scripts ]; then /bin/cp -rf /tmpscripts/* /scripts/ && chmod -R 755 /scripts; fi && \ + rm -rf /tmpscripts || printf '%s\n' "${MODULES:-}" > /MODULESFILE + ################ # 4 Entrypoint # ################