Skip to content

Commit

Permalink
added dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdalert committed Jun 8, 2015
1 parent a94d8f6 commit ec3b270
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang

MAINTAINER Brent Salisbury <[email protected]>

ADD . /go/src/github.com/nerdalert/nflow-generator

RUN go get github.com/Sirupsen/logrus \
&& go get github.com/jessevdk/go-flags \
&& go install github.com/nerdalert/nflow-generator

ENTRYPOINT ["/go/bin/nflow-generator"]
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
## Usage

### Docker Image Run (Easiest)

Simply run in a container and pass any arguments at runtime. Below is an example passing the `--help` flag:

```
docker run -it --rm networkstatic/nflow_generator --help
```

To generate mock flow data simply add the target IP and port:

```
docker run -it --rm networkstatic/nflow_generator -t <ip> -p <port>
```

### Build

Install [Go](http://golang.org/doc/install)
Expand Down

0 comments on commit ec3b270

Please sign in to comment.