diff --git a/dolideb/Dockerfile b/dolideb/Dockerfile deleted file mode 100644 index 67519a2..0000000 --- a/dolideb/Dockerfile +++ /dev/null @@ -1,27 +0,0 @@ -ARG BUILD_FROM -FROM $BUILD_FROM - -ENV LANG C.UTF-8 - -# Install DoliDeb -RUN apk add --no-cache apache2 php php-mysqli php-curl php-json php-session php-xml php-mbstring php-gd php-intl php-zip curl bash \ -&& curl -L -o dolibarr.tar.gz https://sourceforge.net/projects/dolibarr/files/latest/download && \ -if [ -f "dolibarr.tar.gz" ]; then \ - tar xzf dolibarr.tar.gz -C /var/www/localhost/htdocs/; \ - rm dolibarr.tar.gz; \ -else \ - echo "Download failed or file does not exist."; \ - exit 1; \ -fi - -# 4. Copy s6-overlay configuration files (rootfs structure) -COPY rootfs/ / - -# 5. Set permissions and prepare s6-overlay -RUN chmod +x /etc/services.d/dolideb/run - -# 6. Expose HTTP port -EXPOSE 80 - -# 7. Start the s6-overlay init system -ENTRYPOINT ["/init"] \ No newline at end of file diff --git a/dolideb/config.json b/dolideb/config.json deleted file mode 100644 index 3c0e8c9..0000000 --- a/dolideb/config.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "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": { - "80/tcp": 9100 - }, - "map": ["config", "ssl", "addons", "backup", "share"], - "options": { - "external_port": 9100, - "debug": false - }, - "schema": { - "external_port": "port", - "debug": "bool" - }, - "full_access": true - } - \ No newline at end of file diff --git a/dolideb/config.yaml b/dolideb/config.yaml new file mode 100644 index 0000000..3dbacc0 --- /dev/null +++ b/dolideb/config.yaml @@ -0,0 +1,22 @@ +name: "Dolibar" +description: "Get up and running Dolideb" +version: "0.0.1" +slug: "Dolibar" +arch: + - aarch64 + - amd64 +url: https://dolibar.fr +map: + - config:rw + - backup:rw +image: tuxgasy/dolibarr:latest +init: false +ingress: true +ingress_port: 9200 +ingress_stream: true +ports: + 11434/tcp: 9200 +ports_description: + 11434/tcp: "Dolideb" +startup: application +watchdog: tcp://[HOST]:[PORT:9200] \ No newline at end of file diff --git a/dolideb/run.sh b/dolideb/run.sh deleted file mode 100644 index d1a3e78..0000000 --- a/dolideb/run.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash -set -e - -# Retrieve the configured external port from the options -external_port=$(bashio::config 'external_port') - -# Configure port mapping dynamically -echo "Mapping internal port 80 to external port ${external_port}" - -# Ensure that apache2 is installed and start it using OpenRC -httpd -D FOREGROUND - -# Keep the container running -tail -f /dev/null