forked from trivago/gollum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-dev
37 lines (26 loc) · 1.05 KB
/
Dockerfile-dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM golang:1.8
LABEL maintainer="[email protected]"
LABEL maintainer="[email protected]"
# install base packages / dependencies
RUN apt-get update \
&& apt-get install --no-install-recommends -y make git
# install pcap
RUN apt-get install -y libc-dev libpcap-dev
# install librdkafka
ADD http://launchpadlibrarian.net/234454186/librdkafka1_0.8.6-1.1_amd64.deb /src/librdkafka1_0.8.6-1.1_amd64.deb
ADD http://launchpadlibrarian.net/234454185/librdkafka-dev_0.8.6-1.1_amd64.deb /src/librdkafka-dev_0.8.6-1.1_amd64.deb
RUN dpkg -i /src/librdkafka1_0.8.6-1.1_amd64.deb \
&& dpkg -i /src/librdkafka-dev_0.8.6-1.1_amd64.deb
# install go dependencies
RUN go get -u github.com/golang/lint/golint
# cleanup
RUN rm -rf /var/lib/apt/lists/*
# copy code
COPY . /go/src/github.com/trivago/gollum/
# install gollum
WORKDIR /go/src/github.com/trivago/gollum
RUN cp contrib_loader.go.dist contrib_loader.go
RUN make current \
&& ln -s /go/src/github.com/trivago/gollum/gollum /usr/local/bin/gollum
# set ENTRYPOINT
ENTRYPOINT ["/usr/local/bin/gollum"]