docker image instead of docker-compose
heggink opened this issue · 6 comments
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Trying to get rid of my raspberry pi, I have migrated nearly everything to Truenas Scale under docker. Truenas Scale runs Kubernetes and does not natively support docker compose. I am trying to install your great product but instead of having to do a bunch of installs, I'd like to just be able to run a docker container which has that installed already. Reason being that I cannot nativey install things under Truenas Core without having to reinstall with the next sw upgrade.
Has anyone ever created a docker file creating an image that has everything in it?
Describe the solution you'd like
A clear and concise description of what you want to happen.
Full docker image rathwer than an install followed by docker-compose
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
I dont use docker myself. Hopefully someone can fix this.
Edit:
Try this https://github.com/DewGew/Domoticz-Google-Assistant/pkgs/container/domoticz-google-assistant
Thx. About to go and try it. Will let you know how it ends up.
WHilst at it, the rpi version I was using gives a bunch of these errors: " [WebServer] Depricated RType (devices) for API request. Please use correct API Command!" due to changes in teh domoticz JSON API. are these fixed in the latest docker or can I help correct these?
Saw you already fixed smarthome.py but I found some in const.py as well. Made a PR for those.
So I managed to start dzga using docker under kubernetes using the amd64 latest image from https://hub.docker.com/r/dewgew/domoticz-google-assistant
It starts but throws a couple of errors:
2023-06-08 14:59:26 - INFO - Connecting to Domoticz on http://192.168.1.109:18081
2023-06-08 14:59:26 - DEBUG - Starting new HTTP connection (1): 192.168.1.109:18081
2023-06-08 14:59:26 - DEBUG - http://192.168.1.109:18081 "GET /json.htm?type=command¶m=addlogmessage&message=Connected%20to%20Google%20Assistant%20with%20DZGA%20v1.23.7 HTTP/1.1" 200 49
2023-06-08 14:59:26 - DEBUG - Popen(['git', 'version'], cwd=/, universal_newlines=False, shell=None, istream=None)
2023-06-08 14:59:26 - DEBUG - <pid.posix.PidFile object at 0x7fa92cf35b50> entering setup
2023-06-08 14:59:26 - DEBUG - <pid.posix.PidFile object at 0x7fa92cf35b50> create pidfile: /tmp/dzga.pid
2023-06-08 14:59:26 - DEBUG - <pid.posix.PidFile object at 0x7fa92cf35b50> check pidfile: /tmp/dzga.pid
2023-06-08 14:59:26 - INFO - Using SSL connection
2023-06-08 14:59:26 - INFO - ========
2023-06-08 14:59:26 - INFO - Started DZGA v1.23.7 server at port 3030
2023-06-08 14:59:26 - INFO -
2023-06-08 14:59:26 - INFO - Visit https://localhost:3030/settings to access the user interface
2023-06-08 14:59:26 - INFO -
2023-06-08 14:59:26 - INFO - =========
2023-06-08 14:59:26 - INFO - Visit the Actions on Google console at http://console.actions.google.com
2023-06-08 14:59:26 - INFO - Under Develop section, replace the fulfillment URL in Actions with:
2023-06-08 14:59:26 - INFO - https://[your public url]/smarthome
2023-06-08 14:59:26 - INFO -
2023-06-08 14:59:26 - INFO - In Account linking, set the Authorization URL to:
2023-06-08 14:59:26 - INFO - https://[your public url]/oauth
2023-06-08 14:59:26 - INFO -
2023-06-08 14:59:26 - INFO - Then set the Token URL to:
2023-06-08 14:59:26 - INFO - https://[your public url]/token
2023-06-08 14:59:26 - INFO -
2023-06-08 14:59:26 - INFO - Finally press 'SAVE' and then 'TEST' button
2023-06-08 14:59:26 - INFO - =======
2023-06-08 14:59:26 - DEBUG - Starting new HTTP connection (1): 192.168.1.109:18081
2023-06-08 14:59:26 - DEBUG - http://192.168.1.109:18081 "GET /json.htm?type=devices&plan=14&filter=all&used=true HTTP/1.1" 200 2914
2023-06-08 14:59:26 - DEBUG - {
"Vent high": {
"idx": 54,
"type": "Scene",
"state": "On",
"lastupdate": "2023-04-26 23:54:14",
"willReportState": true
}
}
2023-06-08 14:59:26 - DEBUG - Starting new HTTP connection (1): 192.168.1.109:18081
2023-06-08 14:59:26 - DEBUG - http://192.168.1.109:18081 "GET /json.htm?type=plans&order=name&used=true HTTP/1.1" 200 22
2023-06-08 14:59:26 - ERROR - Error in getting devices and settings
From the end you can see it calls: http://192.168.1.109:18081/json.htm?type=plans&order=name&used=true
which throws an error with the latest domoticz (it errors instead of giving the depricated RType error in domoticz).
So I guess I will need your updated docker image...
Updated docker inage works now. Everything running ok under Kubernetes/docker!