1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-21 23:58:06 +00:00

doc(install): Adding detail and example for build (#928)

- Added to the `Installing from sources`
- Includes `git clone` etc.
- Also includes comments

Signed-off-by: Dave Hay <david_hay@uk.ibm.com>
This commit is contained in:
Dave Hay 2021-07-07 08:56:33 +01:00 committed by GitHub
parent 14aef408e8
commit 42f479596c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,11 +53,22 @@ See previous section on [Running kube-bench](./running.md#running-kube-bench) fo
### Installing from sources
If Go is installed on the target machines, you can simply clone this repository and run as follows (assuming your [`GOPATH` is set](https://github.com/golang/go/wiki/GOPATH)):
If Go is installed on the target machines, you can simply clone this repository and run as follows (assuming your [`GOPATH` is set](https://github.com/golang/go/wiki/GOPATH)) as per this example:
```shell
# Create a target directory for the clone, inside the $GOPATH
mkdir -p $GOPATH/src/github.com/aquasecurity/kube-bench
# Clone this repository, using SSH
git clone git@github.com:aquasecurity/kube-bench.git $GOPATH/src/github.com/aquasecurity/kube-bench
# Install the pre-requisites
go get github.com/aquasecurity/kube-bench
# Change to the kube-bench directory
cd $GOPATH/src/github.com/aquasecurity/kube-bench
# Build the kube-bench binary
go build -o kube-bench .
# See all supported options