From f906a758cdeab9c00579a4219a5781538696939e Mon Sep 17 00:00:00 2001 From: Danny Allen Date: Wed, 4 Mar 2020 11:47:31 -0800 Subject: [PATCH] [spytest] Create new sonic-mgmt docker for running spytests (#4212) Signed-off-by: Danny Allen --- .../docker-sonic-mgmt-spytest/Dockerfile.j2 | 29 +++++++++++++++++++ rules/docker-sonic-mgmt-spytest.mk | 6 ++++ 2 files changed, 35 insertions(+) create mode 100644 dockers/docker-sonic-mgmt-spytest/Dockerfile.j2 create mode 100644 rules/docker-sonic-mgmt-spytest.mk diff --git a/dockers/docker-sonic-mgmt-spytest/Dockerfile.j2 b/dockers/docker-sonic-mgmt-spytest/Dockerfile.j2 new file mode 100644 index 000000000000..4f6b0d8fffac --- /dev/null +++ b/dockers/docker-sonic-mgmt-spytest/Dockerfile.j2 @@ -0,0 +1,29 @@ +FROM docker-sonic-mgmt:latest + +ENV CC=gcc CPP=cpp CXX=c++ LDSHARED="gcc -pthread -shared" PYMSSQL_BUILD_WITH_BUNDLED_FREETDS=1 + +RUN sudo -H pip install \ + "cryptography>=2.5" \ + "future>=0.16.0" \ + gitpython \ + jinja2 \ + jsonpatch \ + "netmiko==2.4.2" \ + prettytable \ + psutil \ + pycryptodome \ + pyfiglet \ + "pylint==1.8.1" \ + pyro4 \ + pytest-repeat \ + "pytest-xdist==1.28.0" \ + "pytest==4.6.5" \ + redis \ + requests \ + rpyc \ + tabulate \ + textfsm + +RUN sudo apt-get update && sudo apt-get install -y \ + inetutils-ping \ + telnet diff --git a/rules/docker-sonic-mgmt-spytest.mk b/rules/docker-sonic-mgmt-spytest.mk new file mode 100644 index 000000000000..c3906263eff3 --- /dev/null +++ b/rules/docker-sonic-mgmt-spytest.mk @@ -0,0 +1,6 @@ +# SPYTest Management Docker + +DOCKER_MGMT_SPYTEST = docker-sonic-mgmt-spytest.gz +$(DOCKER_MGMT_SPYTEST)_PATH = $(DOCKERS_PATH)/docker-sonic-mgmt-spytest +$(DOCKER_MGMT_SPYTEST)_LOAD_DOCKERS += $(DOCKER_SONIC_MGMT) +SONIC_DOCKER_IMAGES += $(DOCKER_MGMT_SPYTEST)