From 1495d4448fdf97a115e6e808c0363d12219264a7 Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Wed, 27 May 2020 20:30:22 +0530 Subject: 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 --- images/packetdrill/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'images/packetdrill') 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 -- cgit v1.2.3