#Is there some video explaining how to
1 messages · Page 1 of 1 (latest)
I donot know, I spent a sh.t load of time trying to understand how addons have to be created. Noting that I have a docker-based-basis and from that one I created the addon. You donot need to convert for what I have seen but I found it a real challenge to setup a tiny python environment that would also serve for chromium ...and still not at the end of that....but I got it working.
If possible, I would use one of the base containers offered by HA, there are a few options there, so have a look.
Then, on the config.yaml, I noticed by excluding env's (e.g. i386 or aarch) it would not load anymore in HAOS, still have not find out why, there is no error whatsoever.
As you see above, I am not (by far) the specialist but just sharing my personal findings...and as I donot know what I should know ... I may miss things too 🙂
Hi,
Following your advice, I tried to emulate Frenk's approach from the nginx-proxy-manager addon and ran Authelia from a binary downloaded directly from the official GitHub.
Everything installs smoothly, but when I hit the "Start" button in the Home Assistant frontend, I encounter this error:
2024-05-11 19:08:14.600 ERROR (MainThread) [supervisor.host.logs] No systemd-journal-gatewayd Unix socket available
It seems the addon doesn’t start at all. Here's what I've done so far:
- Used the base image hassio-addons/base-nodejs:0.2.1
- Downloaded the Authelia binary
- Copied the configuration files
- Attempted to run the binary
Could you help me figure out what might be going wrong? I will post my files above here
Thanks for all your help!
File: Dockerfile
ARG BUILD_FROM=ghcr.io/hassio-addons/base-nodejs:0.2.1
FROM ${BUILD_FROM}
# Setup base
ARG AUTHELIA_VERSION="v4.38.8"
# Atualizar o Ãndice do pacote e instalar pacotes necessários
RUN apk update && \
apk add --no-cache \
ca-certificates \
su-exec \
tzdata
# Set environment variables
ENV PATH="/app:${PATH}" \
PUID=0 \
PGID=0 \
X_AUTHELIA_CONFIG="/config/configuration.yml"
# Download Authelia
RUN curl -J -L -o /tmp/authelia.tar.gz \
"https://github.com/authelia/authelia/releases/download/${AUTHELIA_VERSION}/authelia-${AUTHELIA_VERSION}-linux-arm.tar.gz" && \
mkdir -p /app && \
tar zxvf /tmp/authelia.tar.gz -C /app && \
chmod +x /app/authelia-linux-arm && \
rm -rf /tmp/*
# Copy configuration files from local to the container
COPY addon_configs/configuration.yml /config/configuration.yml
COPY addon_configs/user_database.yml /config/user_database.yml
# Expose port
EXPOSE 9091
# Run Authelia
CMD ["/app/authelia-linux-arm --config /config/configuration.yml"]
File: build.yaml
---
build_from:
aarch64: ghcr.io/hassio-addons/base-nodejs:0.2.1
amd64: ghcr.io/hassio-addons/base-nodejs:0.2.1
armv7: ghcr.io/hassio-addons/base-nodejs:0.2.1
codenotary:
base_image: codenotary@frenck.dev
signer: codenotary@frenck.dev
File: config.yaml
---
name: Authelia
version: dev
slug: authelia
description: "Secure single sign-on for your Home Assistant"
url: https://github.com/authelia/authelia
webui: http://[HOST]:[PORT:9091]
init: false
arch:
- aarch64
- amd64
- armv7
hassio_api: true
ports:
9091/tcp: 9091
map:
- addon_config:rw
backup_exclude:
- "*/logs"
Is it installed as par tof the base build? Else you need to add some installs in the dockerfile
The way I worked was to first get a container running and then manually add things until it worked....then copied the lot to the Dockerfile
i.e. mine missed jq, chromium and some python stuff which I assumed to be in the base-container...not
also... chromium did not install well on ubuntu and (for me) the only way in dicovering that (and why) is installing it manually first