代码拉取完成,页面将自动刷新
FROM p4lang/behavioral-model:no-pi
LABEL maintainer="P4 Developers <[email protected]>"
LABEL description="This Docker image includes all of the PI artifacts, \
including the Thrift-based PI implementation for the bmv2 backend. It is \
currently used to run CI tests."
# Default to using 2 make jobs, which is a good default for CI. If you're
# building locally or you know there are more cores available, you may want to
# override this.
ARG MAKEFLAGS=-j2
# 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
# Select the compiler to use.
# We install the default version of GCC (GCC 9), as well as clang 8 and clang 10.
ARG CC=gcc
ARG CXX=g++
ENV PI_DEPS automake \
build-essential \
clang-8 \
clang-10 \
clang-format-8 \
g++ \
libboost-dev \
libboost-system-dev \
libboost-thread-dev \
libtool \
libtool-bin \
pkg-config \
libreadline-dev \
libpcap-dev \
libmicrohttpd-dev \
doxygen \
valgrind
ENV PI_RUNTIME_DEPS libboost-system1.71.0 \
libboost-thread1.71.0 \
libpcap0.8 \
python3 \
python-is-python3
COPY proto/sysrepo/docker_entry_point.sh /docker_entry_point.sh
COPY . /PI/
WORKDIR /PI/
RUN apt-get update && \
apt-get install -y --no-install-recommends $PI_DEPS $PI_RUNTIME_DEPS && \
./autogen.sh && \
./configure --enable-Werror --with-bmv2 --with-proto --with-cli --with-internal-rpc --with-sysrepo && \
./proto/sysrepo/install_yangs.sh && \
make && \
make install-strip && \
(test "$IMAGE_TYPE" = "build" && \
apt-get purge -y $PI_DEPS && \
apt-get autoremove --purge -y && \
rm -rf /PI /var/cache/apt/* /var/lib/apt/lists/* && \
echo 'Build image ready') || \
(test "$IMAGE_TYPE" = "test" && \
echo 'Test image ready')
# start sysrepo daemon (sysrepod)
ENTRYPOINT ["/docker_entry_point.sh"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。