You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#2319#2324 by updating installation documentation of the
pip install section and other sections. Also updates repositor
level INSTALL file to have docker install instructions and
fixes other minor typos.
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Copy file name to clipboardExpand all lines: INSTALL.rst
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,10 @@
2
2
Installation
3
3
============
4
4
5
-
There are 3 main ways you can `install ScanCode <https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html>`_.
5
+
There are 4 main ways you can `install ScanCode <https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html>`_.
6
6
7
7
- Installation as an Application: Downloading Releases (Recommended)
8
+
- Docker Installation
8
9
- Installation as a library: via pip
9
10
- Installation from Source Code: Git Clone
10
11
@@ -32,14 +33,30 @@ Installation as an Application : Downloading Releases
32
33
- Linux/Mac : ``./scancode --help``
33
34
- Windows : ``scancode --help``
34
35
36
+
Docker Installation
37
+
-------------------
38
+
39
+
#. Download the Source Code as an archive from the `GitHub releases <https://github.com/nexB/scancode-toolkit/releases>`_ and unzip it, or via `git clone`.
40
+
41
+
#. Build the docker image from the `scancode-toolkit` directory.::
42
+
43
+
docker build -t scancode-toolkit .
44
+
45
+
#. Mount current working directory and run scan on mounted folder::
46
+
47
+
docker run -v $PWD/:/project scancode-toolkit -clpeui --json-pp /project/result.json /project
48
+
49
+
Note that the parameters *before* ``scancode-toolkit`` are used for docker,
50
+
those after will be forwarded to scancode.
51
+
35
52
Installation as a library: via pip
36
53
----------------------------------
37
54
38
55
#. Create a Python 3.6 Virtual Environment and activate the same::
0 commit comments