Add addons dolideb
This commit is contained in:
commit
8a0083d911
16
dolideb/Dockerfile
Normal file
16
dolideb/Dockerfile
Normal file
@ -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" ]
|
27
dolideb/config.json
Normal file
27
dolideb/config.json
Normal file
@ -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"
|
||||
}
|
||||
|
8
dolideb/run.sh
Normal file
8
dolideb/run.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# Start DoliDeb
|
||||
service apache2 start
|
||||
|
||||
# Keep the container running
|
||||
tail -f /dev/null
|
Loading…
x
Reference in New Issue
Block a user