summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorAce Lee <liyin11@huawei.com>2017-11-20 10:47:19 +0000
committerRoss Brattain <ross.b.brattain@intel.com>2017-12-16 09:36:59 +0000
commitd49ecc822d24bcd53675c0186a178ac8adc894c0 (patch)
tree27f9a153e55b08e3b318bfa147a42d5ac917de2d /docker/Dockerfile
parent74c0525b9f4ee426fde171d1cefc96dc8d6f3fd1 (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> (cherry picked from commit 75606db72e5d3afb6afe590e76b3baef3af3f5c6)
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index a58bbbc7b..a39dcf3f3 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"]