Skip to content

Commit

Permalink
feat: Reenable CentOS 7 builds
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed Jan 13, 2025
1 parent 1479934 commit 37c727b
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 4 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
!shell.nix
!vcpkg-configuration.json
!vcpkg.json
!dockerfiles/CentOS-Base.repo
1 change: 1 addition & 0 deletions .github/workflows/prebuild-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
"ubuntu-20.04",
"rockylinux-8",
"centos-8",
"centos-7"
]
fail-fast: false

Expand Down
45 changes: 45 additions & 0 deletions dockerfiles/CentOS-Base.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# /etc/yum.repos.d/CentOS-Base.repo

[base]
name=CentOS-$releasever - Base
baseurl=http://vault.centos.org/7.9.2009/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[updates]
name=CentOS-$releasever - Updates
baseurl=http://vault.centos.org/7.9.2009/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[extras]
name=CentOS-$releasever - Extras
baseurl=http://vault.centos.org/7.9.2009/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://vault.centos.org/7.9.2009/centosplus/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[contrib]
name=CentOS-$releasever - Contrib
baseurl=http://vault.centos.org/7.9.2009/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[sclo]
name=CentOS-$releasever - sclo
baseurl=https://vault.centos.org/7.9.2009/sclo/$basearch/sclo/
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[rh]
name=CentOS-$releasever - rh
baseurl=https://vault.centos.org/7.9.2009/sclo/$basearch/rh/
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

10 changes: 6 additions & 4 deletions dockerfiles/centos-7.dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM centos:centos7.9.2009 AS base_build

COPY dockerfiles/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo

# Build Tools ---
RUN yum clean all && yum update -y && yum install -y \
https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm

RUN yum update -y && yum install -y \
centos-release-scl \
https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm && \
yum group install -y "Development Tools" && yum install -y \
autoconf \
autoconf-archive \
Expand All @@ -18,10 +21,9 @@ RUN yum update -y && yum install -y \
unzip \
yum-utils \
zip && \
yum install -y devtoolset-11 && \
yum -y clean all && rm -rf /var/cache

RUN yum install -y devtoolset-11

RUN echo "source /opt/rh/devtoolset-11/enable" >> /etc/bashrc
SHELL ["/bin/bash", "--login", "-c"]

Expand Down

0 comments on commit 37c727b

Please sign in to comment.