mqtt2sql icon indicating copy to clipboard operation
mqtt2sql copied to clipboard

feature request: create docker container

Open hartmark opened this issue 2 years ago • 5 comments

I'd love to have this as a self contained docker container to keep the program more isolated so it's easier to update. Now with latest update I needed to fiddle and install some python libraries.

hartmark avatar Jun 11 '24 22:06 hartmark

I'm not sure which is easier, installing a lib for Python or configuring a docker to an external database and MQTT server. It is not my intention to additionally embed both services in this solution. A docker for a small Python tool like this feels like shooting sparrows with cannons.

What I can rather imagine is a PyPi package

curzon01 avatar Jun 12 '24 07:06 curzon01

Yeah, it's probably a bit overkill, one advantage though is that you can have the systemd service also in the container.

I'm not so good with python, is a PyPi package something you can install like a aur-package in arch Linux?

hartmark avatar Jun 12 '24 14:06 hartmark

is a PyPi package something you can install like a aur-package in arch Linux?

see pypi.org - you do pip install <package> to install the package and dependencies.

But I still don't see the milestone: This tool system still needs a Python environment and for external resources an MQTT server and a MySQL/SQLite server/lib. That is the meaning behind it. Since I don't plan to integrate the last two services into this tool, the only thing left to do is to install a Python environment and the dependencies. But all this is already done by the simple two-line solution from Installation - Python prerequisites

curzon01 avatar Jun 12 '24 16:06 curzon01

Yeah, it's probably a bit overkill

that's the point

curzon01 avatar Jun 12 '24 16:06 curzon01

Any PR is welcome, otherwise I will close the request

curzon01 avatar Jun 16 '24 12:06 curzon01