From 38500fa92ed9a5a139e97e26a5ec74ad4250cf49 Mon Sep 17 00:00:00 2001 From: Ye Jianquan Date: Fri, 24 Sep 2021 17:10:48 +0800 Subject: [PATCH] Add gdb and pyrasite to ptf image (#8816) --- .gitignore | 4 ++++ dockers/docker-ptf/Dockerfile.j2 | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ced7ef1651..58d18cf694 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 e14959d4f3..f403054dbb 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