diff --git a/Dockerfiles/agent/ubuntu/Dockerfile b/Dockerfiles/agent/ubuntu/Dockerfile index 9a6405392..eb725bb88 100644 --- a/Dockerfiles/agent/ubuntu/Dockerfile +++ b/Dockerfiles/agent/ubuntu/Dockerfile @@ -37,8 +37,8 @@ RUN --mount=type=cache,target=/var/lib/apt/,sharing=locked \ INSTALL_PKGS="bash \ tzdata \ ca-certificates \ - libssl3 \ - libcurl4 \ + libssl3t64 \ + libcurl4t64 \ libmodbus5 \ libpcre2-8-0 \ libldap-2.4 \ diff --git a/Dockerfiles/agent2/ubuntu/Dockerfile b/Dockerfiles/agent2/ubuntu/Dockerfile index 3fae59636..ef1cabc82 100644 --- a/Dockerfiles/agent2/ubuntu/Dockerfile +++ b/Dockerfiles/agent2/ubuntu/Dockerfile @@ -43,8 +43,8 @@ RUN --mount=type=cache,target=/var/lib/apt/,sharing=locked \ ca-certificates \ smartmontools \ sudo \ - libssl3 \ - libcurl4 \ + libssl3t64 \ + libcurl4t64 \ libpcre2-8-0 \ libldap-2.4" && \ apt-get -y update && \ diff --git a/Dockerfiles/proxy-mysql/ubuntu/Dockerfile b/Dockerfiles/proxy-mysql/ubuntu/Dockerfile index 334839e5d..2852188b9 100644 --- a/Dockerfiles/proxy-mysql/ubuntu/Dockerfile +++ b/Dockerfiles/proxy-mysql/ubuntu/Dockerfile @@ -44,15 +44,15 @@ RUN --mount=type=cache,target=/var/lib/apt/,sharing=locked \ nmap \ ca-certificates \ fping \ - libcurl4 \ + libcurl4t64 \ libevent-2.1 \ libevent-pthreads-2.1 \ libmysqlclient21 \ - libopenipmi0 \ + libopenipmi0t64 \ libpcre2-8-0 \ - libsnmp40 \ + libsnmp40t64 \ libssh-4 \ - libssl3 \ + libssl3t64 \ libxml2 \ mysql-client \ snmp-mibs-downloader \ diff --git a/Dockerfiles/proxy-sqlite3/ubuntu/Dockerfile b/Dockerfiles/proxy-sqlite3/ubuntu/Dockerfile index 35c101590..b0ff87242 100644 --- a/Dockerfiles/proxy-sqlite3/ubuntu/Dockerfile +++ b/Dockerfiles/proxy-sqlite3/ubuntu/Dockerfile @@ -42,15 +42,15 @@ RUN --mount=type=cache,target=/var/lib/apt/,sharing=locked \ nmap \ ca-certificates \ fping \ - libcurl4 \ + libcurl4t64 \ libevent-2.1 \ libevent-pthreads-2.1 \ - libopenipmi0 \ + libopenipmi0t64 \ libpcre2-8-0 \ - libsnmp40 \ + libsnmp40t64 \ libsqlite3-0 \ libssh-4 \ - libssl3 \ + libssl3t64 \ libxml2 \ snmp-mibs-downloader \ unixodbc \ diff --git a/Dockerfiles/server-mysql/ubuntu/Dockerfile b/Dockerfiles/server-mysql/ubuntu/Dockerfile index b646ab20d..dc16050d9 100644 --- a/Dockerfiles/server-mysql/ubuntu/Dockerfile +++ b/Dockerfiles/server-mysql/ubuntu/Dockerfile @@ -45,15 +45,15 @@ RUN --mount=type=cache,target=/var/lib/apt/,sharing=locked \ iputils-ping \ traceroute \ fping \ - libcurl4 \ + libcurl4t64 \ libevent-2.1 \ libevent-pthreads-2.1 \ libmysqlclient21 \ - libopenipmi0 \ + libopenipmi0t64 \ libpcre2-8-0 \ - libsnmp40 \ + libsnmp40t64 \ libssh-4 \ - libssl3 \ + libssl3t64 \ libxml2 \ mysql-client \ snmp-mibs-downloader \ diff --git a/Dockerfiles/server-pgsql/ubuntu/Dockerfile b/Dockerfiles/server-pgsql/ubuntu/Dockerfile index cac2a533a..9dc9a8d89 100644 --- a/Dockerfiles/server-pgsql/ubuntu/Dockerfile +++ b/Dockerfiles/server-pgsql/ubuntu/Dockerfile @@ -48,15 +48,15 @@ RUN --mount=type=cache,target=/var/lib/apt/,sharing=locked \ iputils-ping \ traceroute \ fping \ - libcurl4 \ + libcurl4t64 \ libevent-2.1 \ libevent-pthreads-2.1 \ - libopenipmi0 \ + libopenipmi0t64 \ libpcre2-8-0 \ libpq5 \ - libsnmp40 \ + libsnmp40t64 \ libssh-4 \ - libssl3 \ + libssl3t64 \ libxml2 \ postgresql-client \ snmp-mibs-downloader \ diff --git a/Dockerfiles/web-apache-mysql/ubuntu/conf/etc/zabbix/apache_envvars b/Dockerfiles/web-apache-mysql/ubuntu/conf/etc/zabbix/apache_envvars index 54a63c8c9..7826620ba 100644 --- a/Dockerfiles/web-apache-mysql/ubuntu/conf/etc/zabbix/apache_envvars +++ b/Dockerfiles/web-apache-mysql/ubuntu/conf/etc/zabbix/apache_envvars @@ -1,4 +1,4 @@ -export APACHE_RUN_USER=zabbix -export APACHE_RUN_GROUP=zabbix +export APACHE_RUN_USER=$(id -n -u) +export APACHE_RUN_GROUP=www-data export APACHE_PID_FILE=/tmp/apache2.pid -export APACHE_RUN_DIR=/tmp +export APACHE_RUN_DIR=/tmp/apache2 diff --git a/Dockerfiles/web-apache-pgsql/ubuntu/conf/etc/zabbix/apache_envvars b/Dockerfiles/web-apache-pgsql/ubuntu/conf/etc/zabbix/apache_envvars index 54a63c8c9..7826620ba 100644 --- a/Dockerfiles/web-apache-pgsql/ubuntu/conf/etc/zabbix/apache_envvars +++ b/Dockerfiles/web-apache-pgsql/ubuntu/conf/etc/zabbix/apache_envvars @@ -1,4 +1,4 @@ -export APACHE_RUN_USER=zabbix -export APACHE_RUN_GROUP=zabbix +export APACHE_RUN_USER=$(id -n -u) +export APACHE_RUN_GROUP=www-data export APACHE_PID_FILE=/tmp/apache2.pid -export APACHE_RUN_DIR=/tmp +export APACHE_RUN_DIR=/tmp/apache2 diff --git a/Dockerfiles/web-service/ubuntu/Dockerfile b/Dockerfiles/web-service/ubuntu/Dockerfile index 398ed3dde..105fbe94f 100644 --- a/Dockerfiles/web-service/ubuntu/Dockerfile +++ b/Dockerfiles/web-service/ubuntu/Dockerfile @@ -42,10 +42,10 @@ RUN --mount=type=cache,target=/var/lib/apt/,sharing=locked \ DEBIAN_FRONTEND=noninteractive apt-get -y \ --no-install-recommends install \ ${INSTALL_TEMP_PKGS} && \ - apt-key --keyring /etc/apt/trusted.gpg.d/debian-archive-bullseye-automatic.gpg adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9 && \ - apt-key --keyring /etc/apt/trusted.gpg.d/debian-archive-bullseye-security-automatic.gpg adv --keyserver keyserver.ubuntu.com --recv-keys A48449044AAD5C5D && \ - echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list.d/debian.list && \ - echo "deb http://deb.debian.org/debian bullseye-updates main" >> /etc/apt/sources.list.d/debian.list && \ + gpg --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9 && \ + gpg -o /etc/apt/keyrings/debian.gpg --export 0E98404D386FA1D9 && \ + echo "deb [signed-by=/etc/apt/keyrings/debian.gpg] http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list.d/debian.list && \ + echo "deb [signed-by=/etc/apt/keyrings/debian.gpg] http://deb.debian.org/debian bullseye-updates main" >> /etc/apt/sources.list.d/debian.list && \ apt-get -y update && \ DEBIAN_FRONTEND=noninteractive apt-get -y \ --no-install-recommends install \ @@ -71,6 +71,7 @@ RUN --mount=type=cache,target=/var/lib/apt/,sharing=locked \ DEBIAN_FRONTEND=noninteractive apt-get -y \ purge \ ${INSTALL_TEMP_PKGS} && \ + rm -rf ~/.gnupg && \ apt-get -y autoremove && \ apt-get -y clean