Add SSH and create default credentials 'root:vpp'

This commit is contained in:
Pim van Pelt
2025-05-03 21:38:16 +02:00
parent 49b5d58bd6
commit 1b6e2c4726
2 changed files with 8 additions and 2 deletions

View File

@ -2,11 +2,12 @@ FROM debian:bookworm
ARG DEBIAN_FRONTEND=noninteractive
ARG VPP_INSTALL_SKIP_SYSCTL=true
ARG REPO=release
EXPOSE 22/tcp
RUN apt-get update && apt-get -y install curl procps tcpdump iproute2 iptables \
iputils-ping net-tools git python3 python3-pip vim-tiny && apt-get clean
iputils-ping net-tools git python3 python3-pip vim-tiny openssh-server && apt-get clean
# Install VPP
RUN mkdir -p /var/log/vpp
RUN mkdir -p /var/log/vpp /root/.ssh/
RUN curl -s https://packagecloud.io/install/repositories/fdio/${REPO}/script.deb.sh | bash
RUN apt-get update && apt-get -y install vpp vpp-plugin-core && apt-get clean