Merge pull request #17056 from jtattermusch/ccache_cleanup_followup

Remove remnants of ccache with --use_docker
pull/15626/head
Jan Tattermusch 6 years ago committed by GitHub
commit 92ceed8730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      tools/dockerfile/test/python_alpine_x64/Dockerfile
  2. 5
      tools/run_tests/dockerize/build_docker_and_run_tests.sh
  3. 4
      tools/run_tests/dockerize/build_interop_image.sh

@ -42,13 +42,7 @@ RUN pip install virtualenv
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.0.post1 six==1.10.0 RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.0.post1 six==1.10.0
# Google Cloud platform API libraries # Google Cloud platform API libraries
RUN pip install --upgrade google-api-python-client RUN pip install --upgrade google-api-python-client oauth2client
# Prepare ccache
RUN ln -s /usr/bin/ccache /usr/local/bin/gcc
RUN ln -s /usr/bin/ccache /usr/local/bin/g++
RUN ln -s /usr/bin/ccache /usr/local/bin/cc
RUN ln -s /usr/bin/ccache /usr/local/bin/c++
RUN mkdir -p /var/local/jenkins RUN mkdir -p /var/local/jenkins

@ -22,9 +22,6 @@ cd "$(dirname "$0")/../../.."
git_root=$(pwd) git_root=$(pwd)
cd - cd -
# Ensure existence of ccache directory
mkdir -p /tmp/ccache
# Inputs # Inputs
# DOCKERFILE_DIR - Directory in which Dockerfile file is located. # DOCKERFILE_DIR - Directory in which Dockerfile file is located.
# DOCKER_RUN_SCRIPT - Script to run under docker (relative to grpc repo root) # DOCKER_RUN_SCRIPT - Script to run under docker (relative to grpc repo root)
@ -57,7 +54,6 @@ docker run \
-e "RUN_TESTS_COMMAND=$RUN_TESTS_COMMAND" \ -e "RUN_TESTS_COMMAND=$RUN_TESTS_COMMAND" \
-e "config=$config" \ -e "config=$config" \
-e "arch=$arch" \ -e "arch=$arch" \
-e CCACHE_DIR=/tmp/ccache \
-e THIS_IS_REALLY_NEEDED='see https://github.com/docker/docker/issues/14203 for why docker is awful' \ -e THIS_IS_REALLY_NEEDED='see https://github.com/docker/docker/issues/14203 for why docker is awful' \
-e HOST_GIT_ROOT="$git_root" \ -e HOST_GIT_ROOT="$git_root" \
-e LOCAL_GIT_ROOT=$docker_instance_git_root \ -e LOCAL_GIT_ROOT=$docker_instance_git_root \
@ -73,7 +69,6 @@ docker run \
--sysctl net.ipv6.conf.all.disable_ipv6=0 \ --sysctl net.ipv6.conf.all.disable_ipv6=0 \
-v ~/.config/gcloud:/root/.config/gcloud \ -v ~/.config/gcloud:/root/.config/gcloud \
-v "$git_root:$docker_instance_git_root" \ -v "$git_root:$docker_instance_git_root" \
-v /tmp/ccache:/tmp/ccache \
-v /tmp/npm-cache:/tmp/npm-cache \ -v /tmp/npm-cache:/tmp/npm-cache \
-w /var/local/git/grpc \ -w /var/local/git/grpc \
--name="$CONTAINER_NAME" \ --name="$CONTAINER_NAME" \

@ -64,8 +64,6 @@ else
echo "WARNING: grpc-node not found, it won't be mounted to the docker container." echo "WARNING: grpc-node not found, it won't be mounted to the docker container."
fi fi
mkdir -p /tmp/ccache
# Mount service account dir if available. # Mount service account dir if available.
# If service_directory does not contain the service account JSON file, # If service_directory does not contain the service account JSON file,
# some of the tests will fail. # some of the tests will fail.
@ -105,14 +103,12 @@ CONTAINER_NAME="build_${BASE_NAME}_$(uuidgen)"
# shellcheck disable=SC2086 # shellcheck disable=SC2086
(docker run \ (docker run \
--cap-add SYS_PTRACE \ --cap-add SYS_PTRACE \
-e CCACHE_DIR=/tmp/ccache \
-e THIS_IS_REALLY_NEEDED='see https://github.com/docker/docker/issues/14203 for why docker is awful' \ -e THIS_IS_REALLY_NEEDED='see https://github.com/docker/docker/issues/14203 for why docker is awful' \
-e THIS_IS_REALLY_NEEDED_ONCE_AGAIN='For issue 4835. See https://github.com/docker/docker/issues/14203 for why docker is awful' \ -e THIS_IS_REALLY_NEEDED_ONCE_AGAIN='For issue 4835. See https://github.com/docker/docker/issues/14203 for why docker is awful' \
-i \ -i \
$TTY_FLAG \ $TTY_FLAG \
$MOUNT_ARGS \ $MOUNT_ARGS \
$BUILD_INTEROP_DOCKER_EXTRA_ARGS \ $BUILD_INTEROP_DOCKER_EXTRA_ARGS \
-v /tmp/ccache:/tmp/ccache \
--name="$CONTAINER_NAME" \ --name="$CONTAINER_NAME" \
"$BASE_IMAGE" \ "$BASE_IMAGE" \
bash -l "/var/local/jenkins/grpc/tools/dockerfile/interoptest/$BASE_NAME/build_interop.sh" \ bash -l "/var/local/jenkins/grpc/tools/dockerfile/interoptest/$BASE_NAME/build_interop.sh" \

Loading…
Cancel
Save