Skip to content

Commit 6d24f6a

Browse files
Add pre-built docker usage
1 parent f2cb311 commit 6d24f6a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ This repository holds a few example Python scripts that use Contrast's REST APIs
1010
You can run these scripts locally with a Python install, or, in a container with the provided `Dockerfile`
1111

1212
### 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
1320
```bash
1421
docker build . --tag contrast-scripts # Build the container
1522
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

Comments
 (0)