From 45e1fe61b928e12758bfdc36a561690106d31979 Mon Sep 17 00:00:00 2001 From: Jianquan Ye Date: Wed, 22 Sep 2021 16:36:58 +0800 Subject: [PATCH] Add gdb and pyrasite to ptf image --- .gitignore | 4 ++++ dockers/docker-ptf/Dockerfile.j2 | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ced7ef1651e2..58d18cf69435 100644 --- a/.gitignore +++ b/.gitignore @@ -82,3 +82,7 @@ files/build/tmp dockers/**/buildinfo platform/**/buildinfo sonic-slave*/**/buildinfo + +# Dev tools +.vscode/ +.idea/ diff --git a/dockers/docker-ptf/Dockerfile.j2 b/dockers/docker-ptf/Dockerfile.j2 index e14959d4f3be..f403054dbb37 100644 --- a/dockers/docker-ptf/Dockerfile.j2 +++ b/dockers/docker-ptf/Dockerfile.j2 @@ -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