mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-04-15 14:58:31 +02:00
Strip for Zabbix agent 2
This commit is contained in:
parent
784739070c
commit
b931f68574
@ -49,8 +49,7 @@ RUN set -eux && \
|
||||
git \
|
||||
pcre-dev \
|
||||
openssl-dev \
|
||||
zlib-dev \
|
||||
coreutils && \
|
||||
zlib-dev && \
|
||||
cd /tmp/ && \
|
||||
git clone ${ZBX_SOURCES} --branch master --depth 1 --single-branch zabbix-${ZBX_VERSION} && \
|
||||
cd /tmp/zabbix-${ZBX_VERSION} && \
|
||||
@ -75,6 +74,9 @@ RUN set -eux && \
|
||||
cp /tmp/zabbix-${ZBX_VERSION}/src/zabbix_get/zabbix_get /usr/bin/zabbix_get && \
|
||||
cp /tmp/zabbix-${ZBX_VERSION}/src/zabbix_sender/zabbix_sender /usr/bin/zabbix_sender && \
|
||||
cp /tmp/zabbix-${ZBX_VERSION}/src/go/conf/zabbix_agent2.conf /etc/zabbix/zabbix_agent2.conf && \
|
||||
strip /usr/sbin/zabbix_agent2 && \
|
||||
strip /usr/bin/zabbix_get && \
|
||||
strip /usr/bin/zabbix_sender && \
|
||||
cd /tmp/ && \
|
||||
rm -rf /tmp/zabbix-${ZBX_VERSION}/ && \
|
||||
chown --quiet -R zabbix:root /etc/zabbix/ /var/lib/zabbix/ && \
|
||||
|
Loading…
Reference in New Issue
Block a user