File tree Expand file tree Collapse file tree 5 files changed +28
-3
lines changed Expand file tree Collapse file tree 5 files changed +28
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
ADD . /go/src/github.com/nerdalert/nflow-generator
6
6
7
- RUN go get github.com/Sirupsen /logrus \
7
+ RUN go get github.com/sirupsen /logrus \
8
8
&& go get github.com/jessevdk/go-flags \
9
9
&& go install github.com/nerdalert/nflow-generator
10
10
Original file line number Diff line number Diff line change @@ -12,12 +12,16 @@ Simply run in a container and pass any arguments at runtime. Below is an example
12
12
13
13
```
14
14
docker run -it --rm networkstatic/nflow-generator --help
15
+ # or podman/quay repos
16
+ podman run -it --rm /quay.io/networkstatic/nflow-generator --help
15
17
```
16
18
17
19
To generate mock flow data simply add the target IP and port:
18
20
19
21
```
20
22
docker run -it --rm networkstatic/nflow-generator -t <ip> -p <port>
23
+ # or podman/quay repos
24
+ podman run -it --rm /quay.io/networkstatic/nflow-generator -t <ip> -p <port>
21
25
```
22
26
23
27
### Download the binary
@@ -28,7 +32,7 @@ You can download the Linux binary here [nflow-generator-x86_64-linux](https://gi
28
32
Install [ Go] ( http://golang.org/doc/install ) , then:
29
33
30
34
git clone https://github.com/nerdalert/nflow-generator.git
31
- cd <dir>
35
+ cd nflow-generator
32
36
go build
33
37
34
38
Go build will leave a binary in the root directory that can be run.
Original file line number Diff line number Diff line change
1
+ module github.com/nerdalert/nflow-generator
2
+
3
+ go 1.12
4
+
5
+ require (
6
+ github.com/jessevdk/go-flags v1.5.0
7
+ github.com/sirupsen/logrus v1.8.1
8
+ )
Original file line number Diff line number Diff line change
1
+ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
2
+ github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
3
+ github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc =
4
+ github.com/jessevdk/go-flags v1.5.0 /go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4 =
5
+ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
6
+ github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
7
+ github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE =
8
+ github.com/sirupsen/logrus v1.8.1 /go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0 =
9
+ github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w =
10
+ github.com/stretchr/testify v1.2.2 /go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs =
11
+ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
12
+ golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4 h1:EZ2mChiOa8udjfp6rRmswTbtZN/QzUQp4ptM4rnjHvc =
13
+ golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4 /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
import (
4
- "github.com/Sirupsen /logrus"
4
+ "github.com/sirupsen /logrus"
5
5
)
6
6
7
7
var log = logrus .New ()
You can’t perform that action at this time.
0 commit comments