From d49ecc822d24bcd53675c0186a178ac8adc894c0 Mon Sep 17 00:00:00 2001 From: Ace Lee Date: Mon, 20 Nov 2017 10:47:19 +0000 Subject: 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 (cherry picked from commit 75606db72e5d3afb6afe590e76b3baef3af3f5c6) --- docker/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docker') 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"] -- cgit 1.2.3-korg