21 lines
639 B
Docker
21 lines
639 B
Docker
# Beats dockerfile used for testing
|
|
FROM golang:1.10.3
|
|
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
|