| # debian.sh --arch 'amd64' out/ 'trixie' '@1763337600' |
| ARG DEBIAN_FRONTEND=noninteractive |
| ARG VPP_INSTALL_SKIP_SYSCTL=true |
| EXPOSE [22/tcp] |
| RUN |2 DEBIAN_FRONTEND=noninteractive VPP_INSTALL_SKIP_SYSCTL=true /bin/sh -c apt-get update && apt-get -y install curl procps tcpdump iproute2 iptables iputils-ping net-tools git python3 python3-pip vim-tiny openssh-server mtr-tiny traceroute && apt-get clean # buildkit |
| RUN |2 DEBIAN_FRONTEND=noninteractive VPP_INSTALL_SKIP_SYSCTL=true /bin/sh -c mkdir -p /var/log/vpp /root/.ssh/ && curl -s -o /usr/share/keyrings/ipng-debian-repo.gpg https://deb.ipng.ch/ipng-debian-repo.gpg && echo "deb [signed-by=/usr/share/keyrings/ipng-debian-repo.gpg] https://deb.ipng.ch/ trixie main" > /etc/apt/sources.list.d/ipng.list && apt -y update && apt -y install vpp vpp-plugin-core vpp-crypto-engines && apt clean # buildkit |
| RUN |2 DEBIAN_FRONTEND=noninteractive VPP_INSTALL_SKIP_SYSCTL=true /bin/sh -c pip install --break-system-packages build netaddr yamale argparse pyyaml ipaddress && git clone https://git.ipng.ch/ipng/vppcfg.git && cd vppcfg && python3 -m build && pip install --break-system-packages dist/vppcfg-*-py3-none-any.whl # buildkit |
| RUN |2 DEBIAN_FRONTEND=noninteractive VPP_INSTALL_SKIP_SYSCTL=true /bin/sh -c curl -s -o /usr/share/keyrings/frrouting.gpg https://deb.frrouting.org/frr/keys.gpg && echo deb '[signed-by=/usr/share/keyrings/frrouting.gpg]' https://deb.frrouting.org/frr trixie frr-stable > /etc/apt/sources.list.d/frr.list && apt -y update && apt -y install frr frr-pythontools && apt clean # buildkit |
| RUN |2 DEBIAN_FRONTEND=noninteractive VPP_INSTALL_SKIP_SYSCTL=true /bin/sh -c curl -s -o /usr/share/keyrings/cznic-labs-pkg.gpg https://pkg.labs.nic.cz/gpg && echo "deb [signed-by=/usr/share/keyrings/cznic-labs-pkg.gpg] https://pkg.labs.nic.cz/bird2 trixie main" > /etc/apt/sources.list.d/cznic-labs-bird2.list && apt -y update && apt -y install bird2 && apt clean # buildkit |
| COPY files/etc/ /etc/ # buildkit |
| COPY files/init-container.sh /sbin/ # buildkit |
| RUN |2 DEBIAN_FRONTEND=noninteractive VPP_INSTALL_SKIP_SYSCTL=true /bin/sh -c chmod 755 /sbin/init-container.sh # buildkit |
| CMD ["/sbin/init-container.sh"] |