2 Star 2 Fork 0

Kobe/upg-vpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.82 KB
一键复制 编辑 原始数据 按行查看 历史
# 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tongnice/upg-vpp.git
git@gitee.com:tongnice/upg-vpp.git
tongnice
upg-vpp
upg-vpp
master

搜索帮助