Skip to content

Commit

Permalink
Added OpenSSL package to server and sqlite3 images. Required to perfo…
Browse files Browse the repository at this point in the history
…rm rehash of added CA certificates
  • Loading branch information
dotneft committed Jan 16, 2025
1 parent 103d1d0 commit 2e96b91
Show file tree
Hide file tree
Showing 41 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfiles/proxy-mysql/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ RUN set -eux && \
traceroute \
nmap \
iputils \
openssl \
libcap \
libcurl \
libevent \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/proxy-mysql/alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/proxy-mysql/centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
net-snmp-libs \
OpenIPMI-libs \
openldap \
openssl \
openssl-libs \
pcre2 \
shadow-utils \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/proxy-mysql/centos/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/proxy-mysql/ol/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
net-snmp-libs \
OpenIPMI-libs \
openldap \
openssl \
openssl-libs \
pcre2 \
zlib \
Expand Down
5 changes: 5 additions & 0 deletions Dockerfiles/proxy-mysql/ol/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

update_config_var $ZBX_CONFIG "WebDriverURL" "${ZBX_WEBDRIVERURL}"
update_config_var $ZBX_CONFIG "StartBrowserPollers" "${ZBX_STARTBROWSERPOLLERS}"

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/proxy-mysql/rhel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
libcurl-minimal \
libevent \
openldap \
openssl \
libssh \
libxml2 \
mysql \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/proxy-mysql/rhel/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/proxy-mysql/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \
nmap \
ca-certificates \
fping \
openssl \
libcurl4t64 \
libevent-2.1 \
libevent-pthreads-2.1 \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/proxy-mysql/ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/proxy-sqlite3/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ RUN set -eux && \
nmap \
fping \
iputils \
openssl \
libcap \
libcurl \
libevent \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/proxy-sqlite3/alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/proxy-sqlite3/centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
net-snmp-libs \
OpenIPMI-libs \
openldap \
openssl \
openssl-libs \
pcre2 \
shadow-utils \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/proxy-sqlite3/centos/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/proxy-sqlite3/ol/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
net-snmp-libs \
OpenIPMI-libs \
openldap \
openssl \
openssl-libs \
pcre2 \
zlib \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/proxy-sqlite3/ol/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/proxy-sqlite3/rhel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
libcurl-minimal \
libevent \
openldap \
openssl \
libssh \
libxml2 \
net-snmp-agent-libs \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/proxy-sqlite3/rhel/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/proxy-sqlite3/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \
nmap \
ca-certificates \
fping \
openssl \
libcurl4t64 \
libevent-2.1 \
libevent-pthreads-2.1 \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/proxy-sqlite3/ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/server-mysql/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ RUN set -eux && \
nmap \
tzdata \
iputils \
openssl \
libcap \
libcurl \
libevent \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/server-mysql/alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/server-mysql/centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
net-snmp-libs \
OpenIPMI-libs \
openldap \
openssl \
openssl-libs \
pcre2 \
shadow-utils \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/server-mysql/centos/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/server-mysql/ol/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
net-snmp-libs \
OpenIPMI-libs \
openldap \
openssl \
openssl-libs \
pcre2 \
zlib \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/server-mysql/ol/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/server-mysql/rhel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
shadow-utils \
iputils \
hostname \
openssl \
libssh \
libpsl \
libbrotli \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/server-mysql/rhel/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/server-mysql/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \
iputils-ping \
traceroute \
fping \
openssl \
libcurl4t64 \
libevent-2.1 \
libevent-pthreads-2.1 \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/server-mysql/ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/server-pgsql/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ RUN set -eux && \
fping \
tzdata \
iputils \
openssl \
libcap \
libcurl \
libevent \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/server-pgsql/centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
net-snmp-libs \
OpenIPMI-libs \
openldap \
openssl \
openssl-libs \
pcre2 \
postgresql \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/server-pgsql/centos/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/server-pgsql/ol/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
net-snmp-libs \
OpenIPMI-libs \
openldap \
openssl \
openssl-libs \
pcre2 \
postgresql \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/server-pgsql/ol/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/server-pgsql/rhel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
shadow-utils \
iputils \
hostname \
openssl \
libssh \
libpsl \
libbrotli \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/server-pgsql/rhel/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
1 change: 1 addition & 0 deletions Dockerfiles/server-pgsql/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \
iputils-ping \
traceroute \
fping \
openssl \
libcurl4t64 \
libevent-2.1 \
libevent-pthreads-2.1 \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ update_zbx_config() {
else
update_config_var $ZBX_CONFIG "AllowRoot" "1"
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "$ZABBIX_USER_HOME_DIR/ssl/ssl_ca/" 1>/dev/null
}

clear_zbx_env() {
Expand Down
6 changes: 6 additions & 0 deletions compose_zabbix_components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ services:
- ${DATA_DIRECTORY}/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro
- ${DATA_DIRECTORY}/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro
- ${DATA_DIRECTORY}/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro
- ${DATA_DIRECTORY}/var/lib/zabbix/ssl/certs:/var/lib/zabbix/ssl/certs:ro
- ${DATA_DIRECTORY}/var/lib/zabbix/ssl/keys:/var/lib/zabbix/ssl/keys:ro
- ${DATA_DIRECTORY}/var/lib/zabbix/ssl/ssl_ca:/var/lib/zabbix/ssl/ssl_ca:rw
- snmptraps:/var/lib/zabbix/snmptraps:roz
tmpfs: /tmp
ulimits:
Expand Down Expand Up @@ -168,6 +171,9 @@ services:
- ${DATA_DIRECTORY}/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro
- ${DATA_DIRECTORY}/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro
- ${DATA_DIRECTORY}/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro
- ${DATA_DIRECTORY}/var/lib/zabbix/ssl/certs:/var/lib/zabbix/ssl/certs:ro
- ${DATA_DIRECTORY}/var/lib/zabbix/ssl/keys:/var/lib/zabbix/ssl/keys:ro
- ${DATA_DIRECTORY}/var/lib/zabbix/ssl/ssl_ca:/var/lib/zabbix/ssl/ssl_ca:rw
- snmptraps:/var/lib/zabbix/snmptraps:ro
tmpfs: /tmp
ulimits:
Expand Down

0 comments on commit 2e96b91

Please sign in to comment.