WordPress-Datenbank-Fehler: [Table 'db10582923-4311.4311eazydocs_view_log' doesn't exist]
SHOW FULL COLUMNS FROM `4311eazydocs_view_log`

Docker | Xsolution X-Server

http://xsolution.de/Software/Xhome_Evolution_24/docker_files.zip

Dockerfile

FROM debian:11.4-slim

ARG BUILD_DATE
ARG JAVA_VERSION
ARG XHOME_EVO_VERSION





ENV \
    XHOME_HOME="/usr/share/Xhome_Evolution" \
    XHOME_PORT="8090" 

# Basic build-time metadata as defined at http://label-schema.org
LABEL org.label-schema.build-date=$BUILD_DATE \
    org.label-schema.docker.dockerfile="/Dockerfile" \
    org.label-schema.license="EPL-2.0" \
    org.label-schema.name="Xhome Evolution Server" \
    org.label-schema.vendor="Xsolution GmbH" \
    org.label-schema.version=$XHOME_EVO_VERSION \
    org.label-schema.description="Xsolution Xhome Evolution Smarthome Server" \
    org.label-schema.url="https://www.xsolution.de/" \
    maintainer="Xsolution GmbH <info@xsolution.de>"

# Install basepackages
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
        arping \
        ca-certificates \
        curl \
        fontconfig \
        gosu \
        iputils-ping \
        libcap2-bin \
        locales \
        locales-all \
        netbase \
        procps \
        tini \
        unzip \
        wget \
        nano \
        sudo \
        zip && \
    c_rehash && \
    chmod u+s /usr/sbin/arping && \
    ln -s -f /bin/true /usr/bin/chfn && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

# Install java
# Limit JDK crypto policy by default to comply with local laws which may prohibit use of unlimited strength cryptography
RUN wget -nv -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /usr/share/keyrings/adoptium.asc && \
    echo "deb [signed-by=/usr/share/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list && \
    apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y temurin-${JAVA_VERSION}-jdk && \
    JAVA_HOME=$(ls -d /usr/lib/jvm/*jdk*) && \
    sed -i 's/^crypto.policy=unlimited/crypto.policy=limited/' "${JAVA_HOME}/conf/security/java.security" && \
    rm "${JAVA_HOME}/src.zip" && \
    rm "${JAVA_HOME}/lib/src.zip" && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*
    
    
# Install Xhome-Server
RUN wget http://xsolution.de/Software/Xhome_Evolution_24/Xhome_Evolution_${XHOME_EVO_VERSION}.zip && \
	unzip Xhome_Evolution_${XHOME_EVO_VERSION}.zip && \
	mkdir /usr/share/Xhome_Evolution && \
	cp -r Xhome_Evolution_24/* /usr/share/Xhome_Evolution/ && \
	cp Xhome_Evolution_24/linux_dienst/xhome /etc/init.d/ && \
	rm -rf Xhome_Evolution_24/ && \
	rm Xhome_Evolution_${XHOME_EVO_VERSION}.zip && \
	rm -rf __MACOSX/ 
	


VOLUME ["/root/Xsolution"]

# Expose HTTP Ports
EXPOSE 8090

COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

entrypoint.sh

#!/bin/sh
set -e

echo 'Start Xhome Server from Entrypoint'


DIR=$(cd "/usr/share/Xhome_Evolution/"; pwd)
applDir="$DIR"                                                   
javaCommand="java -Xmx1024M -Xms512M -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djava.net.preferIPv4Stack=true"
cd /usr/share/Xhome_Evolution/

root_application=`ls $DIR/root_application*.jar`
for search_jar in $root_application
do
   echo "$search_jar"
done


javaArgs="-jar $search_jar"                                     
javaCommandLine="$javaCommand $javaArgs"
cd $applDir || return 1
$javaCommandLine


exec $@

Makefile

BUILD   ?= $(shell date +%Y%m%d%H%M)
TAG     ?= $(shell git describe --abbrev=0)
VERSION := $(TAG)-$(BUILD)
IMAGE   := xsolution/xhome_evo

build:
	docker build --build-arg JAVA_VERSION=17 --build-arg XHOME_EVO_VERSION=24.06.14 --tag $(IMAGE) .

push:
	docker push $(IMAGE)

run:
	docker-compose up -d

stop:
	docker-compose down

login:
	docker exec -it $(IMAGE) /bin/bash

logs:
	docker-compose logs --follow

docker-compose.yml

version: "3.3"

services:
  xhome_evo_24:
    container_name: Xhome
    image: xsolution/xhome_evo
    restart: always
    privileged: true
    stdin_open: true # docker run -i
    tty: true        # docker run -t
    ports:
      - 8090:8090
    networks:
     vpcbr:
        ipv4_address: 192.168.5.25
        
    volumes:
     - /Users/xy/Xsolution/config:/root/Xsolution:rw


     
networks:
  vpcbr:
    driver: bridge
    ipam:
     config:
       - subnet: 192.168.5.0/24
         gateway: 192.168.5.1
Dieses Dokument teilen

Docker

Oder Link kopieren

INHALT
Cookie Consent mit Real Cookie Banner