diff options
author | Pratik Raj <rajpratik71@gmail.com> | 2020-05-28 11:06:05 +0530 |
---|---|---|
committer | Pratik Raj <rajpratik71@gmail.com> | 2020-05-28 11:34:13 +0530 |
commit | d162188e32c21f9a89d4566f318f87bbfd5077ec (patch) | |
tree | 2e27bb16f18f7b624a1f8a178f087a560907da60 /docs/sections | |
parent | 1a06c541dddd9f14ffebc31436707e5897715e04 (diff) |
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 <rajpratik71@gmail.com>
Change-Id: Ie6dbf4823709154443e604262fe64be02a97d5a0
Diffstat (limited to 'docs/sections')
-rw-r--r-- | docs/sections/services/heartbeat-ms/build_setup.rst | 2 | ||||
-rw-r--r-- | docs/sections/services/snmptrap/installation.rst | 2 |
2 files changed, 2 insertions, 2 deletions
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://<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" """""""""""""" |