Skip to content

Commit

Permalink
Update CentOS 6 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 979119e commit c675d13
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
12 changes: 12 additions & 0 deletions centos6_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-6 - buildlogs devtoolset-8
baseurl=https://buildlogs.centos.org/c6-devtoolset-8.x86_64/
#mirrorlist=http:https://mirrorlist.centos.org?arch=$basearch&release=6&repo=sclo-sclo
gpgcheck=0
enabled=1
gpgkey=
7 changes: 4 additions & 3 deletions centos6_x86/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ MAINTAINER Evolved Binary Ltd <[email protected]>
LABEL name="CentOS 6 (x86) RocksJava Build Environment" \
vendor="Evolved Binary Ltd"

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

RUN curl --fail https://vault.centos.org/6.10/os/i386/Packages/udev-147-2.73.el6_8.2.i686.rpm --output /tmp/udev-147-2.73.el6_8.2.i686.rpm \
&& rpm -Uvh /tmp/udev-147-2.73.el6_8.2.i686.rpm --nodeps \
&& rm -f /tmp/udev-147-2.73.el6_8.2.i686.rpm \
Expand All @@ -19,15 +21,14 @@ RUN curl --fail https://vault.centos.org/6.10/os/i386/Packages/udev-147-2.73.el6
&& linux32 yum --setopt=tsflags=nodocs -y update \
&& linux32 yum --setopt=tsflags=nodocs -y install epel-release \
&& linux32 yum --setopt=tsflags=nodocs -y install wget tar which \
&& curl --fail https://people.centos.org/tru/devtools-2/devtools-2.repo --output /etc/yum.repos.d/devtools-2.repo \
&& linux32 yum --setopt=tsflags=nodocs -y install make perl devtoolset-2-binutils devtoolset-2-gcc devtoolset-2-gcc-c++ cmake3 \
&& linux32 yum --setopt=tsflags=nodocs -y install make perl devtoolset-8 cmake3 \
&& linux32 yum --setopt=tsflags=nodocs -y install jemalloc-devel zlib-devel bzip2-devel lz4-devel snappy-devel libzstd-devel \
&& linux32 yum --setopt=tsflags=nodocs -y install openssl java-1.7.0-openjdk-devel \
&& linux32 yum -y clean all \
&& alternatives --install /usr/local/bin/cmake cmake /usr/bin/cmake 10 --slave /usr/local/bin/ctest ctest /usr/bin/ctest --slave /usr/local/bin/cpack cpack /usr/bin/cpack --slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake \
&& alternatives --install /usr/local/bin/cmake cmake /usr/bin/cmake3 20 --slave /usr/local/bin/ctest ctest /usr/bin/ctest3 --slave /usr/local/bin/cpack cpack /usr/bin/cpack3 --slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake3 \
&& curl --fail https://codeload.github.com/gflags/gflags/tar.gz/v2.0 --output /tmp/gflags-2.0.tar.gz \
&& cd /tmp && tar xvfz gflags-2.0.tar.gz; cd gflags-2.0; linux32 scl enable devtoolset-2 ./configure; linux32 scl enable devtoolset-2 make; linux32 scl enable devtoolset-2 'make install'; cd ..; rm -rf gflags-2.0*
&& cd /tmp && tar xvfz 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 c675d13

Please sign in to comment.