Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM golang:1.8

WORKDIR /go/src/app
RUN go get github.com/betheroot/pghoney && go build github.com/betheroot/pghoney

# we do it this way so that you can easily edit the config
# file locally (in the .sample file) and install it into the
# container. for example, change the listening port,
# listening address, and the like.
COPY pghoney.conf.sample pghoney.conf

# feel free to comment this line out if you wish to use hpfeeds
RUN sed -i 's/"enabled":true/"enabled":false/' pghoney.conf
CMD [ "pghoney", "-config", "pghoney.conf" ]