Install necessary tools inside Docker image

Change-Id: I7d7e0ae2e395ab190a6a4a1a1a743dddf222153b
This commit is contained in:
Ilya Shakhat 2017-04-04 15:10:45 +04:00
parent f9f059ee3d
commit 4f5005c779
1 changed files with 11 additions and 2 deletions

View File

@ -1,8 +1,17 @@
FROM python:3.5
MAINTAINER Ilya Shakhat <shakhat@gmail.com>
LABEL maintainer "Ilya Shakhat <shakhat@gmail.com>"
RUN echo "deb http://httpredir.debian.org/debian jessie non-free" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get -y install --no-install-recommends \
iperf \
iperf3 \
netperf \
python-openstackclient \
&& apt-get clean
ADD . /opt/shaker/
RUN pip install -r /opt/shaker/requirements.txt
RUN pip install -r /opt/shaker/requirements.txt flent
WORKDIR /opt/shaker/
RUN python setup.py install