tree: 618d6e6b07947048f8e2ab9b44f6e032c91052b3 [path history] [tgz]
  1. viewer/
  2. container-analysis.sh
  3. README.md
code/container-analysis/README.md

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 project and the 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.

Viewer

If you would like to see a kind of summary, please run:

cd viewer
npm install
npm start

... and view in your browser

http://localhost:3000