zbxdb icon indicating copy to clipboard operation
zbxdb copied to clipboard

Simplify deployment with Docker and Docker Compose.

Open 0fca opened this issue 5 years ago • 15 comments

Python and its pyvenv I'm always frustrated when I have to set up pyvenv or raw python instance in any kind of environment.

Solution It seems to be a good idea to Dockerize the project using Python 3.6 base with ports exposed and volumes if needed.

If it's up to you, I would like to do that.

0fca avatar Aug 22 '19 09:08 0fca

Hi Lucas,

it sure is an idea ... On the other hand: it’s about one installation in a network, asuming you use 1 server/proxy per network. Don’t run zbxdb from a database server.

I am not familiar with the setup you propose but if you can show me and if it does not add extra complexities...

Groeten, Ronald Rood

Op 22 aug. 2019 om 11:05 heeft Lukas [email protected] het volgende geschreven:

** Python and its pyvenv ** I'm always frustrated when I have to set up pyvenv or raw python instance in any kind of environment.

Solution It seems to be a good idea to Dockerize the project using Python 3.6 base with ports exposed and volumes if needed.

If it's up to you, I would like to do that.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

ikzelf avatar Aug 22 '19 17:08 ikzelf

The thing is I know how to use the software properly, as you described it in getting started. I just suggested probably better way of packing whole app up. Docker image will be a good idea I think, as not all sysadmins are aware of how to get well on with pyvenv or sth. In case of Docker there is no need of pyvenv really.

0fca avatar Aug 22 '19 18:08 0fca

Well, show me how that works. I am open for improvements.

Groeten, Ronald Rood

Op 22 aug. 2019 om 20:33 heeft Lukas [email protected] het volgende geschreven:

The thing is I know how to use the software properly, as you described it in getting started. I just suggested probably better way of packing whole app up. Docker image will be a good idea I think, as not all sysadmins are aware of how to get well on with pyvenv or sth. In case of Docker there is no need of pyvenv really.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

ikzelf avatar Aug 22 '19 21:08 ikzelf

Yea, sure. I will do it and after having that done, I will make a PR so you can review it and eventaully test it. Will it be a good idea to make a branch for that change so the master will stay unchanged for those who are more willing to use pyvenv?

0fca avatar Aug 23 '19 07:08 0fca

Add a branch named docker?

ikzelf avatar Aug 23 '19 07:08 ikzelf

Yea, if you are up to it.

0fca avatar Aug 23 '19 07:08 0fca

It's there now. BTW: I did make a small change after you forked.

ikzelf avatar Aug 23 '19 08:08 ikzelf

How about making the apps selfcontained like with https://pypi.org/project/shiv/

ikzelf avatar Sep 18 '19 15:09 ikzelf

You mean to make it contained so possible to be installed via pip? Yea, ofc. It would be great and make eazier to build possible Docker containers from it e.g

0fca avatar Sep 22 '19 20:09 0fca

Hi, if you are willing to I can share really simple ansible playbook for setting up zbxdb environment on CentOS/RHEL. Also there would not be a problem to extend this to other distros.

sstankiewicz avatar Dec 28 '19 16:12 sstankiewicz

Hi, sure, can you make a pull request for the playbook[s]? Doing so automagically gives credit for who deserves it. I assume you have a subdirectory containing the playbook and role[s]?

ikzelf avatar Dec 30 '19 12:12 ikzelf

I have a lot of spare time now, sorry for a delay... Is it still up to you, that we will try to do this fancy thing with Docker?

0fca avatar Mar 22 '20 10:03 0fca

Hi Lucas,

yes, if it helps making use of zbxdb easier ..... why not? I guess it also means making a simple web interface to import/export/create and maintain configurations and some way to read the logs. Setup crontab.

For me it will be nice learning experience.

Groeten, Ronald Rood

Op 22 mrt. 2020 om 11:17 heeft Lukas [email protected] het volgende geschreven:

 I have a lot of spare time now, sorry for a delay... Is it still up to you, that we will try to do this fancy thing with Docker?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ikzelf avatar Mar 22 '20 14:03 ikzelf

If you would like me to help you, cause am a web developer, I currently work as a Symfony Developer, I can help you with that stuff or sth. Then Docker will be even more usefull to easily set up such web app :D

0fca avatar Mar 23 '20 14:03 0fca

+1 for docker. Don't forget about all the users where the zabbix servers don't have internet access! It was a pain installing all dependencies on a RHEL 7 without inet!

d1nd141 avatar Mar 11 '21 08:03 d1nd141