2022-06-17 21:56:08 +00:00
|
|
|
FROM quay.io/centos/centos:stream9
|
|
|
|
|
2022-06-18 19:03:53 +00:00
|
|
|
ADD images/get_arch /get_arch
|
|
|
|
|
2022-06-17 20:01:13 +00:00
|
|
|
ENV TINI_VERSION v0.19.0
|
|
|
|
RUN curl -o /tini -L "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-$(/get_arch)"
|
|
|
|
RUN chmod +x /tini
|
|
|
|
|
|
|
|
RUN rm -rf /etc/yum.repos.d/*.repo
|
|
|
|
ADD images/epelkey.gpg /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
|
|
|
|
ADD images/rhel.repo /etc/yum.repos.d/rhel.repo
|
|
|
|
|
|
|
|
RUN dnf update -y && dnf install -y \
|
|
|
|
bash \
|
|
|
|
bzip2 \
|
|
|
|
cpio \
|
|
|
|
diffutils \
|
|
|
|
findutils \
|
|
|
|
gawk \
|
|
|
|
gcc \
|
|
|
|
gcc-c++ \
|
|
|
|
git \
|
|
|
|
grep \
|
|
|
|
gzip \
|
|
|
|
info \
|
|
|
|
make \
|
|
|
|
patch \
|
|
|
|
python3 \
|
|
|
|
redhat-rpm-config \
|
|
|
|
rpm-build \
|
|
|
|
scl-utils-build \
|
|
|
|
sed \
|
|
|
|
shadow-utils \
|
|
|
|
tar \
|
|
|
|
unzip \
|
|
|
|
util-linux \
|
|
|
|
which \
|
|
|
|
xz \
|
|
|
|
dnf-plugins-core \
|
|
|
|
createrepo_c \
|
|
|
|
rpm-sign \
|
|
|
|
sudo \
|
|
|
|
mock \
|
|
|
|
python-pip \
|
|
|
|
genisoimage \
|
|
|
|
isomd5sum \
|
|
|
|
lorax \
|
|
|
|
lorax-templates-rhel \
|
|
|
|
lorax-templates-generic
|
|
|
|
|
|
|
|
RUN sed -i '/libreport-rhel-anaconda-bugzilla/ s/^/#/' /usr/share/lorax/templates.d/80-rhel/runtime-install.tmpl
|
|
|
|
|
|
|
|
RUN ssh-keygen -t rsa -q -f "$HOME/.ssh/id_rsa" -N ""
|
|
|
|
RUN dnf clean all
|
|
|
|
RUN rm -rf /etc/yum.repos.d/*.repo
|
|
|
|
RUN useradd -o -d /var/peridot -u 1002 peridotbuilder && usermod -a -G mock peridotbuilder
|
|
|
|
RUN chown peridotbuilder:mock /etc/yum.conf && chown -R peridotbuilder:mock /etc/dnf && chown -R peridotbuilder:mock /etc/rpm && chown -R peridotbuilder:mock /etc/yum.repos.d
|
|
|
|
|
2022-07-05 01:15:47 +00:00
|
|
|
RUN pip install 'git+https://git.resf.org/sig_core/toolkit.git@devel#egg=empanadas&subdirectory=iso/empanadas'
|
2022-06-17 21:56:08 +00:00
|
|
|
|
2022-06-19 04:00:02 +00:00
|
|
|
RUN pip install awscli
|
2022-06-17 20:01:13 +00:00
|
|
|
|
|
|
|
ENV USER=1002
|
|
|
|
USER 1002
|
|
|
|
|
|
|
|
ENTRYPOINT ["/tini", "--"]
|