{"action":"created","issue":{"url":"https://api.github.com/repos/zabbix/zabbix-community-docker/issues/13","labels_url":"https://api.github.com/repos/zabbix/zabbix-community-docker/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/zabbix/zabbix-community-docker/issues/13/comments","events_url":"https://api.github.com/repos/zabbix/zabbix-community-docker/issues/13/events","html_url":"https://github.com/zabbix/zabbix-community-docker/issues/13","id":116883554,"number":13,"title":"Dockerfile on Docker Hub is different from the one in the GitHub repo for 2.4.6","user":{"login":"xrayrey","id":15841313,"avatar_url":"https://avatars.githubusercontent.com/u/15841313?v=3","gravatar_id":"","url":"https://api.github.com/users/xrayrey","html_url":"https://github.com/xrayrey","followers_url":"https://api.github.com/users/xrayrey/followers","following_url":"https://api.github.com/users/xrayrey/following{/other_user}","gists_url":"https://api.github.com/users/xrayrey/gists{/gist_id}","starred_url":"https://api.github.com/users/xrayrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xrayrey/subscriptions","organizations_url":"https://api.github.com/users/xrayrey/orgs","repos_url":"https://api.github.com/users/xrayrey/repos","events_url":"https://api.github.com/users/xrayrey/events{/privacy}","received_events_url":"https://api.github.com/users/xrayrey/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-14T01:02:46Z","updated_at":"2016-01-11T16:11:13Z","closed_at":"2015-11-14T22:41:35Z","body":"The Dockerfile on the Zabbix Docker registry is different from the one in the repo for 2.4.6:\r\n\r\nDocker Hub: https://hub.docker.com/r/zabbix/zabbix-server-2.4/~/dockerfile/\r\n\r\n```\r\nFROM million12/nginx-php\r\nMAINTAINER Przemyslaw Ozgo linux@ozgo.info\r\n\r\nENV ZABBIX_VERSION=2.4.6\r\n\r\nADD foreground.patch /\r\n\r\nRUN \\\r\n  yum clean all && yum makecache && \\\r\n  yum update --nogpgcheck -y && \\\r\n  yum install --nogpgcheck -y svn gcc automake make nmap traceroute iptstate wget sudo net-snmp-devel net-snmp-libs net-snmp net-snmp-perl net-snmp-python net-snmp-utils php-snmp php-ldap java-1.8.0-openjdk java-1.8.0-openjdk-devel mariadb-devel libxml2-devel libcurl-devel OpenIPMI-devel && \\\r\n  svn co svn://svn.zabbix.com/tags/${ZABBIX_VERSION} /usr/local/src/zabbix && \\\r\n  cd /usr/local/src/zabbix && \\\r\n  svn patch /foreground.patch && \\\r\n  ./bootstrap.sh && \\\r\n  ./configure --enable-server --enable-agent --with-mysql --enable-java --with-net-snmp --with-libcurl --with-libxml2 --with-openipmi && \\\r\n  make dbschema && \\\r\n  make install && \\\r\n  rpm -e --nodeps make gcc && \\\r\n  yum remove -y svn automake mariadb-devel java-1.8.0-openjdk-devel libxml2-devel libcurl-devel OpenIPMI-devel && \\\r\n  yum clean all\r\n\r\nENV \\\r\n  JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk/bin/java \\\r\n  JAVA=/usr/lib/jvm/java-1.8.0-openjdk/bin/java \\\r\n  DB_ADDRESS=127.0.0.1 DB_USER=admin DB_PASS=password\r\n\r\nCOPY container-files /\r\n\r\n\r\nEXPOSE 10051 10052 80\r\n```\r\n\r\nGitHub repo: https://github.com/zabbix/zabbix-community-docker/blob/master/Dockerfile/zabbix-server-2.4/Dockerfile\r\n\r\n```\r\nFROM centos:centos7\r\nMAINTAINER Jan Garaj info@monitoringartist.com\r\n\r\n# ZABBIX_VERSION= trunk tags/2.4.6 branches/dev/ZBXNEXT-1263-1\r\n\r\nENV \\\r\n  ZABBIX_VERSION=tags/2.4.6 \\\r\n  STATUS_PAGE_ALLOWED_IP=127.0.0.1 \\\r\n  JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk/bin/java \\\r\n  JAVA=/usr/lib/jvm/java-1.8.0-openjdk/bin/java \\\r\n  PHP_date_timezone=UTC \\\r\n  PHP_max_execution_time=300 \\\r\n  PHP_max_input_time=300 \\\r\n  PHP_memory_limit=128M \\\r\n  PHP_error_reporting=E_ALL \\\r\n  ZS_ListenPort=10051 \\\r\n  ZS_SourceIP=\"\" \\\r\n  ZS_LogFile=/tmp/zabbix_server.log \\\r\n  ZS_LogFileSize=10 \\\r\n  ZS_DebugLevel=3 \\\r\n  ZS_PidFile=/var/run/zabbix_server.pid \\\r\n  ZS_DBHost=zabbix.db \\\r\n  ZS_DBName=zabbix \\\r\n  ZS_DBSchema=\"\" \\\r\n  ZS_DBUser=zabbix \\\r\n  ZS_DBPassword=zabbix \\\r\n  ZS_DBSocket=/tmp/mysql.sock \\\r\n  ZS_DBPort=3306 \\\r\n  ZS_StartPollers=5 \\\r\n  ZS_StartPollersUnreachable=1 \\\r\n  ZS_StartTrappers=5 \\\r\n  ZS_StartPingers=1 \\\r\n  ZS_StartDiscoverers=1 \\\r\n  ZS_StartHTTPPollers=1 \\\r\n  ZS_StartTimers=1 \\\r\n  ZS_JavaGateway=127.0.0.1 \\\r\n  ZS_JavaGatewayPort=10052 \\\r\n  ZS_StartJavaPollers=0 \\\r\n  ZS_StartVMwareCollectors=0 \\\r\n  ZS_VMwareFrequency=60 \\\r\n  ZS_VMwarePerfFrequency=60 \\\r\n  ZS_VMwareCacheSize=8M \\\r\n  ZS_VMwareTimeout=10 \\\r\n  ZS_SNMPTrapperFile=/tmp/zabbix_traps.tmp \\\r\n  ZS_StartSNMPTrapper=0 \\\r\n  ZS_ListenIP=0.0.0.0 \\\r\n  ZS_HousekeepingFrequency=1 \\\r\n  ZS_MaxHousekeeperDelete=500 \\\r\n  ZS_SenderFrequency=30 \\\r\n  ZS_CacheSize=8M \\\r\n  ZS_CacheUpdateFrequency=60 \\\r\n  ZS_StartDBSyncers=4 \\\r\n  ZS_HistoryCacheSize=8M \\\r\n  ZS_TrendCacheSize=4M \\\r\n  ZS_HistoryTextCacheSize=16M \\\r\n  ZS_ValueCacheSize=8M \\\r\n  ZS_Timeout=3 \\\r\n  ZS_TrapperTimeout=300 \\\r\n  ZS_UnreachablePeriod=45 \\\r\n  ZS_UnavailableDelay=60 \\\r\n  ZS_UnreachableDelay=15 \\\r\n  ZS_AlertScriptsPath=/usr/local/share/zabbix/alertscripts \\\r\n  ZS_ExternalScripts=/usr/local/share/zabbix/externalscripts \\\r\n  ZS_FpingLocation=/usr/sbin/fping \\\r\n  ZS_Fping6Location=/usr/sbin/fping6 \\\r\n  ZS_SSHKeyLocation=\"\" \\\r\n  ZS_LogSlowQueries=0 \\\r\n  ZS_TmpDir=/tmp \\\r\n  ZS_StartProxyPollers=1 \\\r\n  ZS_ProxyConfigFrequency=3600 \\\r\n  ZS_ProxyDataFrequency=1 \\\r\n  ZS_AllowRoot=0 \\\r\n  ZS_User=zabbix \\\r\n  ZS_Include=\"\" \\\r\n  ZS_SSLCertLocation=/usr/local/share/zabbix/ssl/certs \\\r\n  ZS_SSLKeyLocation=/usr/local/share/zabbix/ssl/keys \\\r\n  ZS_SSLCALocation=\"\" \\\r\n  ZS_LoadModulePath=/usr/lib/zabbix/modules \\\r\n  ZS_LoadModule=\"\" \\\r\n  TERM=xterm\r\n\r\n# Layer: base\r\nRUN \\\r\n  yum clean all && \\\r\n  yum update -y && \\\r\n  yum install -y epel-release && \\\r\n  sed -i -e \"\\|^https://\\\"http://|d\" /etc/yum.repos.d/epel.repo && \\\r\n  yum clean all && \\\r\n  yum install -y supervisor && \\\r\n  yum install -y http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm && \\\r\n  yum install -y nginx inotify-tools && \\\r\n  `# Rename nginx:nginx user/group to www:www, also set uid:gid to 80:80 (just to make it nice)` \\\r\n  groupmod --gid 80 --new-name www nginx && \\\r\n  usermod --uid 80 --home /data/www --gid 80 --login www --shell /bin/bash --comment www nginx && \\\r\n  `# Clean-up /etc/nginx/ directory from all not needed stuff...` \\\r\n  rm -rf /etc/nginx/*.d /etc/nginx/*_params && \\\r\n  `# Prepare dummy SSL certificates` \\\r\n  mkdir -p /etc/nginx/ssl && \\\r\n  openssl genrsa -out /etc/nginx/ssl/dummy.key 2048 && \\\r\n  openssl req -new -key /etc/nginx/ssl/dummy.key -out /etc/nginx/ssl/dummy.csr -subj \"/C=GB/L=London/O=Company Ltd/CN=zabbix-docker\" && \\\r\n  openssl x509 -req -days 3650 -in /etc/nginx/ssl/dummy.csr -signkey /etc/nginx/ssl/dummy.key -out /etc/nginx/ssl/dummy.crt && \\\r\n  yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm && \\\r\n  yum install -y --enablerepo=remi-php56 php-fpm \\\r\n       php-gd php-bcmath php-ctype php-xml php-xmlreader php-xmlwriter \\\r\n       php-session php-net-socket php-mbstring php-gettext php-cli \\\r\n       php-mysqlnd php-opcache php-pdo php-snmp php-ldap && \\\r\n  yum clean all && rm -rf /tmp/*\r\nADD container-files-base /\r\n\r\n# Layer: zabbix\r\nCOPY container-files-zabbix /\r\nRUN \\\r\n  yum clean all && \\\r\n  yum update -y && \\\r\n  yum install -y tar svn gcc automake make nmap traceroute iptstate wget \\\r\n              net-snmp-devel net-snmp-libs net-snmp net-snmp-perl iksemel \\\r\n              net-snmp-python net-snmp-utils java-1.8.0-openjdk python-pip \\\r\n              java-1.8.0-openjdk-devel mariadb-devel libxml2-devel gettext \\\r\n              libcurl-devel OpenIPMI-devel mysql iksemel-devel libssh2-devel \\\r\n              unixODBC unixODBC-devel mysql-connector-odbc postgresql-odbc \\\r\n              openldap-devel net-tools snmptt sudo && \\\r\n `# reinstall glibc for locales` \\\r\n  yum -y -q reinstall glibc-common && \\\r\n  cp /usr/local/etc/zabbix_agend.conf /tmp && \\\r\n  svn co svn://svn.zabbix.com/${ZABBIX_VERSION} /usr/local/src/zabbix && \\\r\n  cd /usr/local/src/zabbix && \\\r\n  DATE=`date +%Y-%m-%d` && \\\r\n  sed -i \"s/ZABBIX_VERSION.*'\\(.*\\)'/ZABBIX_VERSION', '\\1 ($DATE)'/g\" frontends/php/include/defines.inc.php && \\\r\n  sed -i \"s/ZABBIX_VERSION_RC.*\\\"\\(.*\\)\\\"/ZABBIX_VERSION_RC \\\"\\1 (${DATE})\\\"/g\" include/version.h && \\\r\n  sed -i \"s/String VERSION =.*\\\"\\(.*\\)\\\"/String VERSION = \\\"\\1 (${DATE})\\\"/g\" src/zabbix_java/src/com/zabbix/gateway/GeneralInformation.java && \\\r\n  ./bootstrap.sh && \\\r\n  ./configure --enable-server --enable-agent --with-mysql --enable-java \\\r\n              --with-net-snmp --with-libcurl --with-libxml2 --with-openipmi \\\r\n              --enable-ipv6 --with-jabber --with-openssl --with-ssh2 \\\r\n              --with-ldap  --with-unixodbc && \\\r\n  make dbschema && \\\r\n  make install && \\\r\n  cp /usr/local/etc/web/zabbix.conf.php /usr/local/src/zabbix/frontends/php/conf/ && \\\r\n  pip install py-zabbix && \\\r\n  wget https://github.com/schweikert/fping/archive/3.10.tar.gz && \\\r\n  tar -xvf 3.10.tar.gz && \\\r\n  cd fping-3.10/ && \\\r\n  ./autogen.sh && \\\r\n  ./configure --prefix=/usr/local --enable-ipv6 --enable-ipv4 && \\\r\n  make && \\\r\n  make install && \\\r\n  setcap cap_net_raw+ep /usr/local/sbin/fping && \\\r\n  setcap cap_net_raw+ep /usr/local/sbin/fping6 && \\\r\n  cd .. && \\\r\n  cp -f /tmp/zabbix_agend.conf /usr/local/etc/ && \\\r\n  rm -rf fping-3.10 && \\\r\n  rm -rf 3.10.tar.gz && \\\r\n  cd /usr/local/src/zabbix/frontends/php && \\\r\n  locale/make_mo.sh && \\\r\n  yum autoremove -y gettext python-pip tar svn gcc automake mariadb-devel \\\r\n                    java-1.8.0-openjdk-devel libxml2-devel libcurl-devel \\\r\n                    OpenIPMI-devel iksemel-devel && \\\r\n  yum install -y OpenIPMI-libs && \\\r\n  chmod +x /config/bootstrap.sh && \\\r\n  chmod +x /config/ds.sh && \\\r\n  yum clean all && \\\r\n  mkdir -p /usr/local/share/ssl/certs && \\\r\n  mkdir -p /usr/local/share/ssl/keys && \\\r\n  mkdir -p /usr/lib/zabbix/modules && \\\r\n  rm -rf /tmp/*\r\n\r\nCMD [\"/config/bootstrap.sh\"]\r\n\r\nVOLUME [\"/etc/custom-config/\", \"/usr/local/share/zabbix/externalscripts\", \"/usr/local/share/zabbix/ssl/certs\", \"/usr/local/share/zabbix/ssl/keys\", \"/usr/lib/zabbix/modules\"]\r\n\r\nEXPOSE 10051 10052 80\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/zabbix/zabbix-community-docker/issues/comments/170599226","html_url":"https://github.com/zabbix/zabbix-community-docker/issues/13#issuecomment-170599226","issue_url":"https://api.github.com/repos/zabbix/zabbix-community-docker/issues/13","id":170599226,"user":{"login":"xiaoping378","id":5623173,"avatar_url":"https://avatars.githubusercontent.com/u/5623173?v=3","gravatar_id":"","url":"https://api.github.com/users/xiaoping378","html_url":"https://github.com/xiaoping378","followers_url":"https://api.github.com/users/xiaoping378/followers","following_url":"https://api.github.com/users/xiaoping378/following{/other_user}","gists_url":"https://api.github.com/users/xiaoping378/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaoping378/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaoping378/subscriptions","organizations_url":"https://api.github.com/users/xiaoping378/orgs","repos_url":"https://api.github.com/users/xiaoping378/repos","events_url":"https://api.github.com/users/xiaoping378/events{/privacy}","received_events_url":"https://api.github.com/users/xiaoping378/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T16:11:13Z","updated_at":"2016-01-11T16:11:13Z","body":".....\r\nthe differences of all subversions in 2.4 just are the version number in dockerfile ?!"}}