Skip to content

Commit

Permalink
[docker-sonic-mgmt] install ptf framework in mgmt container and upgra…
Browse files Browse the repository at this point in the history
…de ptf (#3239)

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
  • Loading branch information
stepanblyschak authored and lguohan committed Jul 30, 2019
1 parent fd3e5c3 commit 67463f1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
27 changes: 25 additions & 2 deletions dockers/docker-sonic-mgmt/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ RUN apt-get install -y \
libxslt1-dev \
python-setuptools \
build-essential \
curl
curl \
cmake \
tcpdump \
python-dev \
python-scapy

# For JNLP launcher
RUN apt-get install -y default-jre
Expand All @@ -46,7 +50,26 @@ RUN pip install ipaddr \
jinja2==2.7.2 \
cffi==1.10.0 \
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
RUN pip install azure-kusto-data==0.0.13 \
Expand Down
2 changes: 1 addition & 1 deletion rules/docker-sonic-mgmt.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# docker image for sonic-mgmt
DOCKER_SONIC_MGMT = docker-sonic-mgmt.gz
$(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)
2 changes: 1 addition & 1 deletion src/ptf

0 comments on commit 67463f1

Please sign in to comment.