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
Rewrite the CLI tutorials for a Docker-based installation #440 (#633)
* Add --print option to the output scanpipe command #440
Signed-off-by: Thomas Druez <tdruez@nexb.com>
* Rewrite the Analyze Codebase CLI tutorial for a Docker setup #440
Signed-off-by: Thomas Druez <tdruez@nexb.com>
* Rewrite the Analyze Docker Image CLI tutorial for a Docker setup #440
Signed-off-by: Thomas Druez <tdruez@nexb.com>
Copy file name to clipboardExpand all lines: docs/tutorial_cli_analyze_codebase.rst
+44-22Lines changed: 44 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,31 +7,41 @@ The focus of this tutorial is to guide you through scanning a codebase package
7
7
using ScanCode.io.
8
8
9
9
.. note::
10
-
This tutorial assumes you have a current version of ScanCode.io installed
11
-
locally on your machine. If you do not have it installed,
12
-
see our :ref:`installation` guide for instructions.
10
+
This tutorial assumes you have a recent version of ScanCode.io installed
11
+
locally on your machine and **running with Docker**.
12
+
If you do not have it installed, see our :ref:`installation` guide for instructions.
13
13
14
14
Requirements
15
15
------------
16
+
16
17
Before you follow the instructions in this tutorial, you need to:
17
18
18
19
- Install **ScanCode.io** locally
19
-
- Download the following **package archive** and save it to your home directory: `asgiref-3.3.0-py3-none-any.whl <https://files.pythonhosted.org/packages/c0/e8/578887011652048c2d273bf98839a11020891917f3aa638a0bc9ac04d653/asgiref-3.3.0-py3-none-any.whl>`_
20
20
- Have **Shell access** on the machine where ScanCode.io is installed
21
21
22
22
Instructions
23
23
------------
24
24
25
-
- Open a shell in the ScanCode.io installation directory and activate the
26
-
virtual environment - **virtualenv**:
25
+
- Create a new directory in your home directory that will be used to put the input code
26
+
to be scanned.
27
+
28
+
.. code-block:: console
29
+
30
+
$ mkdir -p ~/codedrop/
31
+
32
+
- Download the following **package archive** and save it to the :guilabel:`~/codedrop/`
Copy file name to clipboardExpand all lines: docs/tutorial_cli_analyze_docker_image.rst
+37-31Lines changed: 37 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,32 +8,42 @@ a test Docker image by following the steps below and, along the way,
8
8
learn some of the ScanCode.io basic commands.
9
9
10
10
.. note::
11
-
This tutorial assumes you have a current version of ScanCode.io installed
12
-
locally on your machine. If you do not have it installed,
13
-
see our :ref:`installation` guide for instructions.
11
+
This tutorial assumes you have a recent version of ScanCode.io installed
12
+
locally on your machine and **running with Docker**.
13
+
If you do not have it installed, see our :ref:`installation` guide for instructions.
14
14
15
15
Requirements
16
16
------------
17
17
18
18
To successfully complete this tutorial, you first need to:
19
19
20
20
- Install **ScanCode.io** locally
21
-
- Download the following **test Docker image** and save it to your home directory: `30-alpine-nickolashkraus-staticbox-latest.tar <https://github.com/nexB/scancode.io-tutorial/releases/download/sample-images/30-alpine-nickolashkraus-staticbox-latest.tar>`_
22
21
- Have **Shell access** on the machine where ScanCode.io is installed
23
22
24
23
Instructions
25
24
------------
26
25
27
-
- Open a shell in the ScanCode.io installation directory and activate the
28
-
virtual environment - **virtualenv**:
26
+
- Create a new directory in your home directory that will be used to put the input code
27
+
to be scanned.
29
28
30
29
.. code-block:: console
31
30
32
-
$ source bin/activate
31
+
$ mkdir -p ~/codedrop/
32
+
33
+
- Download the following **test Docker image** and save it to the :guilabel:`~/codedrop/`
0 commit comments