I can’t figure out what I’m doing wrong with making a custom addon. When starting my addon, appdaemon is spitting out this error:
FATAL: unable to locate configuration directory
My setup below.
--------------------
# cat /addons/appdaemon/Dockerfile
ARG BUILD_FROM=ghcr.io/hassio-addons/base:15.0.9
# hadolint ignore=DL3006
FROM ${BUILD_FROM}
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apk add g++ gcc make git
RUN apk add python3-dev python3 py3-pip py3-multidict py3-bcrypt py3-bcrypt py3-cryptography py3-yarl py3-oauthlib py3-aiohttp py3-tzdata
RUN git clone https://github.com/AppDaemon/appdaemon.git appdaemon.git
RUN pip3 install --break-system-packages appdaemon.git/
CMD [ "appdaemon", "-c", "/config", "-D", "DEBUG"]
--------------------
# cat /addons/appdaemon/config.yaml
name: "AppDaemon-BB"
description: "My first real add-on!"
version: dev
slug: appdaemon
init: false
arch:
- amd64
ports:
5050/tcp: 5050
ports_description:
5050/tcp: AppDaemon
map:
- addon_config:rw
- homeassistant_config:rw
- media:rw
- share:rw
- ssl
--------------------
# ls -l /addon_configs/local_appdaemon
total 24
-rw-r--r-- 1 root root 202 Oct 25 21:05 appdaemon.yaml
drwxr-xr-x 2 root root 4096 Oct 25 21:05 apps
drwxr-xr-x 4 root root 4096 Oct 25 21:05 compiled
drwxr-xr-x 2 root root 4096 Oct 25 21:05 dashboards
drwxr-xr-x 2 root root 4096 Oct 25 21:05 namespaces
drwxr-xr-x 2 root root 4096 Oct 25 21:05 www