Skip to content

Commit

Permalink
Update CentOS 7 x86 to devtoolset-8
Browse files Browse the repository at this point in the history
  • Loading branch information
adamretter committed Feb 4, 2022
1 parent a8f0f5e commit 08bfb75
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
12 changes: 12 additions & 0 deletions centos7_x86/CentOS-buildlogs-devtoolset-8.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# CentOS-buildlogs-devtoolset-8.repo
#
# Please see https://www.mail-archive.com/[email protected]/msg133717.html
# for more information

[centos-buildlogs-devtoolset-8]
name=CentOS-7 - buildlogs devtoolset-8
baseurl=https://buildlogs.centos.org/c7-devtoolset-8.x86_64/
#mirrorlist=http:https://mirrorlist.centos.org?arch=$basearch&release=6&repo=sclo-sclo
gpgcheck=0
enabled=1
gpgkey=
12 changes: 7 additions & 5 deletions centos7_x86/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@ MAINTAINER Evolved Binary Ltd <[email protected]>
LABEL name="CentOS 7 (x86) RocksJava Build Environment" \
vendor="Evolved Binary Ltd"

COPY CentOS-buildlogs-devtoolset-8.repo /etc/yum.repos.d/CentOS-buildlogs-devtoolset-8.repo

RUN linux32 yum --setopt=tsflags=nodocs -y update \
&& linux32 yum --setopt=tsflags=nodocs -y upgrade \
&& linux32 yum --setopt=tsflags=nodocs -y install gcc-c++ make perl which bzip2 \
&& linux32 yum --setopt=tsflags=nodocs -y install make perl which bzip2 devtoolset-8 \
&& linux32 yum --setopt=tsflags=nodocs -y install zlib-devel bzip2-devel lz4-devel snappy-devel \
&& linux32 yum --setopt=tsflags=nodocs -y install openssl openssl-devel libcurl-devel java-1.7.0-openjdk-devel wget \
&& linux32 yum -y clean all \
&& wget https://github.com/jemalloc/jemalloc/releases/download/3.6.0/jemalloc-3.6.0.tar.bz2 \
&& 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* \
&& 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* \
&& wget https://cmake.org/files/v3.17/cmake-3.17.5.tar.gz \
&& 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* \
&& 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* \
&& wget https://github.com/facebook/zstd/releases/download/v1.5.0/zstd-1.5.0.tar.gz \
&& 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* \
&& 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* \
&& wget -O gflags-2.0.tar.gz https://github.com/gflags/gflags/archive/refs/tags/v2.0.tar.gz \
&& tar zxvf gflags-2.0.tar.gz; cd gflags-2.0; linux32 ./configure ; linux32 make; linux32 make install; cd ..; rm -rf gflags-2.0*
&& 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*

ENV JAVA_HOME=/usr/lib/jvm/java-1.7.0
ENV PATH=$JAVA_HOME:$PATH
Expand Down

0 comments on commit 08bfb75

Please sign in to comment.