From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bcmv-tmail01.ecl.ntt.co.jp (bcmv-tmail01.ecl.ntt.co.jp [124.146.185.148]) by dpdk.org (Postfix) with ESMTP id 669DD2C19 for ; Mon, 1 Oct 2018 07:02:01 +0200 (CEST) Received: from bcmv-ns01.ecl.ntt.co.jp (bcmv-ns01.ecl.ntt.co.jp [129.60.83.123]) by bcmv-tmail01.ecl.ntt.co.jp (8.14.4/8.14.4) with ESMTP id w915205f020770; Mon, 1 Oct 2018 14:02:00 +0900 Received: from bcmv-ns01.ecl.ntt.co.jp (localhost [127.0.0.1]) by bcmv-ns01.ecl.ntt.co.jp (Postfix) with ESMTP id 2AE32125; Mon, 1 Oct 2018 14:02:00 +0900 (JST) Received: from localhost.localdomain (unknown [129.60.13.51]) by bcmv-ns01.ecl.ntt.co.jp (Postfix) with ESMTP id 14C2755; Mon, 1 Oct 2018 14:02:00 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: spp@dpdk.org, ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Date: Mon, 1 Oct 2018 14:01:44 +0900 Message-Id: <20181001050148.77373-5-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20181001050148.77373-1-ogawa.yasufumi@lab.ntt.co.jp> References: <20181001050148.77373-1-ogawa.yasufumi@lab.ntt.co.jp> X-TM-AS-MML: disable Subject: [spp] [PATCH 4/8] tools/sppc: add paths to Dockerfiles of SPP X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Oct 2018 05:02:02 -0000 From: Yasufumi Ogawa If you clone a custom SPP repo and its directory name is not 'spp', you failed to launch an appcontainer script because the scripts does not know the name of custom repo and cannot find SPP's executable file. To be found the executable in container, this patch adds PATH entries of the executables of custom repo to Dockerfile. By this change. appcontainer can find the executables without the custom repo's name while launching appcontainer. Signed-off-by: Yasufumi Ogawa --- tools/sppc/build/ubuntu/spp/Dockerfile.16.04 | 8 ++++++-- tools/sppc/build/ubuntu/spp/Dockerfile.18.04 | 8 ++++++-- tools/sppc/build/ubuntu/spp/Dockerfile.latest | 9 +++++++-- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/tools/sppc/build/ubuntu/spp/Dockerfile.16.04 b/tools/sppc/build/ubuntu/spp/Dockerfile.16.04 index b55f056..27311ea 100644 --- a/tools/sppc/build/ubuntu/spp/Dockerfile.16.04 +++ b/tools/sppc/build/ubuntu/spp/Dockerfile.16.04 @@ -9,13 +9,17 @@ ARG spp_repo ARG spp_branch ARG spp_dir -ENV PATH ${rte_sdk}/${rte_target}/app:${PATH} ENV http_proxy ${http_proxy} -ENV https_proxy $https_proxy +ENV https_proxy ${https_proxy} ENV no_proxy ${no_proxy} ENV RTE_SDK ${rte_sdk} ENV RTE_TARGET ${rte_target} ENV SPP_DIR ${spp_dir} +ENV PATH ${rte_sdk}/${rte_target}/app:${PATH} +ENV PATH ${home_dir}/${spp_dir}/src/primary/${rte_target}/:${PATH} +ENV PATH ${home_dir}/${spp_dir}/src/nfv/${rte_target}/:${PATH} +ENV PATH ${home_dir}/${spp_dir}/src/vf/${rte_target}/:${PATH} +ENV PATH ${home_dir}/${spp_dir}/src/vm/${rte_target}/:${PATH} RUN apt-get update && apt-get install -y \ git \ diff --git a/tools/sppc/build/ubuntu/spp/Dockerfile.18.04 b/tools/sppc/build/ubuntu/spp/Dockerfile.18.04 index 8377623..f2afa74 100644 --- a/tools/sppc/build/ubuntu/spp/Dockerfile.18.04 +++ b/tools/sppc/build/ubuntu/spp/Dockerfile.18.04 @@ -9,13 +9,17 @@ ARG spp_repo ARG spp_branch ARG spp_dir -ENV PATH ${rte_sdk}/${rte_target}/app:${PATH} ENV http_proxy ${http_proxy} -ENV https_proxy $https_proxy +ENV https_proxy ${https_proxy} ENV no_proxy ${no_proxy} ENV RTE_SDK ${rte_sdk} ENV RTE_TARGET ${rte_target} ENV SPP_DIR ${spp_dir} +ENV PATH ${rte_sdk}/${rte_target}/app:${PATH} +ENV PATH ${home_dir}/${spp_dir}/src/primary/${rte_target}/:${PATH} +ENV PATH ${home_dir}/${spp_dir}/src/nfv/${rte_target}/:${PATH} +ENV PATH ${home_dir}/${spp_dir}/src/vf/${rte_target}/:${PATH} +ENV PATH ${home_dir}/${spp_dir}/src/vm/${rte_target}/:${PATH} RUN apt-get update && apt-get install -y \ git \ diff --git a/tools/sppc/build/ubuntu/spp/Dockerfile.latest b/tools/sppc/build/ubuntu/spp/Dockerfile.latest index 3b96080..246ceb8 100644 --- a/tools/sppc/build/ubuntu/spp/Dockerfile.latest +++ b/tools/sppc/build/ubuntu/spp/Dockerfile.latest @@ -9,12 +9,17 @@ ARG spp_repo ARG spp_branch ARG spp_dir -ENV PATH ${rte_sdk}/${rte_target}/app:${PATH} ENV http_proxy ${http_proxy} -ENV https_proxy $https_proxy +ENV https_proxy ${https_proxy} ENV no_proxy ${no_proxy} ENV RTE_SDK ${rte_sdk} ENV RTE_TARGET ${rte_target} +ENV SPP_DIR ${spp_dir} +ENV PATH ${rte_sdk}/${rte_target}/app:${PATH} +ENV PATH ${home_dir}/${spp_dir}/src/primary/${rte_target}/:${PATH} +ENV PATH ${home_dir}/${spp_dir}/src/nfv/${rte_target}/:${PATH} +ENV PATH ${home_dir}/${spp_dir}/src/vf/${rte_target}/:${PATH} +ENV PATH ${home_dir}/${spp_dir}/src/vm/${rte_target}/:${PATH} RUN apt-get update && apt-get install -y \ git \ -- 2.7.4