Skip to content

Commit

Permalink
Improve building process to reduce building time for BESS and UPF (#54)
Browse files Browse the repository at this point in the history
* Improve building process to reduce building time

* Update path for BESS dir in container
  • Loading branch information
gab-arrobo authored Mar 11, 2024
1 parent e609681 commit 2fdca44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion container_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down
5 changes: 2 additions & 3 deletions env/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2fdca44

Please sign in to comment.