2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-02-25 10:59:18 +00:00
Files
xcat-core/test/Containerfile
Daniel Hilst Selli 698ed4bed6 fix: Fix container setup for EL8
Also add --regennginxconfig to reset nginx config, and
ensure nginx configuration is generated for all targets
not only the ones provided in the command line. This avoid
the anoying effect of overriding the repositories of previous
builds.

Signed-off-by: Daniel Hilst Selli <392820+dhilst@users.noreply.github.com>
2025-12-05 17:11:16 -03:00

21 lines
555 B
Docker

ARG RELEASEVER=9
FROM quay.io/rockylinux/rockylinux:${RELEASEVER}-ubi-init
ARG RELEASEVER
RUN dnf install -y epel-release
RUN echo "RELEASEVER=${RELEASEVER}"
RUN if [[ "${RELEASEVER}" == "8" ]]; then \
dnf config-manager --set-enabled powertools epel; \
elif [[ "${RELEASEVER}" =~ /(9|10)/ ]]; then \
dnf config-manager --set-enabled crb epel; \
else \
echo "Invalid RELEASEVER=${RELEASEVER}"; \
exit -1; \
fi
RUN dnf makecache
RUN dnf install -y hostname perl perl-core
RUN dnf clean all
WORKDIR /workspace