GitHub bot: fix linting issues (nobuild)

This commit is contained in:
github-actions
2025-07-16 06:29:37 +00:00
parent c3c32bacbb
commit 37656c7e8d
8 changed files with 68 additions and 62 deletions

View File

@@ -1,29 +1,9 @@
{ {
"name": "Ente", "arch": [
"slug": "ente", "aarch64",
"version": "1.0.0test3", "amd64"
"description": "Self-hosted, end-to-end-encrypted photo & video storage (Ente server + MinIO).",
"url": "https://github.com/alexbelgium/hassio-addons",
"arch": ["aarch64", "amd64"],
"image": "ghcr.io/alexbelgium/ente-{arch}",
"startup": "services",
"init": false,
"ports": {
"8080/tcp": 8280,
"3000/tcp": 8300,
"3200/tcp": 8320
},
"ports_description": {
"8080/tcp": "Ente API (museum)",
"3000/tcp": "Ente web UI",
"3200/tcp": "MinIO S3 endpoint"
},
"map": [
"addon_config:rw",
"media:rw",
"share:rw",
"ssl:rw"
], ],
"description": "Self-hosted, end-to-end-encrypted photo & video storage (Ente server + MinIO).",
"devices": [ "devices": [
"/dev/dri", "/dev/dri",
"/dev/dri/renderD128", "/dev/dri/renderD128",
@@ -33,45 +13,71 @@
"/dev/video12" "/dev/video12"
], ],
"environment": { "environment": {
"ENTE_API_ORIGIN": "http://[HOST]:[PORT:8080]",
"MINIO_ROOT_PASSWORD": "minioadmin",
"MINIO_ROOT_USER": "minioadmin",
"PGID": "0", "PGID": "0",
"PUID": "0", "PUID": "0",
"ENTE_API_ORIGIN": "http://[HOST]:[PORT:8080]",
"MINIO_ROOT_USER": "minioadmin",
"MINIO_ROOT_PASSWORD": "minioadmin",
"S3_BUCKET": "ente-media", "S3_BUCKET": "ente-media",
"S3_ENDPOINT": "http://localhost:3200", "S3_ENDPOINT": "http://localhost:3200",
"TZ": "Europe/Paris" "TZ": "Europe/Paris"
}, },
"hassio_api": true,
"image": "ghcr.io/alexbelgium/ente-{arch}",
"init": false,
"map": [
"addon_config:rw",
"media:rw",
"share:rw",
"ssl:rw"
],
"name": "Ente",
"options": { "options": {
"USE_EXTERNAL_DB": false, "DB_DATABASE_NAME": "ente_db",
"DB_HOSTNAME": "homeassistant.local", "DB_HOSTNAME": "homeassistant.local",
"DB_PASSWORD": "ente",
"DB_PORT": 5432, "DB_PORT": 5432,
"DB_USERNAME": "pguser", "DB_USERNAME": "pguser",
"DB_PASSWORD": "ente",
"DB_DATABASE_NAME": "ente_db",
"MINIO_ROOT_USER": "minioadmin",
"MINIO_ROOT_PASSWORD": "minioadmin",
"S3_BUCKET": "ente-media",
"DISABLE_WEB_UI": false, "DISABLE_WEB_UI": false,
"TZ": "Europe/Paris" "MINIO_ROOT_PASSWORD": "minioadmin",
}, "MINIO_ROOT_USER": "minioadmin",
"schema": { "S3_BUCKET": "ente-media",
"USE_EXTERNAL_DB": "bool?", "TZ": "Europe/Paris",
"DB_HOSTNAME": "str?", "USE_EXTERNAL_DB": false
"DB_PORT": "int?",
"DB_USERNAME": "str?",
"DB_PASSWORD": "str?",
"DB_DATABASE_NAME": "str?",
"MINIO_ROOT_USER": "str",
"MINIO_ROOT_PASSWORD": "str",
"S3_BUCKET": "str",
"DISABLE_WEB_UI": "bool?",
"TZ": "str?"
}, },
"panel_icon": "mdi:image-multiple", "panel_icon": "mdi:image-multiple",
"webui": "http://[HOST]:[PORT:3000]", "ports": {
"privileged": ["SYS_ADMIN", "DAC_READ_SEARCH"], "3000/tcp": 8300,
"hassio_api": true, "3200/tcp": 8320,
"8080/tcp": 8280
},
"ports_description": {
"3000/tcp": "Ente web UI",
"3200/tcp": "MinIO S3 endpoint",
"8080/tcp": "Ente API (museum)"
},
"privileged": [
"SYS_ADMIN",
"DAC_READ_SEARCH"
],
"schema": {
"DB_DATABASE_NAME": "str?",
"DB_HOSTNAME": "str?",
"DB_PASSWORD": "str?",
"DB_PORT": "int?",
"DB_USERNAME": "str?",
"DISABLE_WEB_UI": "bool?",
"MINIO_ROOT_PASSWORD": "str",
"MINIO_ROOT_USER": "str",
"S3_BUCKET": "str",
"TZ": "str?",
"USE_EXTERNAL_DB": "bool?"
},
"slug": "ente",
"startup": "services",
"udev": true, "udev": true,
"video": true "url": "https://github.com/alexbelgium/hassio-addons",
"version": "1.0.0test3",
"video": true,
"webui": "http://[HOST]:[PORT:3000]"
} }

View File

@@ -5,8 +5,8 @@ set -euo pipefail
CFG=/config/museum.yaml CFG=/config/museum.yaml
if bashio::fs.file_exists "$CFG"; then if bashio::fs.file_exists "$CFG"; then
bashio::log.info "Using existing $CFG" bashio::log.info "Using existing $CFG"
exit 0 exit 0
fi fi
bashio::log.info "Generating $CFG" bashio::log.info "Generating $CFG"
@@ -21,12 +21,12 @@ DB_PASS="$(bashio::config 'DB_PASSWORD')"
DB_NAME="$(bashio::config 'DB_DATABASE_NAME')" DB_NAME="$(bashio::config 'DB_DATABASE_NAME')"
if ${USE_EXTERNAL_DB}; then if ${USE_EXTERNAL_DB}; then
# override host/port for external DB (fall back if missing) # override host/port for external DB (fall back if missing)
DB_HOST="$(bashio::config 'DB_HOSTNAME')" DB_HOST="$(bashio::config 'DB_HOSTNAME')"
DB_PORT="$(bashio::config 'DB_PORT')" DB_PORT="$(bashio::config 'DB_PORT')"
bashio::log.info "museum.yaml will point to external Postgres at ${DB_HOST}:${DB_PORT}" bashio::log.info "museum.yaml will point to external Postgres at ${DB_HOST}:${DB_PORT}"
else else
bashio::log.info "museum.yaml will use internal Postgres." bashio::log.info "museum.yaml will use internal Postgres."
fi fi
MINIO_USER="$(bashio::config 'MINIO_ROOT_USER')" MINIO_USER="$(bashio::config 'MINIO_ROOT_USER')"

View File

@@ -2,8 +2,8 @@
set -euo pipefail set -euo pipefail
if bashio::config.true 'USE_EXTERNAL_DB'; then if bashio::config.true 'USE_EXTERNAL_DB'; then
bashio::log.info "External DB in use; skipping internal Postgres bootstrap." bashio::log.info "External DB in use; skipping internal Postgres bootstrap."
exit 0 exit 0
fi fi
bashio::log.info "Bootstrapping internal Postgres cluster…" bashio::log.info "Bootstrapping internal Postgres cluster…"
@@ -14,8 +14,8 @@ DB_NAME="$(bashio::config 'DB_DATABASE_NAME')"
# Wait for postgres service (localhost) # Wait for postgres service (localhost)
until pg_isready -q -h localhost -p 5432 -U postgres; do until pg_isready -q -h localhost -p 5432 -U postgres; do
bashio::log.info "Waiting for Postgres to accept connections…" bashio::log.info "Waiting for Postgres to accept connections…"
sleep 1 sleep 1
done done
bashio::log.info "Creating role + database if needed…" bashio::log.info "Creating role + database if needed…"

0
ente/rootfs/etc/services.d/00-postgres/run Normal file → Executable file
View File

0
ente/rootfs/etc/services.d/01-minio/run Normal file → Executable file
View File

0
ente/rootfs/etc/services.d/02-minio-init/run Normal file → Executable file
View File

0
ente/rootfs/etc/services.d/03-museum/run Normal file → Executable file
View File

0
ente/rootfs/etc/services.d/04-web/run Normal file → Executable file
View File