Skip to content

Commit

Permalink
Merge pull request #81 from jaxxstorm/u/jaxxstorm/deps
Browse files Browse the repository at this point in the history
Add glide dependencies
  • Loading branch information
lizrice authored Jan 11, 2018
2 parents 94b960c + 216b1d4 commit 22e4699
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
kube-bench
*.swp
vendor
dist
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ You can either install kube-bench through a dedicated container, or compile it f
Run ```docker run --rm -v `pwd`:/host aquasec/kube-bench:latest```. This will copy the kube-bench binary and configuration to you host. You can then run ```./kube-bench <master|node>```.

2. Install from sources:
If Go is installed on the target machines, you can simply clone this repository and run as follows:
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)):
```go get github.com/aquasecurity/kube-bench```
```cp $GOROOT/bin/kube-bench .```
```go get github.com/Masterminds/glide```
```cd $GOPATH/src/github.com/aquasecurity/kube-bench```
```$GOPATH/bin/glide install```
```go build -o kube-bench . ```
```./kube-bench <master|node>```

## Usage
Expand Down
72 changes: 72 additions & 0 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions glide.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package: github.com/aquasecurity/kube-bench
import:
- package: github.com/fatih/color
version: ^1.5.0
- package: github.com/golang/glog
- package: github.com/jinzhu/gorm
version: ^1.0.0
subpackages:
- dialects/postgres
- package: github.com/spf13/cobra
version: ^0.0.1
- package: github.com/spf13/viper
version: ^1.0.0
- package: gopkg.in/yaml.v2

0 comments on commit 22e4699

Please sign in to comment.