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

Copy modules folder for bessd to load .so files #76

Merged
merged 1 commit into from
Jun 23, 2020
Merged
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
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ COPY core/ core/
COPY patches/bess patches
RUN cp -a ${DPDK_DIR} deps/dpdk-19.11.1 && \
cat patches/* | patch -p1
RUN ./build.py bess && \
RUN ./build.py --plugin sample_plugin bess && \
cp bin/bessd /bin && \
mkdir -p /bin/modules && \
cp core/modules/*.so /bin/modules && \
mkdir -p /opt/bess && \
cp -r bessctl pybess /opt/bess && \
cp -a core/pb /pb
cp -r core/pb /pb

# Stage pip: compile psutil
FROM python:2.7-slim AS pip
Expand All @@ -90,7 +92,8 @@ RUN apt-get update && \
https://github.com/secdev/scapy/archive/b65e795c62accd383e1bb6b17cd9f7a9143ae117.zip
COPY --from=pip /usr/local/lib/python2.7/site-packages/psutil /usr/local/lib/python2.7/site-packages/psutil
COPY --from=bess-build /opt/bess /opt/bess
COPY --from=bess-build /bin/bessd /bin
COPY --from=bess-build /bin/bessd /bin/bessd
COPY --from=bess-build /bin/modules /bin/modules
COPY conf /opt/bess/bessctl/conf
RUN ln -s /opt/bess/bessctl/bessctl /bin
ENV PYTHONPATH="/opt/bess"
Expand Down