This is a docker implementation for Edomi, a PHP-based smarthome framework. For more information please refer to:
Official website Support forum
This instruction works for a Centos7 docker host. Other distributions need some adjustments.
sudo tee /etc/yum.repos.d/docker.repo <<-'EOF'
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOFsudo yum install docker-engine -ysudo systemctl enable docker.servicesudo systemctl start docker.serviceYou now have two options: build from scratch or pull the ready-made image from Docker hub. The Image (and the Dockerfile) contains all packages needed by edomi. I've added openssh-server and additionally i've set the root password to '123456'.
sudo docker pull pfischi/edomisudo git clone https://github.com/pfischi/edomi-docker.git
cd edomi-dockersudo docker pull centos:6.8
sudo docker build -t pfischi/edomi:latest .sudo docker run --name edomi -p 42900:80 -p 42901:443 -p 22222:22 -p 50000:50000/udp -p 50001:50001/udp -e KNXGATEWAY=192.168.178.4 -e KNXACTIVE=true -e HOSTIP=192.168.178.3 -d pfischi/edomi:latestWith this configuration the edomi web instance is reachable via http://:42900/admin and or https://:42901/admin, the ssh server with ssh -p 22222 . With The (optional) parameters KNXGATEWAY, KNXACTIVE and HOSTIP you can pre-configure some settings for Edomi. Leave it empty to do this via the Edomi admin webpage. Keep in mind to set "global_serverIP" in Edomi (or via docker run script 'HOSTIP') to your Docker host IP otherwise the KNX communication probably will not work. Change http and/or https port to your needs.
sudo cp docker-edomi.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl start docker-edomi.service
sudo systemctl enable docker-edomi.servicecheck running / stopped container
sudo docker ps -astop the container
sudo docker stop edomistart the container
sudo docker start edomiget logs from container
sudo docker logs -f edomi