RUN rpmkeys --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
+#
+# Ensure yum is installed. Some docker images only have microdnf
+#
+RUN if [ ! -e /usr/bin/yum ]; then if [ -e /usr/bin/dnf ]; then dnf install -y yum; else microdnf install -y yum; fi; fi
+
#
# Install build tools
#
# Other requirements
#
+RUN if [ ! -e /usr/bin/yum ]; then if [ -e /usr/bin/dnf ]; then dnf install -y yum; else microdnf install -y yum; fi; fi
+
# Needed for mysql-libs on Rocky 9
RUN yum install -y yum-utils
RUN yum config-manager --enable crb
ARG from=rockylinux/rockylinux:9
FROM ${from} as build
+#
+# Ensure yum is installed. Some docker images only have dnf or microdnf
+#
+RUN if [ ! -e /usr/bin/yum ]; then if [ -e /usr/bin/dnf ]; then dnf install -y yum; else microdnf install -y yum; fi; fi
+
#
# Install devtools like make and git and the EPEL
# repository for freetds and hiredis
ARG from=DOCKER_IMAGE
FROM ${from} as build
+#
+# Ensure yum is installed. Some docker images only have dnf or microdnf
+#
+RUN if [ ! -e /usr/bin/yum ]; then if [ -e /usr/bin/dnf ]; then dnf install -y yum; else microdnf install -y yum; fi; fi
+
#
# Install devtools like make and git and the EPEL
# repository for freetds and hiredis
ifelse(OS_VER, 9, `dnl
RUN rpmkeys --import /etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
')
+
+#
+# Ensure yum is installed. Some docker images only have dnf or microdnf
+#
+RUN if [ ! -e /usr/bin/yum ]; then if [ -e /usr/bin/dnf ]; then dnf install -y yum; else microdnf install -y yum; fi; fi
+
#
# Install build tools
#
})dnl
changequote({`}, {'})dnl
+RUN if [ ! -e /usr/bin/yum ]; then if [ -e /usr/bin/dnf ]; then dnf install -y yum; else microdnf install -y yum; fi; fi
+
ifelse(OS_VER, 9, `dnl
# Needed for mysql-libs on Rocky 9
RUN yum install -y yum-utils