2017-12-19 13:16:39 +01:00

22 lines
638 B
Docker

# Beats dockerfile used for testing
FROM golang:1.9.2
MAINTAINER Nicolas Ruflin <ruflin@elastic.co>
RUN set -x && \
apt-get update && \
apt-get install -y --no-install-recommends \
netcat python-pip virtualenv && \
apt-get clean
ENV PYTHON_ENV=/tmp/python-env
RUN test -d ${PYTHON_ENV} || virtualenv ${PYTHON_ENV}
COPY ./tests/system/requirements.txt /tmp/requirements.txt
# Upgrade pip to make sure to have the most recent version
RUN . ${PYTHON_ENV}/bin/activate && pip install -U pip
RUN . ${PYTHON_ENV}/bin/activate && pip install -Ur /tmp/requirements.txt
# Libbeat specific
RUN mkdir -p /etc/pki/tls/certs