From 2fdca449a0ea34dd402c23ee38ff0e912372860a Mon Sep 17 00:00:00 2001 From: gab-arrobo Date: Mon, 11 Mar 2024 12:03:41 -0700 Subject: [PATCH] Improve building process to reduce building time for BESS and UPF (#54) * Improve building process to reduce building time * Update path for BESS dir in container --- container_build.py | 2 +- env/Dockerfile | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/container_build.py b/container_build.py index 5aac75352a..2782cdcb9d 100755 --- a/container_build.py +++ b/container_build.py @@ -44,7 +44,7 @@ IMAGE = os.getenv('IMAGE', 'registry.aetherproject.org/sdcore/bess_build') + ':' + os.getenv('TAG_SUFFIX', 'latest') BESS_DIR_HOST = os.path.dirname(os.path.abspath(__file__)) -BESS_DIR_CONTAINER = '/build/bess' +BESS_DIR_CONTAINER = '/bess' BUILD_SCRIPT = './build.py' PLUGINS = [] diff --git a/env/Dockerfile b/env/Dockerfile index c987fcc105..c20fbdcbdd 100644 --- a/env/Dockerfile +++ b/env/Dockerfile @@ -108,13 +108,12 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -WORKDIR /build/bess +WORKDIR /bess COPY . . # Build DPDK testpmd (used in bessctl samples) RUN ./build.py dpdk && \ - cp /build/bess/deps/dpdk-22.11.4/build/app/dpdk-testpmd /usr/local/bin/ && \ - rm -rf /build/bess + cp /bess/deps/dpdk-22.11.4/build/app/dpdk-testpmd /usr/local/bin/ ENV CCACHE_DIR=/tmp/ccache ENV CCACHE_COMPRESS=true