mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-23 09:11:50 +02:00
aurral: simplify startup — call node directly from run script, drop passthrough entrypoint
This commit is contained in:
@@ -1,8 +1,23 @@
|
||||
# Changelog
|
||||
|
||||
## 1.76.17
|
||||
## 1.76.17-2
|
||||
|
||||
- Initial Home Assistant add-on release
|
||||
- Wraps upstream `ghcr.io/lklynet/aurral:1.76.17`
|
||||
- Exposes `download_folder` as a configurable path in the add-on UI
|
||||
- Supports amd64 and aarch64
|
||||
- Fix regression: call `node` directly from s6 run script instead of going
|
||||
through the upstream `docker-entrypoint.sh` wrapper, which was running
|
||||
a `chown -R` on `/app/backend/data` before our symlink was in place and
|
||||
could fail on HA-mounted paths
|
||||
- Remove redundant `ENTRYPOINT`/`CMD` from Dockerfile (s6 owns startup)
|
||||
- Remove passthrough `docker-entrypoint.sh` override (no longer needed)
|
||||
- Pre-create `weekly-flow` subdirectory in run script
|
||||
|
||||
## 1.76.17-1
|
||||
|
||||
- Pin to upstream 1.76.17
|
||||
- Fix AppArmor profile: add `/config/aurral/** rwk` for addon_config writes
|
||||
- Remove ingress / sidebar button (upstream CSP blocks iframe embedding)
|
||||
|
||||
## 1.76.12-1
|
||||
|
||||
- Initial release wrapping upstream ghcr.io/lklynet/aurral
|
||||
- Persistent data via `addon_config` map (`/config/data`)
|
||||
- User-configurable `download_folder` (default `/share/aurral/downloads`)
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
# Home Assistant Add-on: Aurral
|
||||
# Wraps the upstream ghcr.io/lklynet/aurral image.
|
||||
# ==============================================================
|
||||
FROM ghcr.io/lklynet/aurral:1.76.17
|
||||
ARG BUILD_FROM
|
||||
FROM ${BUILD_FROM}
|
||||
|
||||
ARG BUILD_VERSION
|
||||
ARG BUILD_ARCH
|
||||
@@ -22,8 +23,4 @@ ENV AURRAL_DATA_DIR=/config/data \
|
||||
COPY rootfs /
|
||||
|
||||
RUN chmod a+x /etc/services.d/aurral/run \
|
||||
&& chmod a+x /usr/local/bin/docker-entrypoint.sh \
|
||||
&& mkdir -p /config/data
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
||||
CMD ["node", "server.js"]
|
||||
|
||||
@@ -7,12 +7,12 @@ DOWNLOAD_FOLDER=$(bashio::config 'download_folder')
|
||||
|
||||
# Ensure persistent directories exist
|
||||
mkdir -p "${DOWNLOAD_FOLDER}"
|
||||
mkdir -p "${DOWNLOAD_FOLDER}/weekly-flow"
|
||||
mkdir -p /config/data
|
||||
mkdir -p /config/data/image-proxy
|
||||
|
||||
# Pre-create /app/backend/data as a real directory so the upstream
|
||||
# docker-entrypoint.sh can chown it without error.
|
||||
mkdir -p /app/backend/data
|
||||
|
||||
# Redirect image-proxy into persistent storage
|
||||
ln -sfn /config/data/image-proxy /app/backend/data/image-proxy
|
||||
|
||||
bashio::log.info "Starting Aurral"
|
||||
@@ -25,4 +25,4 @@ export AURRAL_DATA_DIR="/config/data"
|
||||
export DOWNLOAD_FOLDER="${DOWNLOAD_FOLDER}"
|
||||
export WEEKLY_FLOW_FOLDER="${DOWNLOAD_FOLDER}/weekly-flow"
|
||||
|
||||
exec docker-entrypoint.sh node server.js
|
||||
exec node /app/server.js
|
||||
|
||||
Reference in New Issue
Block a user