Skip to content

Commit cb9d876

Browse files
committed
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 <[email protected]>
1 parent 799ea5f commit cb9d876

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

images/kubemci/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN apt-get update && apt-get install -y \
2222
RUN cd /${GOPATH}/src && \
2323
mkdir -p github.com/GoogleCloudPlatform && \
2424
cd github.com/GoogleCloudPlatform && \
25-
git clone https://github.com/GoogleCloudPlatform/k8s-multicluster-ingress.git && \
25+
git clone --depth 1 https://github.com/GoogleCloudPlatform/k8s-multicluster-ingress.git && \
2626
cd k8s-multicluster-ingress && \
2727
make build && \
2828
cp kubemci /bin && \

0 commit comments

Comments
 (0)