代码拉取完成,页面将自动刷新
# syntax = docker/dockerfile:experimental
# the following is updated automatically by make update-build-image-tag
FROM quay.io/travelping/upg-build:10f03c8684150c9d0b492f050ca14d1e AS build-stage
ADD vpp /src/vpp
ADD upf /src/upf
RUN --mount=target=/src/vpp/build-root/.ccache,type=cache \
make -C /src/vpp pkg-deb V=1 && \
mkdir -p /out/debs && \
mv /src/vpp/build-root/*.deb /out/debs && \
tar -C /src/vpp -cvzf /out/testfiles.tar.gz build-root/install-vpp-native
# pseudo-image to extract artifacts using buildctl
FROM scratch as artifacts
COPY --from=build-stage /out .
# --- final image --------------------------------------------
FROM ubuntu:focal AS final-stage
WORKDIR /
ENV VPP_INSTALL_SKIP_SYSCTL=1
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=private \
--mount=target=/var/cache/apt,type=cache,sharing=private \
apt-get update && apt-get dist-upgrade -yy && \
apt-get install --no-install-recommends -yy liblz4-tool tar gdb strace \
libhyperscan5 libmbedcrypto3 libmbedtls12 libmbedx509-0 apt-utils \
libpython2.7-minimal libpython2-stdlib libpython3-stdlib \
python python-cffi python-cffi-backend python-ipaddress \
python2-minimal python-ply python-pycparser python2.7 python2.7-minimal \
python3 python3-minimal python3.6 python3-minimal \
python3-cffi python3-cffi-backend && \
apt-get install -yy clang-9
# TODO: add more packages above that are VPP deps
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=private \
--mount=target=/var/cache/apt,type=cache,sharing=private \
--mount=target=/debs,source=/out/debs,from=build-stage,type=bind \
apt-get install --no-install-recommends -yy \
/debs/vpp_*.deb \
/debs/vpp-dbg_*.deb \
/debs/vpp-plugin-core_*.deb \
/debs/libvppinfra_*.deb \
/debs/vpp-api-python_*.deb
ENTRYPOINT /usr/bin/vpp
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。