Skip to content

Commit

Permalink
5.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
aidocker committed Aug 30, 2021
1 parent e6175b0 commit 75d0452
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions server-mysql/centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,50 +120,50 @@ RUN set -eux && \
unixODBC-devel
cd /tmp/ && \
git -c advice.detachedHead=false clone ${ZBX_SOURCES} --branch ${ZBX_VERSION} --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
cd /tmp/zabbix-${ZBX_VERSION} && \
zabbix_revision=`git rev-parse --short HEAD` && \
sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
./bootstrap.sh && \
export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
./configure \
--datadir=/usr/lib \
--libdir=/usr/lib/zabbix \
--prefix=/usr \
--sysconfdir=/etc/zabbix \
--enable-agent \
--enable-server \
--with-mysql \
--with-ldap \
--with-libcurl \
--with-libxml2 \
--with-net-snmp \
--with-openipmi \
--with-openssl \
--with-ssh \
--with-unixodbc \
--enable-ipv6 \
--silent && \
make -j"$(nproc)" -s dbschema && \
make -j"$(nproc)" -s && \
cp src/zabbix_server/zabbix_server /usr/sbin/zabbix_server && \
cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
cp conf/zabbix_server.conf /etc/zabbix/zabbix_server.conf && \
cat database/mysql/schema.sql > database/mysql/create.sql && \
cat database/mysql/images.sql >> database/mysql/create.sql && \
cat database/mysql/data.sql >> database/mysql/create.sql && \
gzip database/mysql/create.sql && \
cp database/mysql/create.sql.gz /usr/share/doc/zabbix-server-mysql/ && \
cd /tmp/ && \
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
chmod -R g=u /etc/zabbix/ /var/lib/zabbix/
# cd /tmp/zabbix-${ZBX_VERSION} && \
# zabbix_revision=`git rev-parse --short HEAD` && \
# sed -i "s/{ZABBIX_REVISION}/$zabbix_revision/g" include/version.h && \
# ./bootstrap.sh && \
# export CFLAGS="-fPIC -pie -Wl,-z,relro -Wl,-z,now" && \
# ./configure \
# --datadir=/usr/lib \
# --libdir=/usr/lib/zabbix \
# --prefix=/usr \
# --sysconfdir=/etc/zabbix \
# --enable-agent \
# --enable-server \
# --with-mysql \
# --with-ldap \
# --with-libcurl \
# --with-libxml2 \
# --with-net-snmp \
# --with-openipmi \
# --with-openssl \
# --with-ssh \
# --with-unixodbc \
# --enable-ipv6 \
# --silent && \
# make -j"$(nproc)" -s dbschema && \
# make -j"$(nproc)" -s && \
# cp src/zabbix_server/zabbix_server /usr/sbin/zabbix_server && \
# cp src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
# cp src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
# cp conf/zabbix_server.conf /etc/zabbix/zabbix_server.conf && \
# cat database/mysql/schema.sql > database/mysql/create.sql && \
# cat database/mysql/images.sql >> database/mysql/create.sql && \
# cat database/mysql/data.sql >> database/mysql/create.sql && \
# gzip database/mysql/create.sql && \
# cp database/mysql/create.sql.gz /usr/share/doc/zabbix-server-mysql/ && \
# cd /tmp/ && \
# rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
# chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
# chgrp -R 0 /etc/zabbix/ /var/lib/zabbix/ && \
# chmod -R g=u /etc/zabbix/ /var/lib/zabbix/
# dnf -y history undo `dnf -q history | sed -n 3p |column -t | cut -d' ' -f1` && \
# dnf -y clean all
sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-Linux-PowerTools.repo && \
rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \
rm -rf /var/cache/dnf /etc/udev/hwdb.bin /root/.pki
# sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/CentOS-Linux-PowerTools.repo && \
# rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \
# rm -rf /var/cache/dnf /etc/udev/hwdb.bin /root/.pki

EXPOSE 10051/TCP

Expand Down

0 comments on commit 75d0452

Please sign in to comment.