Skip to content

Commit

Permalink
[spytest] Create new sonic-mgmt docker for running spytests (#4212)
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Allen <[email protected]>
  • Loading branch information
daall authored Mar 4, 2020
1 parent b08bedb commit f906a75
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
29 changes: 29 additions & 0 deletions dockers/docker-sonic-mgmt-spytest/Dockerfile.j2
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions rules/docker-sonic-mgmt-spytest.mk
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit f906a75

Please sign in to comment.