From 2b3e301543e3422f6bfc6693d5fc4843d3f351a9 Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Fri, 4 Dec 2020 21:33:11 -0800 Subject: [PATCH] [CI] Fix CentOS 6 Docker images (#6467) --- tests/ci_build/Dockerfile.jvm | 7 ++++--- tests/ci_build/Dockerfile.jvm_gpu_build | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/ci_build/Dockerfile.jvm b/tests/ci_build/Dockerfile.jvm index 6db68a2d1978..eef8a428904e 100644 --- a/tests/ci_build/Dockerfile.jvm +++ b/tests/ci_build/Dockerfile.jvm @@ -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 \ diff --git a/tests/ci_build/Dockerfile.jvm_gpu_build b/tests/ci_build/Dockerfile.jvm_gpu_build index 0439f42384cd..6a8666580676 100644 --- a/tests/ci_build/Dockerfile.jvm_gpu_build +++ b/tests/ci_build/Dockerfile.jvm_gpu_build @@ -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 \