summaryrefslogtreecommitdiffhomepage
path: root/images
diff options
context:
space:
mode:
authorPratik Raj <rajpratik71@gmail.com>2020-05-27 20:30:22 +0530
committerPratik Raj <rajpratik71@gmail.com>2020-05-28 09:36:14 +0530
commit1495d4448fdf97a115e6e808c0363d12219264a7 (patch)
tree713663d8f4c4a7847c571a09ef32d87c2c47acf8 /images
parente028714a0dd390b2321c4beeac62c5b2904cd917 (diff)
optimization in git clone using --depth
optimize the git clone using --depth flag in term of size of clone and also in term's of time taken to fetch the files and commit history of whole repository . More detail can be found at blog https://www.atlassian.com/git/tutorials/big-repositories Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
Diffstat (limited to 'images')
-rw-r--r--images/packetdrill/Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/images/packetdrill/Dockerfile b/images/packetdrill/Dockerfile
index 7a006c85f..01296dbaf 100644
--- a/images/packetdrill/Dockerfile
+++ b/images/packetdrill/Dockerfile
@@ -2,7 +2,7 @@ FROM ubuntu:bionic
RUN apt-get update && apt-get install -y net-tools git iptables iputils-ping \
netcat tcpdump jq tar bison flex make
RUN hash -r
-RUN git clone --branch packetdrill-v2.0 \
+RUN git clone --depth 1 --branch packetdrill-v2.0 \
https://github.com/google/packetdrill.git
RUN cd packetdrill/gtests/net/packetdrill && ./configure && make
CMD /bin/bash