forked from p4lang/behavioral-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.noPI
38 lines (37 loc) · 1.31 KB
/
Dockerfile.noPI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM p4lang/third-party:stable
LABEL maintainer="Antonin Bas <antonin@barefootnetworks.com>"
LABEL description="This Docker image does not have any dependency on PI or P4 \
Runtime, it only builds bmv2 simple_switch."
ENV BM_DEPS automake \
build-essential \
curl \
git \
libjudy-dev \
libgmp-dev \
libpcap-dev \
libboost-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-filesystem-dev \
libboost-thread-dev \
libtool
ENV BM_RUNTIME_DEPS libboost-program-options1.58.0 \
libboost-system1.58.0 \
libboost-filesystem1.58.0 \
libboost-thread1.58.0 \
libgmp10 libjudydebian1 \
libpcap0.8 \
python
COPY . /behavioral-model/
WORKDIR /behavioral-model/
RUN apt-get update -qq && \
apt-get install -qq --no-install-recommends $BM_DEPS $BM_RUNTIME_DEPS && \
./autogen.sh && \
./configure --enable-debugger && \
make -j$(nproc) && \
make install-strip && \
ldconfig && \
apt-get purge -qq $BM_DEPS && \
apt-get autoremove --purge -qq && \
rm -rf /behavioral-model /var/cache/apt/* /var/lib/apt/lists/* && \
echo 'Build image ready'