Update doc/faq and config comments
[nfvbench.git] / Dockerfile
1 # docker file for creating a container that has nfvbench installed and ready to use
2 FROM ubuntu:16.04
3
4 COPY . /nfvbench
5
6 ENV TREX_VER "v2.27"
7
8 RUN apt-get update && apt-get install -y \
9        git \
10        kmod \
11        pciutils \
12        python \
13        python-pip \
14        vim \
15        wget \
16        net-tools \
17        && mkdir -p /opt/trex \
18        && wget --no-cache https://trex-tgn.cisco.com/trex/release/$TREX_VER.tar.gz \
19        && tar xzf $TREX_VER.tar.gz -C /opt/trex \
20        && rm -f /$TREX_VER.tar.gz \
21        && rm -f /opt/trex/$TREX_VER/trex_client_$TREX_VER.tar.gz \
22        && cp -a /opt/trex/$TREX_VER/automation/trex_control_plane/stl/trex_stl_lib /usr/local/lib/python2.7/dist-packages/ \
23        && rm -rf /opt/trex/$TREX_VER/automation/trex_control_plane/stl/trex_stl_lib \
24        && sed -i -e "s/2048 /512 /" -e "s/2048\"/512\"/" /opt/trex/$TREX_VER/trex-cfg \
25        && pip install -U pip pbr \
26        && pip install -U setuptools \
27        && cd /nfvbench && pip install -e . \
28        && python ./docker/cleanup_generators.py \
29        && rm -rf /nfvbench/.git \
30        && apt-get remove -y wget git \
31        && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/*
32
33 ENV TREX_STL_EXT_PATH "/opt/trex/$TREX_VER/external_libs"
34
35 CMD ["tail", "-f", "/dev/null"]