Page 1 of 11
Oficial Docker Container
Posted: Saturday 06 February 2021 13:50
by DAVIZINHO
Hello,
I see that we have a oficial docker container! GREAT!!
https://hub.docker.com/r/domoticz/domoticz
Im a user of docker containers since 2 years ago (linuxserver and other).
I create this topic to talk about THE OFICIAL CONTAINER, only, not other. Making a place to coment an discuss about the problems, workarrounds, etc...
Now im trying to migrate my setup from linuxserver to this oficial, because the oficial have the betas and linuxserver not.
I have this issues or "problems":
- The time zone will be configured as volume. In synology i cant setup the volume "/etc/localtime" and the solution will be configure de timezone as a variable.
- I need some packages that i need to install in every startup of domoticz. Its posible to add a script that launch on init of docker
Re: Oficial Docker Container
Posted: Saturday 06 February 2021 16:02
by rron
It looks if you can't edit files inside init.d with nano because the command is unknown. But as if I said before docker is new to me. A lot to explore.
Re: Oficial Docker Container
Posted: Tuesday 09 February 2021 10:16
by tygerlord
Hello,
Where can we see the Dockerfile?
Regards
Re: Oficial Docker Container
Posted: Tuesday 09 February 2021 10:21
by waaren
tygerlord wrote: ↑Tuesday 09 February 2021 10:16
Where can we see the Dockerfile?
See
this wiki page where you can read that the official docker can be found
here
Re: Oficial Docker Container
Posted: Tuesday 09 February 2021 11:14
by tygerlord
rron wrote: ↑Saturday 06 February 2021 16:02
It looks if you can't edit files inside init.d with nano because the command is unknown. But as if I said before docker is new to me. A lot to explore.
You run bash inside docker domoticz? if so You can install nano, the way depends of distribution used (apt install nano, ...) but be careful all modification are not permanent after restarting docker image...
Re: Oficial Docker Container
Posted: Tuesday 09 February 2021 11:17
by tygerlord
waaren wrote: ↑Tuesday 09 February 2021 10:21
tygerlord wrote: ↑Tuesday 09 February 2021 10:16
Where can we see the Dockerfile?
See
this wiki page where you can read that the official docker can be found
here
Thanks, but it's docker image, I would like to have a see on Dockerfile source used to create this image
Re: Oficial Docker Container
Posted: Tuesday 09 February 2021 11:22
by tygerlord
DAVIZINHO wrote: ↑Saturday 06 February 2021 13:50
Hello,
I see that we have a oficial docker container! GREAT!!
https://hub.docker.com/r/domoticz/domoticz
Im a user of docker containers since 2 years ago (linuxserver and other).
I create this topic to talk about THE OFICIAL CONTAINER, only, not other. Making a place to coment an discuss about the problems, workarrounds, etc...
Now im trying to migrate my setup from linuxserver to this oficial, because the oficial have the betas and linuxserver not.
I have this issues or "problems":
- The time zone will be configured as volume. In synology i cant setup the volume "/etc/localtime" and the solution will be configure de timezone as a variable.
- I need some packages that i need to install in every startup of domoticz. Its posible to add a script that launch on init of docker
Make a Dockerfile based on the docker image of domoticz, so you can add your own entrypoint script
Re: Oficial Docker Container
Posted: Tuesday 09 February 2021 11:39
by waaren
tygerlord wrote: ↑Tuesday 09 February 2021 11:17
Thanks, but it's docker image, I would like to have a see on Dockerfile source used to create this image
This one ?
Re: Oficial Docker Container
Posted: Tuesday 09 February 2021 18:05
by waltervl
From the documentation point of view: What version do I get when I pull it, stable or beta?
When looking at
https://hub.docker.com/r/domoticz/domoticz is see "Docker containers with official Domoticz (beta) builds."
I suppose I will get a beta build. Or there is or will be the possibility to choose a beta or stable build?
Can I pull the stable version of Domoticz?
How frequent is the docker beta image updated? Together with the other builds of the beta's on the domoticz.com/download section?
Re: Oficial Docker Container
Posted: Tuesday 09 February 2021 23:50
by DAVIZINHO
the docker is very new. and the creator is working on it.
Now the problem with the timezone is solved. he solved it last weekend
now i suggest to add a folder that launch a .sh in the first boot of the container (the people of linuxserver do it in all they dockers and works great). This posibility allow us to ad a simple sh with all the librarys that you need (miio, nano, curl, gnotify, etc...)
This will be great! i hope they implement this.
now the docker have the beta version of domoticz, and last update was 3 days ago. i dont know if the upgrade as frecuently as the oficial betas.
In my configuration it works great!
Re: Oficial Docker Container
Posted: Saturday 13 February 2021 14:05
by rron
I don't know if I can ask a question here about the new docker or must I create a new topic? The question is how can I pull the machinon style into domoticz?
If I do it the normal way:
Then I get an error server certificate verification failed. CAfile: none CRLfile.
Is there a different way to do this?
Re: Oficial Docker Container
Posted: Sunday 14 February 2021 0:48
by Alcloud
Then I get an error server certificate verification failed. CAfile: none CRLfile.
Is there a different way to do this?
Just do:
git config --global http.sslverify false
Re: Oficial Docker Container
Posted: Sunday 14 February 2021 12:26
by rron
Thanks that worked!
Re: Oficial Docker Container
Posted: Sunday 14 February 2021 14:17
by Harrie
Sorry if this is the wrong place to ask this question.
But i try to install this official docker image in a container on my synology nas.
I can get Domoticz up and running and restore the database from my current Pi implementation. All devices are present.
The only thing i can not get to work (so far) is to run scripts on virtual switches.
I suspect it is because i am new to docker and i do not really understand how to 'map' under advanced settings in Synology.
I can not find any documentation about that.
So what do i enter in 'Bestand/Map' and 'Pad koppelen' in DSM? Do i have to enter something in 'Mileu' ??
My 'best' logging so far is: Error: SQLHelper: Error script not found '/opt/domoticz/userdata/scripts/hs/hsDomCopy.py'
The /opt/domoticz/userdata is unknown to me!.
Any help welcome.
Thanks in advance
Re: Oficial Docker Container
Posted: Sunday 14 February 2021 14:52
by waltervl
Harrie wrote: ↑Sunday 14 February 2021 14:17
The /opt/domoticz/userdata is unknown to me!.
It is in the manual:
https://hub.docker.com/r/domoticz/domoticz
did you use docker-compose?
Re: Oficial Docker Container
Posted: Sunday 14 February 2021 15:17
by Harrie
@waltervl
No i did not use composer. I used the docker ui on the synology box to create a container. So i have to use the fields presented.
I dir see it in the documentation you mentioned. But i can not deal with it.
Re: Oficial Docker Container
Posted: Sunday 14 February 2021 15:47
by waltervl
Let's hope someone comes by with Synology Docker experience...
Re: Oficial Docker Container
Posted: Sunday 14 February 2021 15:51
by Harrie
@waltervl: yes.
Re: Oficial Docker Container
Posted: Sunday 14 February 2021 18:52
by bce626
I am using docker compose on a raspberry pi 4, and installed domoticz.
now i have a few questions.
i have installed python and pip for deconz / conbee.
this works for now.
will this stay as it is, or do I have to reinstall pythone and pip per update domoticz?
under settings, devices I can activate switches.
press the green arrow and then a pop up add device will appear, then press the add device button, it will turn gray but nothing happens.
what did I do wrong ?
ps my text is created with the help of google.
Re: Oficial Docker Container
Posted: Friday 19 February 2021 10:58
by DAVIZINHO
hello, I use synology interface to create the docker and its easy. You must map your local volume to the docker folders
Create a folder in your synology nas like /dockers/domoticz/config
In the docker app, in your container, in the volume secciont link this folder to /opt/domoticz/userdata
reboot the docker
after this all the files you put in your /dockers/domoticz/config, apears in the container in folder /opt/domoticz/userdata
Its important that you see the terminal seccion in your docker, you can create a session and see the docker inside. you can run scripts, install librarys, etc...
domoticz maybe is not the best docker to iniciate in this world. i recomend to you to try other first and learn the basics.
