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:
parent
14aef408e8
commit
42f479596c
@ -53,11 +53,22 @@ See previous section on [Running kube-bench](./running.md#running-kube-bench) fo
|
|||||||
|
|
||||||
### Installing from sources
|
### 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
|
```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
|
go get github.com/aquasecurity/kube-bench
|
||||||
|
|
||||||
|
# Change to the kube-bench directory
|
||||||
cd $GOPATH/src/github.com/aquasecurity/kube-bench
|
cd $GOPATH/src/github.com/aquasecurity/kube-bench
|
||||||
|
|
||||||
|
# Build the kube-bench binary
|
||||||
go build -o kube-bench .
|
go build -o kube-bench .
|
||||||
|
|
||||||
# See all supported options
|
# See all supported options
|
||||||
|
Loading…
Reference in New Issue
Block a user