Revert 'try' [nobuild]

This commit is contained in:
GitHub Actions
2025-07-16 06:28:33 +00:00
parent 8a40cf8537
commit c3c32bacbb
2 changed files with 46 additions and 76 deletions

View File

@@ -11,113 +11,89 @@
#=== Home Assistant Addon ENTE ===# #=== Home Assistant Addon ENTE ===#
################# #################
# 1 Base Image # # 1 Build Image #
################# #################
ARG BUILD_VERSION ARG BUILD_VERSION
FROM ghcr.io/ente-io/server:latest FROM ghcr.io/ente-io/server:latest
######################### ##################
# 2 S6 / base settings # # 2 Modify Image #
######################### ##################
# S6 settings
ENV S6_CMD_WAIT_FOR_SERVICES=1 \ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \ S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
S6_SERVICES_GRACETIME=0 S6_SERVICES_GRACETIME=0
USER root USER root
############################################# # LSIO helpers (same repo you already use)
# 3 LSIO helper patch (same pattern as you) #
#############################################
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh" ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_lsio.sh" "/ha_lsio.sh"
ARG CONFIGLOCATION="/config" ARG CONFIGLOCATION="/config"
RUN chmod 744 /ha_lsio.sh && \ RUN chmod 744 /ha_lsio.sh && \
if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && \ if grep -qr "lsio" /etc; then /ha_lsio.sh "$CONFIGLOCATION"; fi && \
rm /ha_lsio.sh rm /ha_lsio.sh
############################################# # ---------- MinIO & tools (needed by Ente) ----------
# 4 System packages + Postgres 17 + tooling # # server binary + client (`mc`)
#############################################
# Use bash shell for multi-line RUNs
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# -- Install base deps, add PGDG repo, install PostgreSQL 17 server & client --
RUN set -eux \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
curl ca-certificates gnupg wget jq sudo lsb-release tzdata \
&& echo "deb [arch=$(dpkg --print-architecture)] http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" \
> /etc/apt/sources.list.d/pgdg.list \
&& wget -qO- https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
postgresql-17 postgresql-client-17 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
###################################
# 5 MinIO server + CLI (multi-arch)
###################################
# BuildKit sets TARGETARCH (amd64/arm64, etc.)
ARG TARGETARCH
RUN set -eux; \ RUN set -eux; \
arch="${TARGETARCH:-amd64}"; \ apk add --no-cache \
case "$arch" in \ bash curl ca-certificates wget jq tini postgresql15-client; \
amd64|x86_64) minio_arch="amd64" ;; \ curl -fsSL https://dl.min.io/server/minio/release/linux-amd64/minio -o /usr/local/bin/minio; \
arm64|aarch64) minio_arch="arm64" ;; \ curl -fsSL https://dl.min.io/client/mc/release/linux-amd64/mc -o /usr/local/bin/mc; \
*) minio_arch="amd64" ;; \
esac; \
curl -fsSL "https://dl.min.io/server/minio/release/linux-${minio_arch}/minio" -o /usr/local/bin/minio; \
curl -fsSL "https://dl.min.io/client/mc/release/linux-${minio_arch}/mc" -o /usr/local/bin/mc; \
chmod +x /usr/local/bin/minio /usr/local/bin/mc chmod +x /usr/local/bin/minio /usr/local/bin/mc
##################################################### RUN apk update && \
# 6 Ensure predictable paths for museum & enteweb # apk add --no-cache \
##################################################### lsb-release curl gnupg wget tini jq sudo \
# (Base image already has binaries; create friendly symlinks if found.) postgresql postgresql-client
RUN set -eux; \
MUSEUM_PATH="$(command -v museum || true)"; \ # Put museum / web on a predictable path for your run-scripts
if [[ -n "$MUSEUM_PATH" ]]; then ln -sf "$MUSEUM_PATH" /usr/bin/museum; fi; \ RUN ln -sf $(command -v museum) /usr/bin/museum && \
WEB_PATH="$(command -v ente-web || true)"; \ ln -sf $(command -v ente-web) /usr/bin/ente-web
if [[ -n "$WEB_PATH" ]]; then ln -sf "$WEB_PATH" /usr/bin/ente-web; fi
################## ##################
# 7 Install apps # # 3 Install apps #
################## ##################
# Optional modules (same pattern as your other addons)
COPY rootfs/ /
# bindcompat for some addons
#RUN ln -sf /usr/bin/bash /bin/bash || true && \
# ln -sf /usr/bin/sh /bin/sh || true
# Optional modules (same pattern as ente)
ARG MODULES="00-banner.sh 01-custom_script.sh 00-global_var.sh 00-local_mounts.sh 00-smb_mounts.sh" ARG MODULES="00-banner.sh 01-custom_script.sh 00-global_var.sh 00-local_mounts.sh 00-smb_mounts.sh"
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automodules.sh" "/ha_automodules.sh" 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 RUN chmod 744 /ha_automodules.sh && /ha_automodules.sh "$MODULES" && rm /ha_automodules.sh
# Optional extra packages via your helper # Optional extra packages
ENV PACKAGES="sudo jq yamllint" ENV PACKAGES="sudo jq yamllint"
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_autoapps.sh" "/ha_autoapps.sh" 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 RUN chmod 744 /ha_autoapps.sh && /ha_autoapps.sh "$PACKAGES" && rm /ha_autoapps.sh
################ ################
# 8 Entrypoint # # 4 Entrypoint #
################ ################
ENV S6_STAGE2_HOOK=/ha_entrypoint.sh ENV S6_STAGE2_HOOK=/ha_entrypoint.sh
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh" ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh"
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint_modif.sh" "/ha_entrypoint_modif.sh" 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 && \ RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && \
/ha_entrypoint_modif.sh && rm /ha_entrypoint_modif.sh /ha_entrypoint_modif.sh && rm /ha_entrypoint_modif.sh
############################ ENTRYPOINT [ "/usr/bin/env" ]
# 9 Copy addon rootfs tree # CMD [ "/ha_entrypoint.sh" ]
############################
# (includes bashioaware continit.d and services.d scripts we prepared)
COPY rootfs/ /
########################################## # ---------- Healthcheck ----------
# 10 Healthcheck (museum exposes /ping) # #ENV HEALTH_PORT="8080" \
########################################## # HEALTH_URL="/ping"
ENV HEALTH_PORT="8080" \ #HEALTHCHECK --interval=10s --retries=5 --timeout=20s CMD \
HEALTH_URL="/ping" # curl -A "HealthCheck: Docker/1.0" -fs "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" || exit 1
HEALTHCHECK --interval=10s --retries=5 --timeout=20s CMD \
curl -A "HealthCheck: Docker/1.0" -fs "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" || exit 1
############ ############
# 11 Labels # # 5 Labels #
############ ############
ARG BUILD_ARCH BUILD_DATE BUILD_NAME BUILD_DESCRIPTION BUILD_REF BUILD_REPOSITORY ARG BUILD_ARCH BUILD_DATE BUILD_NAME BUILD_DESCRIPTION BUILD_REF BUILD_REPOSITORY
LABEL \ LABEL \
@@ -137,13 +113,7 @@ LABEL \
org.opencontainers.image.version=${BUILD_VERSION} org.opencontainers.image.version=${BUILD_VERSION}
################# #################
# 12 Finish line# # 6 Finish line #
################# #################
# S6 supervises: # S6 will pick up run scripts from /etc/services.d supplied in rootfs
# 00-postgres (skipped if external DB) # and launch: minio museum API (optional) webUI
# 01-minio
# 02-minio-init (one-shot)
# 03-museum
# 04-web (optional)
#
# No explicit ENTRYPOINT/CMD override: use base + S6 overlay.

View File

@@ -1,7 +1,7 @@
{ {
"name": "Ente", "name": "Ente",
"slug": "ente", "slug": "ente",
"version": "1.0.0test4", "version": "1.0.0test3",
"description": "Self-hosted, end-to-end-encrypted photo & video storage (Ente server + MinIO).", "description": "Self-hosted, end-to-end-encrypted photo & video storage (Ente server + MinIO).",
"url": "https://github.com/alexbelgium/hassio-addons", "url": "https://github.com/alexbelgium/hassio-addons",
"arch": ["aarch64", "amd64"], "arch": ["aarch64", "amd64"],