Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include schema files? #9

Closed
vanosg opened this issue Oct 10, 2015 · 5 comments
Closed

Include schema files? #9

vanosg opened this issue Oct 10, 2015 · 5 comments

Comments

@vanosg
Copy link

vanosg commented Oct 10, 2015

Perhaps I'm doing it the wrong way, but since this docker version of zabbix requires a separate mysql container (which I agree with!), perhaps it would be nice to include the needed schema files somewhere in the base structure. While not world-ending, I had to download the tarfile to grab the schema files with which to create my mysql container- it was just another several minutes and steps that could perhaps be avoided. Or, maybe even generate an official zabbix-mysql container that already has the user and schemas loaded? Just a thought. Thanks

... or am I doing it wrong? :)

@jangaraj
Copy link
Member

You don't need a Zabbix DB schema. That's included in bootstrap process. Bootstrapping is trying to detect Zabbix DB. If Zabbix DB doesn't exist, then Zabbix DB and schema is created + basic Zabbix data files are imported => this is already implemented. Please just follow https://github.com/zabbix/zabbix-community-docker/tree/master/Dockerfile/zabbix-server-2.4 and then check your containers logs.

@vanosg
Copy link
Author

vanosg commented Oct 14, 2015

That's great that it does that already. Might I suggest clarifying that process in the README? The opening line says it has 'everything', but then the very next line says it requires an external MySQL container. Talking a little more about what is or isn't needed in the README would be very helpful for the average user. Thanks again!

@jangaraj
Copy link
Member

It is in the README alredy: See README of zabbix-server-2.4 for more details.

@vanosg
Copy link
Author

vanosg commented Oct 14, 2015

That's what I'm trying to say:

Compiled zabbix-server with almost all features (MySQL, Java, SNMP, Curl, Ipmi) and Zabbix web 
UI based on CentOS 7, Supervisor, Nginx, PHP. Image requires external MySQL database (you can 
run MySQL also as Docker container).

It contradicts itself- it says it compiles with MySQL (which I am assuming means it has the mysql server as part of the container locally? Maybe it doesn't, hence the confusion) Then says it requires an external MySQL container. I would suggest that you clarify one of those two sentences, and maybe add a sentence that says "on first run, the zabbix container will connect to the MySQL container and create the appropriate database schema" or something like that.

@jangaraj
Copy link
Member

MySQL => MySQL support. Feel free to open PR if you know how to write it better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants