From 909e49e214887a81e7442256e57faa0a3a30e895 Mon Sep 17 00:00:00 2001 From: Rory Mitchell Date: Thu, 6 Oct 2022 01:55:51 +0200 Subject: [PATCH] Reduce docker image size. (#8306) --- tests/ci_build/Dockerfile.gpu | 2 +- tests/ci_build/ci_build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ci_build/Dockerfile.gpu b/tests/ci_build/Dockerfile.gpu index fd7b81f58..d0d684eed 100644 --- a/tests/ci_build/Dockerfile.gpu +++ b/tests/ci_build/Dockerfile.gpu @@ -25,7 +25,7 @@ RUN \ python=3.9 cudf=$RAPIDS_VERSION_ARG* rmm=$RAPIDS_VERSION_ARG* cudatoolkit=$CUDA_VERSION_ARG \ dask dask-cuda=$RAPIDS_VERSION_ARG* dask-cudf=$RAPIDS_VERSION_ARG* cupy \ numpy pytest scipy scikit-learn pandas matplotlib wheel python-kubernetes urllib3 graphviz hypothesis \ - pyspark cloudpickle cuda-python=11.7.0 + pyspark cloudpickle cuda-python=11.7.0 && mamba clean --all ENV GOSU_VERSION 1.10 ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/ diff --git a/tests/ci_build/ci_build.sh b/tests/ci_build/ci_build.sh index 9c55cf1d8..a8567a89a 100755 --- a/tests/ci_build/ci_build.sh +++ b/tests/ci_build/ci_build.sh @@ -149,7 +149,7 @@ then # Pull pre-build container from Docker build cache, # if one exists for the particular branch or pull request echo "docker pull --quiet ${DOCKER_CACHE_REPO}/${DOCKER_IMG_NAME}:${BRANCH_NAME}" - if docker pull --quiet "${DOCKER_CACHE_REPO}/${DOCKER_IMG_NAME}:${BRANCH_NAME}" + if time docker pull --quiet "${DOCKER_CACHE_REPO}/${DOCKER_IMG_NAME}:${BRANCH_NAME}" then CACHE_FROM_CMD="--cache-from ${DOCKER_CACHE_REPO}/${DOCKER_IMG_NAME}:${BRANCH_NAME}" else