# Beats dockerfile used for testing
FROM golang:1.6.2
MAINTAINER Nicolas Ruflin <ruflin@elastic.co>

RUN set -x && \
    apt-get update && \
    apt-get install -y netcat python-virtualenv python-pip && \
    apt-get clean

## Install go package dependencies
RUN set -x \
  go get \
	github.com/pierrre/gotestcover \
	github.com/tsg/goautotest \
	golang.org/x/tools/cmd/vet

ENV PYTHON_ENV=/tmp/python-env


RUN test -d ${PYTHON_ENV} || virtualenv ${PYTHON_ENV}
RUN . ${PYTHON_ENV}/bin/activate && pip install nose jinja2 PyYAML nose-timer

# Packetbeat specifics
RUN apt-get install -y libpcap-dev geoip-database && apt-get clean

