From d162188e32c21f9a89d4566f318f87bbfd5077ec Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Thu, 28 May 2020 11:06:05 +0530 Subject: Issue-ID: DCAEGEN2-2261 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. 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 Change-Id: Ie6dbf4823709154443e604262fe64be02a97d5a0 --- docs/sections/services/heartbeat-ms/build_setup.rst | 2 +- docs/sections/services/snmptrap/installation.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/sections/services/heartbeat-ms/build_setup.rst b/docs/sections/services/heartbeat-ms/build_setup.rst index 6ab6a178..6033affc 100644 --- a/docs/sections/services/heartbeat-ms/build_setup.rst +++ b/docs/sections/services/heartbeat-ms/build_setup.rst @@ -25,7 +25,7 @@ Docker build procedure Clone the code using below command :: - git clone https://gerrit.onap.org/r/dcaegen2/services/heartbeat + git clone --depth 1 https://gerrit.onap.org/r/dcaegen2/services/heartbeat give executable permission to mvn-phase-script.sh if not there already diff --git a/docs/sections/services/snmptrap/installation.rst b/docs/sections/services/snmptrap/installation.rst index ab523ef4..23d28d65 100644 --- a/docs/sections/services/snmptrap/installation.rst +++ b/docs/sections/services/snmptrap/installation.rst @@ -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://@gerrit.onap.org:29418/dcaegen2/collectors/snmptrap snmptrap`` + ``git clone --depth 1 ssh://@gerrit.onap.org:29418/dcaegen2/collectors/snmptrap snmptrap`` "Un-dockerize" """""""""""""" -- cgit 1.2.3-korg