1 Star 0 Fork 0

p4lang-mirror/behavioral-model

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile.noPI 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
Radostin Stoyanov 提交于 2022-04-14 17:50 . Update Dockerfile.noPI (#1109)
FROM p4lang/third-party:latest
LABEL maintainer="P4 Developers <[email protected]>"
LABEL description="This Docker image does not have any dependency on PI or P4 \
Runtime, it only builds bmv2 simple_switch."
# Select the type of image we're building. Use `build` for a normal build, which
# is optimized for image size. Use `test` if this image will be used for
# testing; in this case, the source code and build-only dependencies will not be
# removed from the image.
ARG IMAGE_TYPE=build
ENV BM_DEPS automake \
build-essential \
pkg-config \
curl \
git \
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.71.0 \
libboost-system1.71.0 \
libboost-filesystem1.71.0 \
libboost-thread1.71.0 \
libgmp10 \
libpcap0.8 \
python3 \
python-is-python3
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 && \
(test "$IMAGE_TYPE" = "build" && \
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') || \
(test "$IMAGE_TYPE" = "test" && \
echo 'Test image ready')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/p4lang-mirror/behavioral-model.git
[email protected]:p4lang-mirror/behavioral-model.git
p4lang-mirror
behavioral-model
behavioral-model
main

搜索帮助