You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got it to work by following dockbeat pattern and adding 2 files - Dockerfile and elasticbeat-docker.yml. Not sure how to do a clean PR cause of docker namespacing issues, but here's the quick and dirty (I'm sure these files could be cleaned up a lot).
Dockerfile:
FROM golang:1.7
# 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/radoondas/elasticbeat
RUN cd $GOPATH/src/github.com/radoondas/elasticbeat && make && make
RUN mkdir -p /etc/elasticbeat/ \
&& cp $GOPATH/src/github.com/radoondas/elasticbeat/elasticbeat /usr/local/bin/elasticbeat \
&& cp $GOPATH/src/github.com/radoondas/elasticbeat/elasticbeat-docker.yml /etc/elasticbeat/elasticbeat.yml \
&& cp $GOPATH/src/github.com/radoondas/elasticbeat/etc/elasticbeat.template.json /etc/elasticbeat/
WORKDIR /etc/elasticbeat
ENTRYPOINT elasticbeat
CMD [ "-c", "elasticbeat.yml", "-e" ]
I'd love to see this beat be docker-able like:
https://github.com/Ingensi/dockbeat
The text was updated successfully, but these errors were encountered: