Skip to content

Commit

Permalink
[CI] Fix CentOS 6 Docker images (#6467)
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Dec 5, 2020
1 parent 84b726e commit 05e5563
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions tests/ci_build/Dockerfile.jvm
Expand Up @@ -2,12 +2,13 @@ FROM centos:6

ENV DEVTOOLSET_URL_ROOT http://vault.centos.org/6.9/sclo/x86_64/rh/devtoolset-4/

COPY CentOS-Base.repo /etc/yum.repos.d/

# Install all basic requirements
RUN \
yum install -y epel-release && \
yum -y update && \
yum install -y tar unzip wget xz git centos-release-scl yum-utils java-1.8.0-openjdk-devel && \
yum-config-manager --enable centos-sclo-rh-testing && \
yum -y update && \
yum install -y tar unzip wget xz git java-1.8.0-openjdk-devel && \
yum install -y $DEVTOOLSET_URL_ROOT/devtoolset-4-gcc-5.3.1-6.1.el6.x86_64.rpm \
$DEVTOOLSET_URL_ROOT/devtoolset-4-gcc-c++-5.3.1-6.1.el6.x86_64.rpm \
$DEVTOOLSET_URL_ROOT/devtoolset-4-binutils-2.25.1-8.el6.x86_64.rpm \
Expand Down
7 changes: 4 additions & 3 deletions tests/ci_build/Dockerfile.jvm_gpu_build
Expand Up @@ -6,12 +6,13 @@ ARG CUDA_VERSION_ARG
ENV DEBIAN_FRONTEND noninteractive
ENV DEVTOOLSET_URL_ROOT http://vault.centos.org/6.9/sclo/x86_64/rh/devtoolset-4/

COPY CentOS-Base.repo /etc/yum.repos.d/

# Install all basic requirements
RUN \
yum install -y epel-release && \
yum -y update && \
yum install -y tar unzip wget xz git centos-release-scl yum-utils java-1.8.0-openjdk-devel && \
yum-config-manager --enable centos-sclo-rh-testing && \
yum -y update && \
yum install -y tar unzip wget xz git java-1.8.0-openjdk-devel && \
yum install -y $DEVTOOLSET_URL_ROOT/devtoolset-4-gcc-5.3.1-6.1.el6.x86_64.rpm \
$DEVTOOLSET_URL_ROOT/devtoolset-4-gcc-c++-5.3.1-6.1.el6.x86_64.rpm \
$DEVTOOLSET_URL_ROOT/devtoolset-4-binutils-2.25.1-8.el6.x86_64.rpm \
Expand Down

0 comments on commit 05e5563

Please sign in to comment.