Files
linuxkit/examples/vpnkit-forwarder.yml
Avi Deitcher 4165491275 Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2025-01-07 18:50:58 +02:00

37 lines
1.2 KiB
YAML

kernel:
image: linuxkit/kernel:6.6.13
cmdline: "console=ttyS0"
init:
- linuxkit/init:bf45651001f871323d70b746330e8c2a94f767e6
- linuxkit/runc:ab0b50b622b8e34031b6bb8b18497100a558a11d
- linuxkit/containerd:c85f857bb3ed72b91509df20d1b9b3e430160074
onboot:
- name: dhcpcd
image: linuxkit/dhcpcd:f67a935a3768da88a5d8252188e71b65f0feadf7
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: mount-vpnkit
image: alpine:3.13
binds:
- /var/:/host_var:rbind,rshared
capabilities:
- CAP_SYS_ADMIN
rootfsPropagation: shared
command: ["sh", "-c", "mkdir /host_var/vpnkit && mount -v -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 port /host_var/vpnkit"]
services:
- name: sshd
image: linuxkit/sshd:b894b88581c8a8742d5c1323783116c85957e7d8
binds.add:
- /root/.ssh:/root/.ssh
- name: vpnkit-forwarder
image: linuxkit/vpnkit-forwarder:582565d63c43ea5bfedd2c6d176e7771fe94c784
binds:
- /var/vpnkit:/port
net: host
command: ["/vpnkit-forwarder"]
files:
- path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub
mode: "0600"
optional: true