Skip to content

Commit 22e4699

Browse files
authored
Merge pull request #81 from jaxxstorm/u/jaxxstorm/deps
Add glide dependencies
2 parents 94b960c + 216b1d4 commit 22e4699

File tree

4 files changed

+93
-2
lines changed

4 files changed

+93
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
kube-bench
22
*.swp
3+
vendor
4+
dist

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ You can either install kube-bench through a dedicated container, or compile it f
2323
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>```.
2424

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

3134
## Usage

glide.lock

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

glide.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package: github.com/aquasecurity/kube-bench
2+
import:
3+
- package: github.com/fatih/color
4+
version: ^1.5.0
5+
- package: github.com/golang/glog
6+
- package: github.com/jinzhu/gorm
7+
version: ^1.0.0
8+
subpackages:
9+
- dialects/postgres
10+
- package: github.com/spf13/cobra
11+
version: ^0.0.1
12+
- package: github.com/spf13/viper
13+
version: ^1.0.0
14+
- package: gopkg.in/yaml.v2

0 commit comments

Comments
 (0)