From e0f063127b807730571cd9d8885ae2b243bf1dbe Mon Sep 17 00:00:00 2001 From: Syping Date: Sat, 16 Mar 2024 04:21:13 +0100 Subject: [PATCH] initial commit --- Containerfile.el7 | 9 +++++++++ Containerfile.el8 | 11 +++++++++++ Containerfile.el9 | 8 ++++++++ 3 files changed, 28 insertions(+) create mode 100644 Containerfile.el7 create mode 100644 Containerfile.el8 create mode 100644 Containerfile.el9 diff --git a/Containerfile.el7 b/Containerfile.el7 new file mode 100644 index 0000000..1f7558e --- /dev/null +++ b/Containerfile.el7 @@ -0,0 +1,9 @@ +FROM centos:7 + +RUN yum install -y centos-release-scl epel-release && \ + yum install -y cmake3 epel-rpm-macros-systemd make devtoolset-9-annobin devtoolset-9-gcc-c++ git perl perl-IPC-Cmd rpmdevtools rpmlint systemd-rpm-macros && \ + yum clean all +RUN useradd -m -s /bin/bash -U rpmbuild +USER rpmbuild +WORKDIR /home/rpmbuild +RUN rpmdev-setuptree diff --git a/Containerfile.el8 b/Containerfile.el8 new file mode 100644 index 0000000..cd35253 --- /dev/null +++ b/Containerfile.el8 @@ -0,0 +1,11 @@ +FROM rockylinux:8 + +RUN dnf install -y 'dnf-command(config-manager)' && \ + dnf config-manager --set-enabled powertools && \ + dnf install -y epel-release && \ + dnf install -y cmake epel-rpm-macros-systemd make gcc-toolset-9-annobin gcc-toolset-9-gcc-c++ git perl perl-IPC-Cmd rpmdevtools rpmlint systemd-rpm-macros && \ + dnf clean all +RUN useradd -m -s /bin/bash -U rpmbuild +USER rpmbuild +WORKDIR /home/rpmbuild +RUN rpmdev-setuptree diff --git a/Containerfile.el9 b/Containerfile.el9 new file mode 100644 index 0000000..14f0f56 --- /dev/null +++ b/Containerfile.el9 @@ -0,0 +1,8 @@ +FROM rockylinux:9 + +RUN dnf install -y annobin cmake make gcc-c++ git perl perl-IPC-Cmd rpmdevtools rpmlint systemd-rpm-macros && \ + dnf clean all +RUN useradd -m -s /bin/bash -U rpmbuild +USER rpmbuild +WORKDIR /home/rpmbuild +RUN rpmdev-setuptree