Add gdb and pyrasite to ptf image (#8816)

This commit is contained in:
Ye Jianquan 2021-09-24 17:10:48 +08:00 committed by GitHub
parent ee9250e8cc
commit 38500fa92e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

4
.gitignore vendored
View File

@ -82,3 +82,7 @@ files/build/tmp
dockers/**/buildinfo
platform/**/buildinfo
sonic-slave*/**/buildinfo
# Dev tools
.vscode/
.idea/

View File

@ -57,7 +57,8 @@ RUN sed --in-place 's/httpredir.debian.org/debian-archive.trafficmanager.net/' /
ntpdate \
arping \
bridge-utils \
libteam-utils
libteam-utils \
gdb
# Install all python modules from pypi. python-scapy is exception, ptf debian package requires python-scapy
# TODO: Clean up this step
@ -106,6 +107,7 @@ RUN rm -rf /debs \
&& pip install pyaml \
&& pip install pybrctl pyro4 rpyc yabgp \
&& pip install unittest-xml-reporting \
&& pip install pyrasite \
&& mkdir -p /opt \
&& cd /opt \
&& wget https://raw.githubusercontent.com/p4lang/ptf/master/ptf_nn/ptf_nn_agent.py