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 a6ebccd commit 4236b6d
Show file tree
Hide file tree
Showing 41 changed files with 66 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 @@ -51,6 +51,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 @@ -384,6 +384,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -62,6 +62,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 @@ -381,6 +381,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -62,6 +62,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-mysql/ol/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -77,6 +77,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 @@ -381,6 +381,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -55,6 +55,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 @@ -381,6 +381,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -50,6 +50,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 @@ -161,6 +161,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -57,6 +57,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 @@ -161,6 +161,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -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/proxy-sqlite3/ol/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -75,6 +75,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 @@ -161,6 +161,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -53,6 +53,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 @@ -161,6 +161,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -52,6 +52,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 @@ -400,6 +400,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -66,6 +66,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 @@ -397,6 +397,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -65,6 +65,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 @@ -397,6 +397,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -75,6 +75,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 @@ -397,6 +397,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -57,6 +57,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 @@ -397,6 +397,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -52,6 +52,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 @@ -427,6 +427,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -64,6 +64,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 @@ -427,6 +427,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -63,6 +63,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 @@ -427,6 +427,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -75,6 +75,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 @@ -427,6 +427,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -57,6 +57,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 @@ -427,6 +427,8 @@ update_zbx_config() {
else
export ZBX_ALLOWROOT=1
fi

command -v openssl >/dev/null 2>&1 && openssl rehash -v "${ZBX_SSLCALOCATION}" 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 @@ -18,6 +18,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 @@ -171,6 +174,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 4236b6d

Please sign in to comment.