Skip to content

Commit cb4287f

Browse files
committed
update x86 dockerfile (use devtoolset-10)
1 parent 163850f commit cb4287f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/docker/dev_x86_centos7.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
1717
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
1818
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
1919

20-
RUN yum install devtoolset-7 -y --nogpgcheck
21-
RUN echo "source /opt/rh/devtoolset-7/enable" >> /root/.bashrc && source /root/.bashrc
20+
RUN yum install devtoolset-7 devtoolset-10 -y --nogpgcheck
21+
RUN echo "source /opt/rh/devtoolset-10/enable" >> /root/.bashrc && source /root/.bashrc
2222
ARG PY_VER=3.8
2323

2424
RUN curl -LO https://github.com/Kitware/CMake/releases/download/v3.27.9/cmake-3.27.9-linux-x86_64.sh \
@@ -96,7 +96,7 @@ RUN curl -LO https://github.com/NixOS/patchelf/archive/refs/tags/0.14.5.tar.gz &
9696
cd patchelf-0.14.5 && \
9797
./bootstrap.sh && \
9898
./configure && \
99-
source /opt/rh/devtoolset-7/enable && make install && \
99+
source /opt/rh/devtoolset-10/enable && make install && \
100100
cd .. && rm -rf patchelf-0.14.5 0.14.5.tar.gz
101101
RUN pip3 install auditwheel==6.1.0
102102

0 commit comments

Comments
 (0)