From: Pratik Raj Date: Thu, 28 May 2020 05:36:05 +0000 (+0530) Subject: Issue-ID: DCAEGEN2-2261 optimization in git clone using --depth X-Git-Tag: 7.0.0-ONAP~39^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=d162188e32c21f9a89d4566f318f87bbfd5077ec;p=dcaegen2.git 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 --- 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" """"""""""""""