Skip to content

Commit 08bfb75

Browse files
committed
Update CentOS 7 x86 to devtoolset-8
1 parent a8f0f5e commit 08bfb75

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# CentOS-buildlogs-devtoolset-8.repo
2+
#
3+
# Please see https://www.mail-archive.com/centos@centos.org/msg133717.html
4+
# for more information
5+
6+
[centos-buildlogs-devtoolset-8]
7+
name=CentOS-7 - buildlogs devtoolset-8
8+
baseurl=https://buildlogs.centos.org/c7-devtoolset-8.x86_64/
9+
#mirrorlist=http://mirrorlist.centos.org?arch=$basearch&release=6&repo=sclo-sclo
10+
gpgcheck=0
11+
enabled=1
12+
gpgkey=

centos7_x86/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,22 @@ MAINTAINER Evolved Binary Ltd <tech@evolvedbinary.com>
55
LABEL name="CentOS 7 (x86) RocksJava Build Environment" \
66
vendor="Evolved Binary Ltd"
77

8+
COPY CentOS-buildlogs-devtoolset-8.repo /etc/yum.repos.d/CentOS-buildlogs-devtoolset-8.repo
9+
810
RUN linux32 yum --setopt=tsflags=nodocs -y update \
911
&& linux32 yum --setopt=tsflags=nodocs -y upgrade \
10-
&& linux32 yum --setopt=tsflags=nodocs -y install gcc-c++ make perl which bzip2 \
12+
&& linux32 yum --setopt=tsflags=nodocs -y install make perl which bzip2 devtoolset-8 \
1113
&& linux32 yum --setopt=tsflags=nodocs -y install zlib-devel bzip2-devel lz4-devel snappy-devel \
1214
&& linux32 yum --setopt=tsflags=nodocs -y install openssl openssl-devel libcurl-devel java-1.7.0-openjdk-devel wget \
1315
&& linux32 yum -y clean all \
1416
&& wget https://github.com/jemalloc/jemalloc/releases/download/3.6.0/jemalloc-3.6.0.tar.bz2 \
15-
&& tar jxvf jemalloc-3.6.0.tar.bz2; cd jemalloc-3.6.0; linux32 ./configure; linux32 make; linux32 make install; cd ..; rm -rf jemalloc-3.6.0* \
17+
&& tar jxvf jemalloc-3.6.0.tar.bz2; cd jemalloc-3.6.0; linux32 ./configure; linux32 scl enable devtoolset-8 make; linux32 scl enable devtoolset-8 make install; cd ..; rm -rf jemalloc-3.6.0* \
1618
&& wget https://cmake.org/files/v3.17/cmake-3.17.5.tar.gz \
17-
&& tar zxvf cmake-3.17.5.tar.gz; cd cmake-3.17.5; linux32 ./bootstrap --system-curl; linux32 make; linux32 make install; cd ..; rm -rf cmake-3.17.5* \
19+
&& tar zxvf cmake-3.17.5.tar.gz; cd cmake-3.17.5; linux32 scl enable devtoolset-8 ./bootstrap --system-curl; linux32 scl enable devtoolset-8 make; linux32 scl enable devtoolset-8 make install; cd ..; rm -rf cmake-3.17.5* \
1820
&& wget https://github.com/facebook/zstd/releases/download/v1.5.0/zstd-1.5.0.tar.gz \
19-
&& tar zxvf zstd-1.5.0.tar.gz; cd zstd-1.5.0; linux32 make; linux32 make install; cd ..; rm -rf zstd-1.5.0* \
21+
&& tar zxvf zstd-1.5.0.tar.gz; cd zstd-1.5.0; linux32 scl enable devtoolset-8 make; linux32 scl enable devtoolset-8 make install; cd ..; rm -rf zstd-1.5.0* \
2022
&& wget -O gflags-2.0.tar.gz https://github.com/gflags/gflags/archive/refs/tags/v2.0.tar.gz \
21-
&& tar zxvf gflags-2.0.tar.gz; cd gflags-2.0; linux32 ./configure ; linux32 make; linux32 make install; cd ..; rm -rf gflags-2.0*
23+
&& tar zxvf gflags-2.0.tar.gz; cd gflags-2.0; linux32 scl enable devtoolset-8 ./configure ; linux32 scl enable devtoolset-8 make; linux32 scl enable devtoolset-8 make install; cd ..; rm -rf gflags-2.0*
2224

2325
ENV JAVA_HOME=/usr/lib/jvm/java-1.7.0
2426
ENV PATH=$JAVA_HOME:$PATH

0 commit comments

Comments
 (0)