Skip to content

Latest commit

 

History

History
70 lines (50 loc) · 1.87 KB

installation.md

File metadata and controls

70 lines (50 loc) · 1.87 KB

Installation

Nix/NixOS

Direct issues installing chain-bench via nix through the channels mentioned here

You can use nix on Linux or macOS and on other platforms unofficially.

nix-env --install -A nixpkgs.chain-bench

Or through your configuration as usual

NixOS:

  # your other config ...
  environment.systemPackages = with pkgs; [
    # your other packages ...
    chain-bench
  ];

home-manager:

  # your other config ...
  home.packages = with pkgs; [
    # your other packages ...
    chain-bench
  ];

Binary

Download the archive file for your operating system/architecture from here.

Unpack the archive, and put the binary somewhere in your $PATH (on UNIX-y systems, /usr/local/bin or the like). Make sure it has execution bits turned on.

From source

mkdir -p $GOPATH/src/github.com/aquasecurity
cd $GOPATH/src/github.com/aquasecurity
git clone --depth 1 https://github.com/aquasecurity/chain-bench
cd chain-bench/cmd/chain-bench/
export GO111MODULE=on
go install

From source with go install

With a sufficient version of go you can install and build with go install github.com/aquasecurity/chain-bench/cmd/chain-bench@latest

Docker

Docker Hub

docker pull aquasec/chain-bench:latest

Example:

docker run --rm aquasec/chain-bench:latest scan --repository-url <REPOSITORY_URL> --access-token <TOKEN>