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
- Using [uv](https://github.com/astral-sh/uv):
43
-
```bash
44
-
uv tool install .
45
-
```
46
-
47
-
- Using [pipx](https://github.com/pypa/pipx):
48
-
```bash
49
-
pipx install .
50
-
```
51
-
52
-
- Using pip (not recommended, as it can break your system packages):
53
-
```bash
54
-
pip install .
55
-
```
47
+
- Using [pipx](https://github.com/pypa/pipx):
48
+
```bash
49
+
pipx install .
50
+
```
56
51
57
-
!!! docker "Docker image"
58
-
Create a new directory which will be mounted in the docker container and start the container:
52
+
- Using pip (not recommended, as it can break your system packages):
59
53
```bash
60
-
mkdir codesectools_quick_start_guide
61
-
cd codesectools_quick_start_guide
62
-
cstools docker
54
+
pip install .
63
55
```
64
56
65
-
Then inside the container:
57
+
## 3. First run
58
+
59
+
??? docker "Docker container"
60
+
You can start a Docker container to run CodeSecTools to analyze the current directory:
66
61
```bash
67
-
cd codesectools_quick_start_guide
62
+
cd$TARGET_DIR
63
+
cstools docker
64
+
# Or
65
+
cstools docker --target $TARGET_DIR
68
66
```
69
67
70
-
Only data inside `./codesectools_quick_start_guide` are saved.
68
+
Use `--isolation` flag to start Docker container without networking, make sure to download external resources on the host (which has internet connexion) before.
71
69
70
+
Only the following directories are mounted in the Docker container:
72
71
73
-
## 3. First run
72
+
- `$TARGET_DIR` (your source code directory)
73
+
- `~/.codesectools` (your CodeSecTools data, in particular storing the analysis result)
74
74
75
75
!!! abstract "Install completion (optional)"
76
76
*Completion is already installed in the Docker container.*
0 commit comments