Skip to main content

Tools Included

  • ldb: Linked-list database for storing Knowledge Base (KB) data
  • minr: Mining tool for downloading and indexing open-source software (OSS) components
  • SCANOSS: Scanning engine for querying the KB

Quick Start

1. Build the Docker Image

2. Start the Container

3. Create a Knowledge Base

4. Download Test Files

Download and extract a file from the same archive to use as a scan target:

5. Scan the Original File

Scanning an unmodified file against the KB should produce a 100% file match:
Expected output:

6. Modify the File

7. Scan the Modified File

Scanning a modified file should produce a snippet match, reflecting partial code reuse:
Expected output:

8. Cleanup

End-to-End Example

Scanning Your Own Files

Copy Files into the Container

To scan files from your host machine, copy them into the container first:

Mount a Volume

To scan a directory of files without copying them individually, mount a volume when starting the container: