aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/dockerize/docker_run.sh
diff options
context:
space:
mode:
authorGravatar Mehrdad Afshari <mmx@google.com>2018-02-22 20:45:22 -0800
committerGravatar Mehrdad Afshari <mmx@google.com>2018-02-22 21:45:03 -0800
commit2fc4ad1ed97ba5749a5450c579274172a5eead13 (patch)
tree31944c84d4b0ecd9b758ae5d6aa0491d8f89c1c2 /tools/run_tests/dockerize/docker_run.sh
parent756acb78f6ac8a6f6533a55a09590b8e598d112b (diff)
Fix Linux artifact builds
Change `git submodule` copying mechanism from the host to the docker container to use `git clone` instead of `git submodule update --init --reference`, which reaches out to the network and fails on older docker containers with deprecated openssl versions that do not support modern TLS versions required by GitHub, e.g. manylinux1. This fixes artifact builds for protoc and Python on Linux.
Diffstat (limited to 'tools/run_tests/dockerize/docker_run.sh')
-rwxr-xr-xtools/run_tests/dockerize/docker_run.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/run_tests/dockerize/docker_run.sh b/tools/run_tests/dockerize/docker_run.sh
index ac0d09c28b..b19cc2519a 100755
--- a/tools/run_tests/dockerize/docker_run.sh
+++ b/tools/run_tests/dockerize/docker_run.sh
@@ -25,9 +25,7 @@ then
# clone gRPC submodules, use data from locally cloned submodules where possible
# TODO: figure out a way to eliminate this following shellcheck suppressions
# shellcheck disable=SC2016,SC1004
- (cd "${EXTERNAL_GIT_ROOT}" && git submodule foreach 'cd /var/local/git/grpc \
- && git submodule update --init --reference ${EXTERNAL_GIT_ROOT}/${name} \
- ${name}')
+ (cd "${EXTERNAL_GIT_ROOT}" && git submodule foreach 'git clone ${EXTERNAL_GIT_ROOT}/${name} /var/local/git/grpc/${name}')
else
mkdir -p "/var/local/git/grpc/$RELATIVE_COPY_PATH"
cp -r "$EXTERNAL_GIT_ROOT/$RELATIVE_COPY_PATH"/* "/var/local/git/grpc/$RELATIVE_COPY_PATH"