Added domoticz ct
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
String[] ImgVariantList = ['minimal', 'default', 'jenkinsbuilder', 'imgbuilder', 'jenkins', 'mysql' , 'pihole' , 'collabora' , 'jellyfin' ]
|
||||
String[] ImgVariantList = ['minimal', 'default', 'jenkinsbuilder', 'imgbuilder', 'jenkins', 'mysql' , 'pihole' , 'collabora' , 'jellyfin', 'domoticz' ]
|
||||
|
||||
pipeline {
|
||||
agent { label 'LXCBuilder' }
|
||||
|
||||
@@ -901,6 +901,13 @@ files:
|
||||
variants:
|
||||
- pihole
|
||||
|
||||
#FileForDomoticz
|
||||
- path: /opt/Setup
|
||||
generator: copy
|
||||
source: CT-Files/domoticz
|
||||
variants:
|
||||
- domoticz
|
||||
|
||||
packages:
|
||||
manager: apt
|
||||
update: true
|
||||
@@ -1052,6 +1059,20 @@ packages:
|
||||
variants:
|
||||
- jellyfin
|
||||
|
||||
#domoticz pkgs
|
||||
- packages:
|
||||
- git
|
||||
- curl
|
||||
- python3-dev
|
||||
- cron
|
||||
- libudev-dev
|
||||
- libsqlite3-0
|
||||
- libcurl4
|
||||
- libusb-0.1
|
||||
action: install
|
||||
variants:
|
||||
- domoticz
|
||||
|
||||
repositories:
|
||||
- name: sources.list
|
||||
url: |-
|
||||
@@ -1126,6 +1147,7 @@ actions:
|
||||
variants:
|
||||
- mysql
|
||||
- pihole
|
||||
- domoticz
|
||||
|
||||
- trigger: post-packages
|
||||
action: |-
|
||||
|
||||
13
CT-Files/domoticz/Configs/domoticz.service
Normal file
13
CT-Files/domoticz/Configs/domoticz.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Domoticz Home Automation
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/domoticz/domoticz -www 8080 -sslwww 0 -syslog
|
||||
Username=domoticz
|
||||
Group=domoticz
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
5
CT-Files/domoticz/Configs/setupVars.conf
Normal file
5
CT-Files/domoticz/Configs/setupVars.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
Dest_folder=/opt/domoticz
|
||||
Enable_http=true
|
||||
HTTP_port=8080
|
||||
Enable_https=false
|
||||
HTTPS_port=443
|
||||
24
CT-Files/domoticz/Scripts/Init.sh
Normal file
24
CT-Files/domoticz/Scripts/Init.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
#Adding service user
|
||||
adduser --system --shell /bin/bash --group --disabled-password --home /home/domoticz domoticz
|
||||
#Crating folders
|
||||
mkdir /opt/domoticz /etc/domoticz
|
||||
|
||||
#Extracting aplication
|
||||
tar -C /opt/domoticz -xf /opt/Setup/domoticz.tgz
|
||||
rm -rf /opt/Setup/domoticz.tgz
|
||||
|
||||
#Installing custom theme
|
||||
git clone https://git.bprieshof.nl/DarkTheme/dark-th3me-BrammpCustom.git /opt/domoticz/www/styles/dark-th3me-BrammpCustom
|
||||
|
||||
#Moving config in place
|
||||
mv /opt/Setup/Configs/setupVars.conf /etc/domoticz/setupVars.conf
|
||||
|
||||
#Install service file and enable on boot
|
||||
mv /opt/Setup/Configs/domoticz.service /etc/systemd/system/domoticz.service
|
||||
chmod +x /etc/systemd/system/domoticz.service
|
||||
ln -s /etc/systemd/system/domoticz.service /etc/systemd/system/multi-user.target.wants/domoticz.service
|
||||
|
||||
#Set permissions
|
||||
chown -R domoticz:domoticz /opt/domoticz
|
||||
chown -R domoticz:domoticz /etc/domoticz
|
||||
BIN
CT-Files/domoticz/domoticz.tgz
Normal file
BIN
CT-Files/domoticz/domoticz.tgz
Normal file
Binary file not shown.
@@ -25,12 +25,14 @@ This can be done on a Minimal debian CT (make sure to enable nesting) on the new
|
||||
| pihole | Debian | Pihole CT |
|
||||
| colabora | Debian | ColaboraOffice WebService (CODE version) |
|
||||
| jellyfin | Debian | Jellyfin in-home streaming server |
|
||||
| domoticz | Debian | Domoticz home automation service |
|
||||
| gitea | Alpine | Gitea server |
|
||||
| nginx | Alpine | Nginx server for reverse-proxy use |
|
||||
| ddns | Alpine | DDNS client configured for OVH/OVH-Cloud |
|
||||
|
||||
## TODO
|
||||
Domoticz
|
||||
**Begin original list**
|
||||
|
||||
Hass+Mqtt
|
||||
Z2mqtt+zw2mqtt
|
||||
SMB
|
||||
@@ -51,7 +53,7 @@ Docker
|
||||
MailBackup*
|
||||
FileShelter/transfer.sh
|
||||
WS(x2go-xfce)
|
||||
|
||||
**End original list**
|
||||
|
||||
|
||||
# Container Setup
|
||||
@@ -88,3 +90,5 @@ Then select the created credential and click save
|
||||
* Update the configuration in /etc/loolwsd/loolwsd.xml and reload the service `systemctl restart loolwsd`
|
||||
# jellyfin
|
||||
* To set-up the system follow the inital set-up wizard on http://<ip>:8096
|
||||
# domoticz
|
||||
* Avalible on http://<ip>:8080
|
||||
@@ -14,3 +14,4 @@ GetResource () {
|
||||
GetResource mysql phpmyadmin.tar.gz https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-english.tar.gz
|
||||
GetResource nginx nginx_signing.rsa.pub https://nginx.org/keys/nginx_signing.rsa.pub
|
||||
GetResource nginx acmesh.tar.gz https://codeload.github.com/acmesh-official/acme.sh/tar.gz/master
|
||||
GetResource domoticz domoticz.tgz https://releases.domoticz.com/releases/release/domoticz_linux_x86_64.tgz
|
||||
Reference in New Issue
Block a user