Issue-ID: DCAEGEN2-2261 optimization in git clone using --depth 63/108363/1
authorPratik Raj <rajpratik71@gmail.com>
Thu, 28 May 2020 05:36:05 +0000 (11:06 +0530)
committerPratik Raj <rajpratik71@gmail.com>
Thu, 28 May 2020 06:04:13 +0000 (11:34 +0530)
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.

Respective jira issue created

at https://jira.onap.org/browse/DCAEGEN2-2261

with Issue-ID: DCAEGEN2-2261

More detail can be found at blog
https://www.atlassian.com/git/tutorials/big-repositories

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
Change-Id: Ie6dbf4823709154443e604262fe64be02a97d5a0

docs/sections/services/heartbeat-ms/build_setup.rst
docs/sections/services/snmptrap/installation.rst

index 6ab6a17..6033aff 100644 (file)
@@ -25,7 +25,7 @@ Docker build procedure
 Clone the code using below command\r
 \r
 ::\r
-      git clone https://gerrit.onap.org/r/dcaegen2/services/heartbeat \r
+      git clone --depth 1 https://gerrit.onap.org/r/dcaegen2/services/heartbeat \r
 \r
 give executable permission to mvn-phase-script.sh if not there\r
 already\r
index ab523ef..23d28d6 100644 (file)
@@ -72,7 +72,7 @@ Download a copy of the latest trapd image from gerrit in it's standard runtime l
 
     ``cd /opt/app``
 
-    ``git clone ssh://<your linux foundation id>@gerrit.onap.org:29418/dcaegen2/collectors/snmptrap snmptrap``
+    ``git clone --depth 1 ssh://<your linux foundation id>@gerrit.onap.org:29418/dcaegen2/collectors/snmptrap snmptrap``
 
 "Un-dockerize"
 """"""""""""""