Create script for SBOM and Vulnerabilities 66/10766/1
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Fri, 24 Mar 2023 12:43:28 +0000 (13:43 +0100)
committerMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Fri, 24 Mar 2023 12:43:35 +0000 (13:43 +0100)
analysis of the solution docker images

- add README with prerequisites and usage

Issue-ID: OAM-318
Change-Id: I51ca24700bff5a4032a1f1d7f1665216aa47360b
Signed-off-by: Martin Skorupski <martin.skorupski@highstreet-technologies.com>
code/container-analysis/README.md [new file with mode: 0644]

diff --git a/code/container-analysis/README.md b/code/container-analysis/README.md
new file mode 100644 (file)
index 0000000..d48fd6a
--- /dev/null
@@ -0,0 +1,31 @@
+# Container Analysis
+
+This directory contains a script to output Software Bill of Materials (SBOM)tree and vulnerabilities of running docker images.
+
+## Prerequisites
+
+The script depend on the [Syft](https://github.com/anchore/syft) project and the [Grype](https://github.com/anchore/grype) project.
+
+### Installing syft
+
+```
+curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
+```
+
+### Installing grype
+
+```
+curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
+```
+
+## Usage
+
+Once your docker containers are up and running just use:
+
+```
+./container-analysis.sh
+```
+
+Note: It takes time ...
+
+You will find the results in the 'out' folder.
\ No newline at end of file