[docker-sonic-mgmt] install ptf framework in mgmt container and upgrade ptf (#3239)

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
This commit is contained in:
Stepan Blyshchak 2019-07-30 20:19:48 +03:00 committed by lguohan
parent fd3e5c3da6
commit 67463f18b2
3 changed files with 27 additions and 4 deletions

View File

@ -20,7 +20,11 @@ RUN apt-get install -y \
libxslt1-dev \ libxslt1-dev \
python-setuptools \ python-setuptools \
build-essential \ build-essential \
curl curl \
cmake \
tcpdump \
python-dev \
python-scapy
# For JNLP launcher # For JNLP launcher
RUN apt-get install -y default-jre RUN apt-get install -y default-jre
@ -46,7 +50,26 @@ RUN pip install ipaddr \
jinja2==2.7.2 \ jinja2==2.7.2 \
cffi==1.10.0 \ cffi==1.10.0 \
paramiko==2.1.2 \ paramiko==2.1.2 \
passlib passlib \
ipython==5.4.1 \
&& git clone https://github.com/p4lang/scapy-vxlan.git \
&& cd scapy-vxlan \
&& python setup.py install \
&& cd .. \
&& rm -fr scapy-vxlan \
&& wget https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz \
&& tar xvfz 1.0.0.tar.gz \
&& cd nanomsg-1.0.0 \
&& mkdir -p build \
&& cd build \
&& cmake .. \
&& make install \
&& ldconfig \
&& cd ../.. \
&& rm -fr nanomsg-1.0.0 \
&& rm -f 1.0.0.tar.gz \
&& pip install nnpy \
&& pip install dpkt
# Install Microsoft Azure Kusto Library for Python # Install Microsoft Azure Kusto Library for Python
RUN pip install azure-kusto-data==0.0.13 \ RUN pip install azure-kusto-data==0.0.13 \

View File

@ -1,5 +1,5 @@
# docker image for sonic-mgmt # docker image for sonic-mgmt
DOCKER_SONIC_MGMT = docker-sonic-mgmt.gz DOCKER_SONIC_MGMT = docker-sonic-mgmt.gz
$(DOCKER_SONIC_MGMT)_PATH = $(DOCKERS_PATH)/docker-sonic-mgmt $(DOCKER_SONIC_MGMT)_PATH = $(DOCKERS_PATH)/docker-sonic-mgmt
$(DOCKER_SONIC_MGMT)_DEPENDS += $(SONIC_DEVICE_DATA) $(DOCKER_SONIC_MGMT)_DEPENDS += $(SONIC_DEVICE_DATA) $(PTF)
SONIC_DOCKER_IMAGES += $(DOCKER_SONIC_MGMT) SONIC_DOCKER_IMAGES += $(DOCKER_SONIC_MGMT)

@ -1 +1 @@
Subproject commit aac6efd0a78bf51f63727e7a13dc79f91f13686e Subproject commit 36a3e3d9ac0447d28161d24028401239d756875f