Skip to content

Commit 7e55fc1

Browse files
committed
update arm64v8 for gcc 12
1 parent 6c04118 commit 7e55fc1

File tree

1 file changed

+21
-25
lines changed

1 file changed

+21
-25
lines changed

centos7_arm64v8/Dockerfile

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@ RUN \
3636
&& sed -i s%#baseurl=http://mirror.centos.org/altarch/\$releasever/%baseurl=https://vault.centos.org/altarch/7.9.2009/%g /etc/yum.repos.d/CentOS-fasttrack.repo \
3737
&& yum --setopt=tsflags=nodocs -y update \
3838
&& yum --setopt=tsflags=nodocs -y install epel-release \
39-
&& yum --setopt=tsflags=nodocs -y install centos-release-scl \
40-
&& sed -i s%mirrorlist=http%#mirrorlist=http%g /etc/yum.repos.d/CentOS-SCLo-scl.repo \
41-
&& sed -i s%mirrorlist=http%#mirrorlist=http%g /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo \
42-
&& sed -i s%#\\sbaseurl=http://mirror.centos.org/centos/7/%baseurl=https://vault.centos.org/altarch/7.9.2009/%g /etc/yum.repos.d/CentOS-SCLo-scl.repo \
43-
&& sed -i s%#baseurl=http://mirror.centos.org/centos/7/%baseurl=https://vault.centos.org/altarch/7.9.2009/%g /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo \
39+
&& echo -e '[c7-devtoolset-12]\nname=CentOS-7 - Devtoolset 12 (\$basearch)\nbaseurl=https://buildlogs.centos.org/c7-devtoolset-12.\$basearch/\nenabled=1\ngpgcheck=0' > /etc/yum.repos.d/centos-buildlogs-aarch64.repo \
4440
&& yum --setopt=tsflags=nodocs -y upgrade \
45-
&& yum --setopt=tsflags=nodocs -y install devtoolset-7 \
41+
&& yum --setopt=tsflags=nodocs -y install devtoolset-12 \
4642
&& yum --setopt=tsflags=nodocs -y install make perl python3 which bzip2 wget \
4743
&& yum --setopt=tsflags=nodocs -y install gettext-devel openssl openssl-devel zlib-devel expat-devel libssh2-devel jemalloc-devel \
4844
&& yum -y clean all
@@ -54,9 +50,9 @@ RUN \
5450
wget https://github.com/nghttp2/nghttp2/releases/download/v$NGHTTP2_VERSION/nghttp2-$NGHTTP2_VERSION.tar.gz \
5551
&& tar zxf nghttp2-$NGHTTP2_VERSION.tar.gz \
5652
&& pushd nghttp2-$NGHTTP2_VERSION \
57-
&& scl enable devtoolset-7 './configure --prefix=/usr --with-openssl --with-zlib --with-jemalloc --enable-lib-only' \
58-
&& scl enable devtoolset-7 'make -j $JOBS' \
59-
&& scl enable devtoolset-7 'make install' \
53+
&& scl enable devtoolset-12 './configure --prefix=/usr --with-openssl --with-zlib --with-jemalloc --enable-lib-only' \
54+
&& scl enable devtoolset-12 'make -j $JOBS' \
55+
&& scl enable devtoolset-12 'make install' \
6056
&& popd \
6157
&& rm -rf nghttp2-$NGHTTP2_VERSION nghttp2-$NGHTTP2_VERSION.tar.gz
6258

@@ -67,9 +63,9 @@ RUN \
6763
wget https://github.com/rockdaboot/libpsl/releases/download/$LIBPSL_VERSION/libpsl-$LIBPSL_VERSION.tar.gz \
6864
&& tar zxf libpsl-$LIBPSL_VERSION.tar.gz \
6965
&& pushd libpsl-$LIBPSL_VERSION \
70-
&& scl enable devtoolset-7 './configure --prefix=/usr' \
71-
&& scl enable devtoolset-7 'make -j $JOBS' \
72-
&& scl enable devtoolset-7 'make install' \
66+
&& scl enable devtoolset-12 './configure --prefix=/usr' \
67+
&& scl enable devtoolset-12 'make -j $JOBS' \
68+
&& scl enable devtoolset-12 'make install' \
7369
&& popd \
7470
&& rm -rf libpsl-$LIBPSL_VERSION libpsl-$LIBPSL_VERSION.tar.gz
7571

@@ -98,9 +94,9 @@ RUN \
9894
&& wget https://curl.haxx.se/download/curl-$CURL_VERSION.tar.gz \
9995
&& tar zxf curl-$CURL_VERSION.tar.gz \
10096
&& pushd curl-$CURL_VERSION \
101-
&& scl enable devtoolset-7 './configure --prefix=/usr --enable-ipv6 --enable-unix-sockets --with-ssl --with-libssh2' \
102-
&& scl enable devtoolset-7 'make -j $JOBS' \
103-
&& scl enable devtoolset-7 'make install' \
97+
&& scl enable devtoolset-12 './configure --prefix=/usr --enable-ipv6 --enable-unix-sockets --with-ssl --with-libssh2' \
98+
&& scl enable devtoolset-12 'make -j $JOBS' \
99+
&& scl enable devtoolset-12 'make install' \
104100
&& popd \
105101
&& rm -rf curl-$CURL_VERSION curl-$CURL_VERSION.tar.gz
106102

@@ -146,10 +142,10 @@ RUN \
146142
&& wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-$GIT_VERSION.tar.gz \
147143
&& tar zxf git-$GIT_VERSION.tar.gz \
148144
&& pushd git-$GIT_VERSION \
149-
&& scl enable devtoolset-7 'make configure' \
150-
&& scl enable devtoolset-7 'NO_PERL=YesPlease NO_TCLTK=YesPlease NO_GETTEXT=YesPlease ./configure --prefix=/usr' \
151-
&& scl enable devtoolset-7 'make -j $JOBS all' \
152-
&& scl enable devtoolset-7 'make install' \
145+
&& scl enable devtoolset-12 'make configure' \
146+
&& scl enable devtoolset-12 'NO_PERL=YesPlease NO_TCLTK=YesPlease NO_GETTEXT=YesPlease ./configure --prefix=/usr' \
147+
&& scl enable devtoolset-12 'make -j $JOBS all' \
148+
&& scl enable devtoolset-12 'make install' \
153149
&& popd \
154150
&& rm -rf git-$GIT_VERSION git-$GIT_VERSION.tar.gz
155151

@@ -201,18 +197,18 @@ RUN \
201197
&& wget https://cmake.org/files/v$CMAKE_VERSION_SHORT/cmake-$CMAKE_VERSION.tar.gz \
202198
&& tar zxvf cmake-$CMAKE_VERSION.tar.gz \
203199
&& pushd cmake-$CMAKE_VERSION \
204-
&& scl enable devtoolset-7 './bootstrap --system-curl' \
205-
&& scl enable devtoolset-7 'make -j $JOBS' \
206-
&& scl enable devtoolset-7 'make install' \
200+
&& scl enable devtoolset-12 './bootstrap --system-curl' \
201+
&& scl enable devtoolset-12 'make -j $JOBS' \
202+
&& scl enable devtoolset-12 'make install' \
207203
&& popd \
208204
&& rm -rf cmake-$CMAKE_VERSION cmake-$CMAKE_VERSION.tar.gz \
209205
&& wget -O gflags-$GFLAGS_VERSION.tar.gz https://github.com/gflags/gflags/archive/refs/tags/v$GFLAGS_VERSION.tar.gz \
210206
&& tar zxvf gflags-$GFLAGS_VERSION.tar.gz \
211207
&& mkdir gflags-$GFLAGS_VERSION/build \
212208
&& pushd gflags-$GFLAGS_VERSION/build \
213-
&& scl enable devtoolset-7 'CMAKE_INSTALL_PREFIX=/usr cmake ..' \
214-
&& scl enable devtoolset-7 'make -j $JOBS' \
215-
&& scl enable devtoolset-7 'make install' \
209+
&& scl enable devtoolset-12 'CMAKE_INSTALL_PREFIX=/usr cmake ..' \
210+
&& scl enable devtoolset-12 'make -j $JOBS' \
211+
&& scl enable devtoolset-12 'make install' \
216212
&& popd \
217213
&& rm -rf gflags-$GFLAGS_VERSION gflags-$GFLAGS_VERSION.tar.gz
218214

0 commit comments

Comments
 (0)