Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve building process to reduce building time for BESS and UPF #54

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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