Skip to content

Commit 18cf8fd

Browse files
committed
Replace rsync with separate cp and find|rm commands
Signed-off-by: Elizabeth Byerly <[email protected]>
1 parent 2848261 commit 18cf8fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/docker/benchmark_build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ TMP_DIR="$(mktemp -d ${WORKSPACE}/tmp-docker-build-context-XXXXXXXX)"
2222
echo "Preparing docker build context in ${TMP_DIR}"
2323
cp -r "${WORKSPACE}/ci/docker/" "${TMP_DIR}/"
2424
# Exclude any venv files since they aren't necessary and docker can't handle symlinks.
25-
rsync -a --exclude='*.venv/' "${BAZEL_BIN}/benchmarks" "${TMP_DIR}"
25+
cp -r "${BAZEL_BIN}/benchmarks" "${TMP_DIR}"
26+
find "${TMP_DIR}/benchmarks" -name "*.venv" -type d -exec rm -rf {} +
2627

2728
cd "${TMP_DIR}"
2829
echo "running docker build ... "

0 commit comments

Comments
 (0)