This commit is contained in:
Sean OMeara 2023-03-29 07:51:49 +02:00
parent aa0d6b06d6
commit 20dd685ab0
No known key found for this signature in database
GPG key ID: 7215FDCD4EFD5E2F
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ FROM --platform=linux/${DOCKER_ARCH} centos:5 AS stage
WORKDIR /root/rpmbuild/BUILD
COPY . .
COPY --from=builder zerotier-* ./
RUN printf "[C5.10-base]\nname=CentOS-5.10 - Base\nbaseurl=http://vault.epel.cloud/5.10/os/\$basearch/\ngpgcheck=1\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6\nenabled=1\nmetadata_expire=never\n" > /etc/yum.repos.d/CentOS-Base.repo
# RUN printf "[C5.10-base]\nname=CentOS-5.10 - Base\nbaseurl=http://vault.epel.cloud/5.10/os/\$basearch/\ngpgcheck=1\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6\nenabled=1\nmetadata_expire=never\n" > /etc/yum.repos.d/CentOS-Base.repo
RUN uname -a
RUN yum -y install make gcc rpm-build
RUN pwd

View file

@ -1,4 +1,4 @@
ARG DOCKER_ARCH
FROM --platform=linux/${DOCKER_ARCH} centos:5
RUN printf "[C5.10-base]\nname=CentOS-5.10 - Base\nbaseurl=http://vault.epel.cloud/5.10/os/\$basearch/\ngpgcheck=1\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6\nenabled=1\nmetadata_expire=never\n" > /etc/yum.repos.d/CentOS-Base.repo
# RUN printf "[C5.10-base]\nname=CentOS-5.10 - Base\nbaseurl=http://vault.epel.cloud/5.10/os/\$basearch/\ngpgcheck=1\ngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6\nenabled=1\nmetadata_expire=never\n" > /etc/yum.repos.d/CentOS-Base.repo
RUN yum -y install curl