Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[manylinux2010 ] Use https://vault.centos.org for yum repos #838

Merged
merged 1 commit into from
Dec 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docker/Dockerfile-i686
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ ENV PATH $DEVTOOLSET_ROOTPATH/usr/bin:$PATH
ENV LD_LIBRARY_PATH $DEVTOOLSET_ROOTPATH/usr/lib:$DEVTOOLSET_ROOTPATH/usr/lib/dyninst:/usr/local/lib
ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig

# Centos 6 is EOL and is no longer available from the usual mirrors, so switch
# to https://vault.centos.org
RUN sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf && \
sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo && \
sed -i 's;^#baseurl=http://mirror;baseurl=https://vault;g' /etc/yum.repos.d/*.repo

# Set a base architecture of yum package to i386
RUN echo "i386" > /etc/yum/vars/basearch

Expand Down
6 changes: 6 additions & 0 deletions docker/Dockerfile-x86_64
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ ENV PATH $DEVTOOLSET_ROOTPATH/usr/bin:$PATH
ENV LD_LIBRARY_PATH $DEVTOOLSET_ROOTPATH/usr/lib64:$DEVTOOLSET_ROOTPATH/usr/lib:$DEVTOOLSET_ROOTPATH/usr/lib64/dyninst:$DEVTOOLSET_ROOTPATH/usr/lib/dyninst:/usr/local/lib64:/usr/local/lib
ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig

# Centos 6 is EOL and is no longer available from the usual mirrors, so switch
# to https://vault.centos.org
RUN sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf && \
sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo && \
sed -i 's;^#baseurl=http://mirror;baseurl=https://vault;g' /etc/yum.repos.d/*.repo

COPY build_scripts /build_scripts
RUN bash build_scripts/build.sh && rm -r build_scripts

Expand Down
2 changes: 2 additions & 0 deletions docker/build_scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ case $AUDITWHEEL_ARCH in
x86_64)
# Install centos-release-scl to get devtoolset-8
yum -y install centos-release-scl
sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo
sed -i 's;^#.*baseurl=http://mirror;baseurl=https://vault;g' /etc/yum.repos.d/*.repo
;;
i686)
# Add libgfortran4 for devtoolset-7 compat
Expand Down
6 changes: 6 additions & 0 deletions docker/glibc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ COPY --from=quay.io/pypa/manylinux2010_centos-6-with-vsyscall64:latest \
/rpms/nscd-2.12-1.212.1.el6.x86_64.rpm \
/rpms/

# Centos 6 is EOL and is no longer available from the usual mirrors, so switch
# to https://vault.centos.org
RUN sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf && \
sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo && \
sed -i 's;^#baseurl=http://mirror;baseurl=https://vault;g' /etc/yum.repos.d/*.repo

RUN yum install -y glibc.i686 glibc-devel.i686 glibc-static.i686 glibc.x86_64 glibc-devel.x86_64 glibc-static.x86_64 && \
yum -y install /rpms/* && rm -rf /rpms && yum -y clean all && rm -rf /var/cache/yum/* && \
# if we updated glibc, we need to strip locales again...
Expand Down
7 changes: 7 additions & 0 deletions docker/glibc/Dockerfile-i686
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
FROM i386/centos:6


# Centos 6 is EOL and is no longer available from the usual mirrors, so switch
# to https://vault.centos.org
RUN sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf && \
sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo && \
sed -i 's;^#baseurl=http://mirror;baseurl=https://vault;g' /etc/yum.repos.d/*.repo

RUN echo "i386" > /etc/yum/vars/basearch
RUN yum -y update && \
yum install -y util-linux-ng
Expand Down
6 changes: 6 additions & 0 deletions docker/glibc/Dockerfile-x86_64
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
FROM centos:6

# Centos 6 is EOL and is no longer available from the usual mirrors, so switch
# to https://vault.centos.org
RUN sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf && \
sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo && \
sed -i 's;^#baseurl=http://mirror;baseurl=https://vault;g' /etc/yum.repos.d/*.repo

COPY ./build_scripts /build_scripts
RUN bash /build_scripts/rebuild-glibc-without-vsyscall.sh
2 changes: 1 addition & 1 deletion docker/glibc/build_scripts/CentOS-source.repo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[base-source]
name=CentOS-6.10 - Base SRPMS
baseurl=http://vault.centos.org/6.10/os/Source/
baseurl=https://vault.centos.org/6.10/os/Source/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=1
Expand Down