summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/workloads/absl
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2020-06-05 11:29:53 -0700
committerNicolas Lacasse <nlacasse@google.com>2020-06-05 11:29:53 -0700
commitd208bb86ac13d2e9e682c0a8a60670458a14c7ba (patch)
treeeb76488e50de3a59eda9ebeb0ca76e2c2cf36dbb /benchmarks/workloads/absl
parent41da7a568b1e4f46b3bc09724996556fb18b4d16 (diff)
parent1495d4448fdf97a115e6e808c0363d12219264a7 (diff)
Merge pull request #2789 from Rajpratik71:optimization/git-clone
PiperOrigin-RevId: 314855924
Diffstat (limited to 'benchmarks/workloads/absl')
-rw-r--r--benchmarks/workloads/absl/Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/benchmarks/workloads/absl/Dockerfile b/benchmarks/workloads/absl/Dockerfile
index e935c5ddc..f29cfa156 100644
--- a/benchmarks/workloads/absl/Dockerfile
+++ b/benchmarks/workloads/absl/Dockerfile
@@ -16,9 +16,10 @@ RUN wget https://github.com/bazelbuild/bazel/releases/download/0.27.0/bazel-0.27
RUN chmod +x bazel-0.27.0-installer-linux-x86_64.sh
RUN ./bazel-0.27.0-installer-linux-x86_64.sh
-RUN git clone https://github.com/abseil/abseil-cpp.git
+RUN mkdir abseil-cpp && cd abseil-cpp \
+ && git init && git remote add origin https://github.com/abseil/abseil-cpp.git \
+ && git fetch --depth 1 origin 43ef2148c0936ebf7cb4be6b19927a9d9d145b8f && git checkout FETCH_HEAD
WORKDIR abseil-cpp
-RUN git checkout 43ef2148c0936ebf7cb4be6b19927a9d9d145b8f
RUN bazel clean
ENV path "absl/base/..."
CMD bazel build ${path} 2>&1