update
This commit is contained in:
		@@ -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"]
 | 
			
		||||
@@ -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
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
							
								
								
									
										22
									
								
								dolideb/config.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								dolideb/config.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -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]
 | 
			
		||||
@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user