Fixed tzdata on RHEL

This commit is contained in:
Alexey Pustovalov 2026-07-17 17:32:59 +09:00
parent fd986f33d8
commit 7061e5e18b
11 changed files with 11 additions and 85 deletions

View file

@ -62,6 +62,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
set -eux && \ set -eux && \
INSTALL_PKGS="bash \ INSTALL_PKGS="bash \
shadow-utils \ shadow-utils \
tzdata \
c-ares \ c-ares \
libcurl-minimal \ libcurl-minimal \
libmodbus \ libmodbus \
@ -83,23 +84,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
${INSTALL_PKGS} && \ ${INSTALL_PKGS} && \
microdnf -y update \
--disableplugin=subscription-manager \
--disablerepo="*" \
--enablerepo="ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \
--best \
--setopt=tsflags=nodocs \
tzdata && \
microdnf -y reinstall \
--disableplugin=subscription-manager \
--disablerepo="*" \
--enablerepo="ubi-9-baseos-rpms" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
--best \
--setopt=tsflags=nodocs \
tzdata && \
groupadd \ groupadd \
--system \ --system \
--gid 1995 \ --gid 1995 \

View file

@ -63,6 +63,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
set -eux && \ set -eux && \
INSTALL_PKGS="bash \ INSTALL_PKGS="bash \
shadow-utils \ shadow-utils \
tzdata \
libcurl-minimal \ libcurl-minimal \
pcre2 \ pcre2 \
iputils \ iputils \
@ -77,14 +78,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
${INSTALL_PKGS} && \ ${INSTALL_PKGS} && \
microdnf -y update \
--disableplugin=subscription-manager \
--disablerepo="*" \
--enablerepo="ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \
--best \
--setopt=tsflags=nodocs \
tzdata && \
groupadd \ groupadd \
--system \ --system \
--gid 1995 \ --gid 1995 \

View file

@ -39,7 +39,7 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \
openjdk-21-jre-headless" && \ openjdk-21-jre-headless" && \
apt-get update && \ apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \ DEBIAN_FRONTEND=noninteractive apt-get install -y \
--no-install-recommends install \ --no-install-recommends \
${INSTALL_PKGS} && \ ${INSTALL_PKGS} && \
groupadd \ groupadd \
--system \ --system \

View file

@ -72,6 +72,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
INSTALL_PKGS="bash \ INSTALL_PKGS="bash \
gzip \ gzip \
shadow-utils \ shadow-utils \
tzdata \
c-ares \ c-ares \
libcurl-minimal \ libcurl-minimal \
libevent \ libevent \
@ -108,15 +109,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
${INSTALL_PKGS} && \ ${INSTALL_PKGS} && \
microdnf -y update \
--disableplugin=subscription-manager \
--disablerepo="*" \
--enablerepo="ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
--best \
--setopt=tsflags=nodocs \
tzdata && \
groupadd \ groupadd \
--system \ --system \
--gid 1995 \ --gid 1995 \

View file

@ -71,6 +71,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
INSTALL_PKGS="bash \ INSTALL_PKGS="bash \
gzip \ gzip \
shadow-utils \ shadow-utils \
tzdata \
c-ares \ c-ares \
libcurl-minimal \ libcurl-minimal \
libevent \ libevent \
@ -106,14 +107,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
${INSTALL_PKGS} && \ ${INSTALL_PKGS} && \
microdnf -y update \
--disableplugin=subscription-manager \
--disablerepo="*" \
--enablerepo="ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \
--best \
--setopt=tsflags=nodocs \
tzdata && \
groupadd \ groupadd \
--system \ --system \
--gid 1995 \ --gid 1995 \

View file

@ -74,6 +74,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
gzip \ gzip \
hostname \ hostname \
shadow-utils \ shadow-utils \
tzdata \
c-ares \ c-ares \
libbrotli \ libbrotli \
libevent \ libevent \
@ -111,14 +112,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
${INSTALL_PKGS} && \ ${INSTALL_PKGS} && \
microdnf -y update \
--disableplugin=subscription-manager \
--disablerepo="*" \
--enablerepo="ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \
--best \
--setopt=tsflags=nodocs \
tzdata && \
microdnf swap -y libcurl-minimal libcurl && \ microdnf swap -y libcurl-minimal libcurl && \
groupadd \ groupadd \
--system \ --system \

View file

@ -73,6 +73,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
gzip \ gzip \
hostname \ hostname \
shadow-utils \ shadow-utils \
tzdata \
c-ares \ c-ares \
libbrotli \ libbrotli \
libevent \ libevent \
@ -110,15 +111,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
${INSTALL_PKGS} && \ ${INSTALL_PKGS} && \
microdnf -y update \
--disableplugin=subscription-manager \
--disablerepo="*" \
--enablerepo="ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
--best \
--setopt=tsflags=nodocs \
tzdata && \
microdnf swap -y libcurl-minimal libcurl && \ microdnf swap -y libcurl-minimal libcurl && \
groupadd \ groupadd \
--system \ --system \

View file

@ -55,6 +55,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
set -eux && \ set -eux && \
INSTALL_PKGS="bash \ INSTALL_PKGS="bash \
shadow-utils \ shadow-utils \
tzdata \
net-snmp" && \ net-snmp" && \
microdnf -y install \ microdnf -y install \
--disableplugin=subscription-manager \ --disableplugin=subscription-manager \
@ -66,14 +67,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
${INSTALL_PKGS} && \ ${INSTALL_PKGS} && \
microdnf -y update \
--disableplugin=subscription-manager \
--disablerepo="*" \
--enablerepo="ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \
--best \
--setopt=tsflags=nodocs \
tzdata && \
groupadd \ groupadd \
--system \ --system \
--gid 1995 \ --gid 1995 \

View file

@ -83,6 +83,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
gzip \ gzip \
jq \ jq \
shadow-utils \ shadow-utils \
tzdata \
nginx \ nginx \
php-fpm \ php-fpm \
php-bcmath \ php-bcmath \
@ -106,14 +107,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
${INSTALL_PKGS} && \ ${INSTALL_PKGS} && \
microdnf -y update \
--disableplugin=subscription-manager \
--disablerepo="*" \
--enablerepo="ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \
--best \
--setopt=tsflags=nodocs \
tzdata && \
groupadd \ groupadd \
--system \ --system \
--gid 1995 \ --gid 1995 \

View file

@ -82,6 +82,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
gzip \ gzip \
jq \ jq \
shadow-utils \ shadow-utils \
tzdata \
nginx \ nginx \
php-fpm \ php-fpm \
php-bcmath \ php-bcmath \
@ -105,14 +106,6 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--best \ --best \
--setopt=tsflags=nodocs \ --setopt=tsflags=nodocs \
${INSTALL_PKGS} && \ ${INSTALL_PKGS} && \
microdnf -y update \
--disableplugin=subscription-manager \
--disablerepo="*" \
--enablerepo="ubi-10-baseos-rpms" \
--setopt=install_weak_deps=0 \
--best \
--setopt=tsflags=nodocs \
tzdata && \
groupadd \ groupadd \
--system \ --system \
--gid 1995 \ --gid 1995 \

View file

@ -52,7 +52,7 @@ RUN --mount=type=cache,target=/var/cache/apt/,sharing=locked \
echo "deb [signed-by=/etc/apt/keyrings/debian.gpg] http://deb.debian.org/debian trixie-updates main" >> /etc/apt/sources.list.d/debian.list && \ echo "deb [signed-by=/etc/apt/keyrings/debian.gpg] http://deb.debian.org/debian trixie-updates main" >> /etc/apt/sources.list.d/debian.list && \
apt-get update && \ apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \ DEBIAN_FRONTEND=noninteractive apt-get install -y \
--no-install-recommends install \ --no-install-recommends \
${INSTALL_PKGS} && \ ${INSTALL_PKGS} && \
groupadd \ groupadd \
--system \ --system \