From 1ae260e6260e34a80fcf3c0013bacfcd8e6cabd4 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Wed, 24 Apr 2024 18:56:11 +0900 Subject: [PATCH] Updated Ubuntu to 24.04 --- Dockerfiles/agent/ubuntu/Dockerfile | 4 ++-- Dockerfiles/agent2/ubuntu/Dockerfile | 4 ++-- Dockerfiles/proxy-mysql/ubuntu/Dockerfile | 8 ++++---- Dockerfiles/proxy-sqlite3/ubuntu/Dockerfile | 8 ++++---- Dockerfiles/server-mysql/ubuntu/Dockerfile | 8 ++++---- Dockerfiles/server-pgsql/ubuntu/Dockerfile | 8 ++++---- .../ubuntu/conf/etc/zabbix/apache_envvars | 6 +++--- .../ubuntu/conf/etc/zabbix/apache_envvars | 6 +++--- Dockerfiles/web-service/ubuntu/Dockerfile | 9 +++++---- 9 files changed, 31 insertions(+), 30 deletions(-) diff --git a/Dockerfiles/agent/ubuntu/Dockerfile b/Dockerfiles/agent/ubuntu/Dockerfile index 9bf15c0ed..a5abb94b6 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 \ tini \ 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 53d6b675e..ed1dbf018 100644 --- a/Dockerfiles/agent2/ubuntu/Dockerfile +++ b/Dockerfiles/agent2/ubuntu/Dockerfile @@ -38,8 +38,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 675bb4c79..6c8fc8022 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 0e5776bf1..65fc51651 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 98cf0dbcb..92d9316a9 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 f9439c51d..b4df56d07 100644 --- a/Dockerfiles/server-pgsql/ubuntu/Dockerfile +++ b/Dockerfiles/server-pgsql/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 \ - 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 3be0d3dc4..d995d464b 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 \ @@ -72,6 +72,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