Fix Redis in immich_cuda: install redis-server directly instead of Docker mods

Apply the same Redis fix from the immich addon to immich_cuda:
- Remove DOCKER_MODS env var from Dockerfile and config.yaml
- Add redis-server to PACKAGES for direct installation
- s6-rc service files, redis.conf, and 20-folders.sh were already updated

This prevents ECONNRESET errors caused by Docker mods failing to install
Redis at runtime (issue #2615).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-28 22:42:07 +00:00
parent 60a5adb5c3
commit eb08853b50
11 changed files with 107 additions and 22 deletions

View File

@@ -34,13 +34,8 @@ COPY 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=""
# Install REDIS directly instead of via Docker mods for reliability
# (Docker mods can fail to install Redis at runtime, causing ECONNRESET errors)
##################
# 3 Install apps #
@@ -63,7 +58,7 @@ COPY 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 sed jq"
ENV PACKAGES="sudo yamllint pip sed jq redis-server"
# Automatic apps & bashio
COPY ha_autoapps.sh /ha_autoapps.sh