Open madejackson opened 1 month ago
Yes, you can. I do it during development. :-)
See chapter "Run in a Docker image" in (https://github.com/modbus2mqtt/server/blob/main/introduction.md) This video show a running version of it: youtube
However, as of now, There are no installation videos. :-(
Yes thank you.
I'll test it and then release it on cosmos cloud as an app.
Make sure, you use the latest version. I assume, you can use Modbus TCP only. There were issues with it. They are fixed just a few minutes ago.
btw, main image didn't update. Also why is that only arm64?
Docker should be multiarch, then docker can choose the right image for your system on it's own without manual intervention.
Also why is that only arm64? This is because I want to use the same docker file for the addon as for the standalone user. So, I have to use home assistant docker build. It doesn't support multiarch. I would be more than happy to support it. Hopefully home assistant will provide this feature.
I uploaded 0.16.11. It should solve all known issues.
Is it additional work to publish it multiarch as well? I mean this way it may work for hassio, but you break it for everything else.
I can try to publish a multiarch version myself, but then I need to maintain a fork for no apparent reason.
Also, the compose file does not work in it's unmodified state:
WARN[0000] The "HOSTNAME" variable is not set. Defaulting to a blank string.
WARN[0000] /home/user/docker/compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 1/1
✘ modbus2mqtt Error pull access denied for modbus2mqtt, repository does not exist or may require 'docker ... 1.4s
Error response from daemon: pull access denied for modbus2mqtt, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Investigating further, your dockerfile does not feature an entrypoint. I tried to compile my own image, it builds and I can pull and run it. But I suppose as there is no entrypoint it doesn't really start:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f6f12edcc00a ghcr.io/aseracorp/modbus2mqtt:latest "docker-entrypoint.s…" 44 seconds ago Restarting (0) 3 seconds ago modbus2mqtt
Hi, can you upload your app as a standalone container too? There are a lot of HA-users unable to use addons (HA can be installed as an app/container in cosmos cloud, casaOS etc.)
edit: nvm, rtfm: https://github.com/modbus2mqtt/server/blob/main/introduction.md#entity