From c906d1a0a1f086241487f8cd831857d9d1c658e6 Mon Sep 17 00:00:00 2001 From: alexbelgium Date: Sat, 1 Mar 2025 01:56:33 +0100 Subject: [PATCH] Updater bot : immich_cuda updated to 1.128.0 --- immich_cuda/CHANGELOG.md | 3 + immich_cuda/Dockerfile | 158 ++++++++++++++++++++++++++++++++++++++- immich_cuda/config.json | 2 +- immich_cuda/updater.json | 4 +- 4 files changed, 163 insertions(+), 4 deletions(-) mode change 120000 => 100644 immich_cuda/Dockerfile diff --git a/immich_cuda/CHANGELOG.md b/immich_cuda/CHANGELOG.md index 7e964152f..e80b31864 100644 --- a/immich_cuda/CHANGELOG.md +++ b/immich_cuda/CHANGELOG.md @@ -1,3 +1,6 @@ + +## 1.128.0 (01-03-2025) +- Update to latest version from imagegenius/docker-immich (changelog : https://github.com/imagegenius/docker-immich/releases) ## 1.126.1-10 (18-02-2025) - Minor bugs fixed ## 1.126.1-7 (16-02-2025) diff --git a/immich_cuda/Dockerfile b/immich_cuda/Dockerfile deleted file mode 120000 index 00fe01b0e..000000000 --- a/immich_cuda/Dockerfile +++ /dev/null @@ -1 +0,0 @@ -../immich/Dockerfile \ No newline at end of file diff --git a/immich_cuda/Dockerfile b/immich_cuda/Dockerfile new file mode 100644 index 000000000..1bf7fba0f --- /dev/null +++ b/immich_cuda/Dockerfile @@ -0,0 +1,157 @@ +#============================# +# ALEXBELGIUM'S DOCKERFILE # +#============================# +# _.------. +# _.-` ('>.-`"""-. +# '.--'` _'` _ .--.) +# -' '-.-';` ` +# ' - _.' ``'--. +# d '---` .-'""` +# /` +#=== Home Assistant Addon ===# + +################# +# 1 Build Image # +################# + +ARG BUILD_VERSION +ARG BUILD_FROM +FROM $BUILD_FROM + +################## +# 2 Modify Image # +################## + +# Set S6 wait time +ENV S6_CMD_WAIT_FOR_SERVICES=1 \ + S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \ + S6_SERVICES_GRACETIME=0 + +USER root + +# Global LSIO modifications +ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh" +ARG CONFIGLOCATION="/config" +RUN chmod 744 /ha_lsio.sh && if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && rm /ha_lsio.sh + +# Install REDIS +ENV DOCKER_MODS="imagegenius/mods:universal-redis" + +# && chmod 777 -R /docker-mods \ +# && /./docker-mods/* || ls / \ +# && if [ !-f /defaults/redis.conf ]; then echo "Not installed" && exit 1; fi +#ENV DOCKER_MODS="" + +################## +# 3 Install apps # +################## + +# Add rootfs +COPY rootfs/ / + +# Uses /bin for compatibility purposes +# hadolint ignore=DL4005 +RUN if [ ! -f /bin/sh ] && [ -f /usr/bin/sh ]; then ln -s /usr/bin/sh /bin/sh; fi && \ + if [ ! -f /bin/bash ] && [ -f /usr/bin/bash ]; then ln -s /usr/bin/bash /bin/bash; fi + +# Modules +ARG MODULES="00-banner.sh 01-custom_script.sh 00-global_var.sh 00-local_mounts.sh 00-smb_mounts.sh" + +# Automatic modules download +ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automodules.sh" "/ha_automodules.sh" +RUN chmod 744 /ha_automodules.sh && /ha_automodules.sh "$MODULES" && rm /ha_automodules.sh + +# Manual apps +ENV PACKAGES="sudo yamllint pip jq" + +# Automatic apps & bashio +ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_autoapps.sh" "/ha_autoapps.sh" +RUN chmod 744 /ha_autoapps.sh && /ha_autoapps.sh "$PACKAGES" && rm /ha_autoapps.sh + +################ +# 4 Entrypoint # +################ + +# Add entrypoint +ENV S6_STAGE2_HOOK=/ha_entrypoint.sh +ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh" + +# Entrypoint modifications +ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint_modif.sh" "/ha_entrypoint_modif.sh" +RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif.sh && rm /ha_entrypoint_modif.sh + +RUN sed -i "s|postgresql-16|postgresql-15|g" /etc/s6-overlay/s6-rc.d/init-test-run/run + +# Install dependencies +SHELL ["/bin/bash", "-o", "pipefail", "-c"] +RUN apt-get update && apt-get install -y --no-install-recommends \ + lsb-release \ + wget \ + gnupg && \ + echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \ + wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \ + apt-get update && \ + apt-get install -y --no-install-recommends postgresql-client-15 + +#ENTRYPOINT [ "/usr/bin/env" ] +#CMD [ "/ha_entrypoint.sh" ] + +############ +# 5 Labels # +############ + +ARG BUILD_ARCH +ARG BUILD_DATE +ARG BUILD_DESCRIPTION +ARG BUILD_NAME +ARG BUILD_REF +ARG BUILD_REPOSITORY +ARG BUILD_VERSION +ENV BUILD_VERSION="${BUILD_VERSION}" +LABEL \ + io.hass.name="${BUILD_NAME}" \ + io.hass.description="${BUILD_DESCRIPTION}" \ + io.hass.arch="${BUILD_ARCH}" \ + io.hass.type="addon" \ + io.hass.version=${BUILD_VERSION} \ + maintainer="alexbelgium (https://github.com/alexbelgium)" \ + org.opencontainers.image.title="${BUILD_NAME}" \ + org.opencontainers.image.description="${BUILD_DESCRIPTION}" \ + org.opencontainers.image.vendor="Home Assistant Add-ons" \ + org.opencontainers.image.authors="alexbelgium (https://github.com/alexbelgium)" \ + org.opencontainers.image.licenses="MIT" \ + org.opencontainers.image.url="https://github.com/alexbelgium" \ + org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \ + org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \ + org.opencontainers.image.created=${BUILD_DATE} \ + org.opencontainers.image.revision=${BUILD_REF} \ + org.opencontainers.image.version=${BUILD_VERSION} + +################# +# 6 Healthcheck # +################# + +# Avoid spamming logs +# hadolint ignore=SC2016 +RUN \ + # Handle Apache configuration + if [ -d /etc/apache2/sites-available ]; then \ + for file in /etc/apache2/sites-*/*.conf; do \ + sed -i '/ /etc/nginx/nginx.conf.new && \ + mv /etc/nginx/nginx.conf.new /etc/nginx/nginx.conf; \ + fi + +ENV HEALTH_PORT="8080" \ + HEALTH_URL="/api/server/ping" +HEALTHCHECK \ + --interval=5s \ + --retries=5 \ + --start-period=30s \ + --timeout=25s \ + CMD curl -A "HealthCheck: Docker/1.0" -s -f "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" &>/dev/null || exit 1 diff --git a/immich_cuda/config.json b/immich_cuda/config.json index b22e0c6e9..3916dea5f 100644 --- a/immich_cuda/config.json +++ b/immich_cuda/config.json @@ -148,7 +148,7 @@ "udev": true, "url": "https://github.com/alexbelgium/hassio-addons", "usb": true, - "version": "1.126.1-10", + "version": "1.128.0", "video": true, "webui": "http://[HOST]:[PORT:8080]" } diff --git a/immich_cuda/updater.json b/immich_cuda/updater.json index db311236b..114edab2e 100644 --- a/immich_cuda/updater.json +++ b/immich_cuda/updater.json @@ -1,9 +1,9 @@ { "github_beta": "false", - "last_update": "15-02-2025", + "last_update": "01-03-2025", "repository": "alexbelgium/hassio-addons", "slug": "immich", "source": "github", "upstream_repo": "imagegenius/docker-immich", - "upstream_version": "1.126.1" + "upstream_version": "1.128.0" }