We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2cb311 commit 6d24f6aCopy full SHA for 6d24f6a
README.md
@@ -10,6 +10,13 @@ This repository holds a few example Python scripts that use Contrast's REST APIs
10
You can run these scripts locally with a Python install, or, in a container with the provided `Dockerfile`
11
12
### Container use
13
+
14
+#### Pre-built
15
+```bash
16
+docker run -it --env-file=contrast.env -v $PWD/output:/usr/src/app/output ghcr.io/contrast-security-oss/example-teamserver-api-scripts:main python <script.py> <...args...>
17
+```
18
19
+#### Local build
20
```bash
21
docker build . --tag contrast-scripts # Build the container
22
docker run -it --env-file=contrast.env -v $PWD/output:/usr/src/app/output contrast-scripts python <script.py> <...args...> # Run the container
0 commit comments