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
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM golang:1.11-alpine

# install build dependencies
RUN apk --no-cache add git curl build-base bash

# install glide
RUN curl https://glide.sh/get | sh

# get sqlbeat
# WORKAROUND! github.com/adibendahan/sqlbeat triggers a error with go get
# RUN go get github.com/adibendahan/sqlbeat
RUN git clone https://github.com/adibendahan/sqlbeat.git /go/src/github.com/adibendahan/sqlbeat
RUN go get golang.org/x/crypto/md4
# WORKAROUND END :) Signed by llonchj

WORKDIR /go/src/github.com/adibendahan/sqlbeat

RUN glide update --no-recursive
RUN make

FROM alpine:latest
RUN apk --no-cache add ca-certificates tzdata

COPY --from=0 /go/src/github.com/adibendahan/sqlbeat/sqlbeat /usr/local/bin/

ADD sqlbeat.yml /etc/sqlbeat.yml

CMD ["/usr/local/bin/sqlbeat", "-e", "-c", "/etc/sqlbeat.yml"]