From 621daa9b7bdcc6f0d316c6ac5e56b12820bb3b66 Mon Sep 17 00:00:00 2001 From: jose nazario Date: Tue, 3 Jul 2018 16:39:32 -0400 Subject: [PATCH] dockerize --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fe0879f --- /dev/null +++ b/Dockerfile @@ -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" ]