Sample Header Ad - 728x90

Zabbix-server-mysql on docker centos:latest skips some files during install

1 vote
4 answers
2422 views
I tried to install Zabbix-server-mysql on genuine centos image in docker container: [root@desktop]# docker run --rm -ti centos:latest /bin/bash [root@0e4f336ff674]# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm [root@0e4f336ff674]# rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm [root@0e4f336ff674]# yum install http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm This manual: https://www.zabbix.com/documentation/3.2/manual/installation/install_from_packages/server_installation_with_mysql requires a file "/usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz" to be created during the installation due to its necessity to create zabbix DB on MySQL server. But this file appears missing: [root@0e4f336ff674]# ls -ld /usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz ls: cannot access /usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz: No such file or directory The funny part is this file actually EXISTS in *.rpm file: [root@0e4f336ff674]# rpm2cpio http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm | cpio -t | grep create ./usr/share/doc/zabbix-server-mysql-3.2.3/create.sql.gz Moreover, the package doesn't seem to have any pre- or post-install scripts that could delete the /usr/share/doc/zabbix-server-mysql-3.2.3/ directory: [root@0e4f336ff674]# rpm -qp --scripts http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.3-1.el7.x86_64.rpm preinstall scriptlet (using /bin/sh): getent group zabbix > /dev/null || groupadd -r zabbix getent passwd zabbix > /dev/null || \ useradd -r -g zabbix -d /var/lib/zabbix -s /sbin/nologin \ -c "Zabbix Monitoring System" zabbix : postinstall scriptlet (using /bin/sh): if [ $1 -eq 1 ] ; then # Initial installation /usr/bin/systemctl preset zabbix-server.service >/dev/null 2>&1 || : fi /usr/sbin/update-alternatives --install /usr/sbin/zabbix_server \ zabbix-server /usr/sbin/zabbix_server_mysql 10 : So what could be the problem with it? P.S.: I am aware of the exising official zabbix-on-docker images: github.com/zabbix/zabbix-docker
Asked by Alessandro Cattaneo (21 rep)
Feb 1, 2017, 05:53 PM
Last activity: Aug 24, 2024, 05:00 AM