commit 8a0083d911eb407a4f2761a5ba0af89e04f6547f Author: ai-dev Date: Mon Aug 19 12:12:56 2024 +0200 Add addons dolideb diff --git a/dolideb/Dockerfile b/dolideb/Dockerfile new file mode 100644 index 0000000..3e86a84 --- /dev/null +++ b/dolideb/Dockerfile @@ -0,0 +1,16 @@ +ARG BUILD_FROM +FROM $BUILD_FROM + +ENV LANG C.UTF-8 + +# Install DoliDeb +RUN apt-get update && \ + apt-get install -y dolibarr && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +# Copy the run script +COPY run.sh /run.sh +RUN chmod a+x /run.sh + +CMD [ "/run.sh" ] diff --git a/dolideb/config.json b/dolideb/config.json new file mode 100644 index 0000000..c18a4c3 --- /dev/null +++ b/dolideb/config.json @@ -0,0 +1,27 @@ +{ + "name": "DoliDeb", + "version": "1.0", + "slug": "dolideb", + "description": "A Home Assistant add-on for DoliDeb", + "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], + "startup": "services", + "boot": "auto", + "ports": { + "9100/tcp": 9100 + }, + "map": ["config", "ssl", "addons", "backup", "share"], + "options": { + "port": 9100, + "debug": false, + "admin_user": "admin", + "admin_password": "password" + }, + "schema": { + "port": "int(80, 10000)", + "debug": "bool", + "admin_user": "str", + "admin_password": "str" + }, + "image": "ghcr.io/homeassistant/{arch}-base" + } + \ No newline at end of file diff --git a/dolideb/run.sh b/dolideb/run.sh new file mode 100644 index 0000000..5648ad0 --- /dev/null +++ b/dolideb/run.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -e + +# Start DoliDeb +service apache2 start + +# Keep the container running +tail -f /dev/null