forked from Ingensi/dockbeat
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (15 loc) · 722 Bytes
/
Copy pathDockerfile
File metadata and controls
20 lines (15 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM golang:1.6.1
MAINTAINER Ingensi labs <contact@ingensi.com>
# install pyyaml
RUN cd /tmp && wget http://pyyaml.org/download/pyyaml/PyYAML-3.11.tar.gz && tar -zxvf PyYAML-3.11.tar.gz
RUN cd /tmp/PyYAML-3.11 && python setup.py install
# install glide
RUN go get github.com/Masterminds/glide
COPY . $GOPATH/src/github.com/ingensi/dockerbeat
RUN cd $GOPATH/src/github.com/ingensi/dockerbeat && make && make
RUN mkdir -p /etc/dockerbeat/ \
&& cp $GOPATH/src/github.com/ingensi/dockerbeat/dockerbeat /usr/local/bin/dockerbeat \
&& cp $GOPATH/src/github.com/ingensi/dockerbeat/dockerbeat-docker.yml /etc/dockerbeat/dockerbeat.yml
WORKDIR /etc/dockerbeat
ENTRYPOINT dockerbeat
CMD [ "-c", "dockerbeat.yml", "-e" ]