-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
23 lines (19 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM golang:1.10
# install glide
RUN go get -v github.com/Masterminds/glide \
&& apt-get update \
&& apt-get install -y python-virtualenv \
&& rm -rf /var/lib/apt/lists/* \
&& cd $GOPATH/src/github.com/Masterminds/glide \
&& git checkout tags/0.10.2 \
&& go install \
&& cd -
COPY . $GOPATH/src/github.com/narmi/cloudwatchmetricbeat
RUN cd $GOPATH/src/github.com/narmi/cloudwatchmetricbeat && make collect && make && make update
RUN mkdir -p /etc/cloudwatchmetricbeat/ \
&& cp $GOPATH/src/github.com/narmi/cloudwatchmetricbeat/cloudwatchmetricbeat /usr/local/bin/cloudwatchmetricbeat \
&& cp $GOPATH/src/github.com/narmi/cloudwatchmetricbeat/_meta/beat.yml /etc/cloudwatchmetricbeat/cloudwatchmetricbeat.yml \
&& cp $GOPATH/src/github.com/narmi/cloudwatchmetricbeat/cloudwatchmetricbeat.template.json /etc/cloudwatchmetricbeat/cloudwatchmetricbeat.template.json \
&& cp $GOPATH/src/github.com/narmi/cloudwatchmetricbeat/cloudwatchmetricbeat.template-es2x.json /etc/cloudwatchmetricbeat/cloudwatchmetricbeat.template-es2x.json
WORKDIR /etc/cloudwatchmetricbeat
ENTRYPOINT cloudwatchmetricbeat