41 lines
1001 B
Docker
41 lines
1001 B
Docker
ARG BUILD_BASE_TAG=dev
|
|
ARG DOCKER_IMAGE_ROOT=monok8s
|
|
|
|
FROM debian:trixie
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
ARG APT_PROXY
|
|
RUN if [ -n "${APT_PROXY}" ]; then \
|
|
echo "Acquire::http::Proxy \"http://${APT_PROXY}\";" > /etc/apt/apt.conf.d/01proxy; \
|
|
fi
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
libnuma1 \
|
|
libnl-3-200 \
|
|
libnl-route-3-200 \
|
|
libxml2 \
|
|
# libtclap is usually header-only, but fmc might link against it
|
|
# libstdc++ is essential for the fmc binary
|
|
libstdc++6 \
|
|
iproute2 \
|
|
ca-certificates \
|
|
# Useful for debugging portals later
|
|
pciutils \
|
|
kmod \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ARG VPP_VERSION
|
|
COPY /out/vpp_${VPP_VERSION#lf-}-1_arm64.deb /tmp/vpp.deb
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y /tmp/vpp.deb && \
|
|
rm /tmp/vpp.deb && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN fmc -v || echo "FMC installed"
|
|
|
|
COPY ./vpp/start-vpp.sh /usr/bin/start-vpp.sh
|
|
RUN chmod +x /usr/bin/start-vpp.sh
|
|
|
|
ENTRYPOINT ["/usr/bin/start-vpp.sh"]
|