Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
448 changes: 448 additions & 0 deletions docs/TECHNICAL_COMPARISON_REPORT.md

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions docs/tool-comparison/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Tool Comparison

How does the dependency-resolver compare to other tools with similar purposes?

## Examples

### gmt-unicorn

In the subfolder [gmt-unicorn](./gmt-gunicorn/) you can find the results of different tools targetting the Docker container "green-coding-gunicorn-container".

**Syft:**

```sh
# syft-json
syft $(docker container inspect -f "{{.Image}}" green-coding-gunicorn-container) -o syft-json > docs/tool-comparison/gmt-gunicorn/syft-json.json

# spdx-json
syft $(docker container inspect -f "{{.Image}}" green-coding-gunicorn-container) -o spdx-json > docs/tool-comparison/gmt-gunicorn/syft-spdx_json.json

# github-json
syft $(docker container inspect -f "{{.Image}}" green-coding-gunicorn-container) -o github-json > docs/tool-comparison/gmt-gunicorn/syft-github_json.json

# Using custom template
syft $(docker container inspect -f "{{.Image}}" green-coding-gunicorn-container) -o template -t docs/tool-comparison/syft-custom-template.tmpl > docs/tool-comparison/gmt-gunicorn/syft-custom.json
```

**Trivy:**

```sh
# native
trivy image --format spdx-json --output docs/tool-comparison/gmt-gunicorn/trivy-spdx_json.json $(docker container inspect -f "{{.Image}}" green-coding-gunicorn-container)

# docker run
docker run --rm -v trivy-cache:/root/.cache/ -v /var/run/docker.sock:/var/run/docker.sock -v $PWD:/opt/app aquasec/trivy:latest image --format spdx-json --output /opt/app/docs/tool-comparison/gmt-gunicorn/trivy-spdx_json.json $(docker container inspect -f "{{.Image}}" green-coding-gunicorn-container)
```

### kadai-rest-spring-example-boot

See repo: <https://gitlab.com/envite-consulting/sustainable-software-architecture/kadai/kadai-resource-efficiency/-/tree/main/kadai-rest-spring-example-boot>

Outputs are placed in sub-folder [kadai](./kadai/).

**Syft:**

```sh
# syft-json
syft registry.gitlab.com/envite-consulting/sustainable-software-architecture/kadai/kadai-example-spring-boot:kadai-10.1.0 -o syft-json > docs/tool-comparison/kadai/syft-json.json
```
Loading