summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorAce Lee <liyin11@huawei.com>2017-11-20 10:47:19 +0000
committerAce Lee <liyin11@huawei.com>2017-11-20 10:51:17 +0000
commit75606db72e5d3afb6afe590e76b3baef3af3f5c6 (patch)
treee5e8dc247fed816669f1b2831b2abfe23135893f /docker
parentb77826de37bde8683f15bd758951dfaf8af6402d (diff)
fix docker client don't have trex_client
JIRA: YARDSTICK-854 Add trex_client in docker, so we could run NSB testcase in docker container. Change-Id: Iac1393d6e3a175137973190936ab69a1f2ce8272 Signed-off-by: Ace Lee <liyin11@huawei.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 4ec6791e7..b1eb50592 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -48,5 +48,8 @@ ADD http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-d
COPY ./exec_tests.sh /usr/local/bin/
+ENV NSB_DIR="/opt/nsb_bin" \
+ PYTHONPATH="${PYTHONPATH}:${NSB_DIR}/trex_client:${NSB_DIR}/trex_client/stl"
+
WORKDIR ${REPOS_DIR}
CMD ["/usr/bin/supervisord"]