summaryrefslogtreecommitdiffstats
path: root/docs/sections/services/snmptrap
diff options
context:
space:
mode:
authorPratik Raj <rajpratik71@gmail.com>2020-06-06 21:59:50 +0530
committerPratik Raj <rajpratik71@gmail.com>2020-06-06 21:59:50 +0530
commit9dc682d7bff7da09bc49838dc0d8d38c6d76c2dd (patch)
treedb740e1b4a5c06d0210e0ec0563ad96fcd769afc /docs/sections/services/snmptrap
parent47e2053949bf4a490733fbe1ae2dfc5d65436c1d (diff)
optimize size and time using "--no-cache-dir"
Using "--no-cache-dir" flag in pip install ,make sure dowloaded packages by pip don't cached on system . This is a best practise which make sure to fetch ftom repo instead of using local cached one . Further , in case of Docker Containers , by restricing caching , we can reduce image size. In term of stats , it depends upon the number of python packages multiplied by their respective size . e.g for heavy packages with a lot of dependencies it reduce a lot by don't caching pip packages. Further , more detail information can be found at https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6 Issue-ID: DCAEGEN2-2294 Signed-off-by: Pratik Raj <rajpratik71@gmail.com> Change-Id: Ifeda4876507f89279c550e15ec76508277098ca6
Diffstat (limited to 'docs/sections/services/snmptrap')
-rw-r--r--docs/sections/services/snmptrap/installation.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/sections/services/snmptrap/installation.rst b/docs/sections/services/snmptrap/installation.rst
index ab523ef4..602730d3 100644
--- a/docs/sections/services/snmptrap/installation.rst
+++ b/docs/sections/services/snmptrap/installation.rst
@@ -61,9 +61,9 @@ To install prerequisites:
``export PATH=<path to Python 3.6 binary>:$PATH``
- ``pip3 install requests==2.18.3``
+ ``pip3 install --no-cache-dir requests==2.18.3``
- ``pip3 install pysnmp==4.4.5``
+ ``pip3 install --no-cache-dir pysnmp==4.4.5``
Download latest trapd version from Gerrit
"""""""""""""""""""""""""""""""""""""""""