Docker Image - microsoft/OSSGadget Wiki

If you don't have the development environment configured or you want to run OSSGadget without additional overhead, you can use Docker. This repository contains a "Dockerfile" which allows us to build an image and use that to run a container with the latest code.

# Clone repository
$> git clone
$> cd OSSGadget

# Build OSSGadget and create a docker image
$> docker build -t ossgadget .

# Run container
$> docker run -it —rm ossgadget /bin/bash

# Inside container - run oss-download binary
[email protected]:/app/src# oss-download <args>

For certain tools, like OSS Health, you'll also need to set the GITHUB_ACCESS_TOKEN environment variable when you create the container.