Files
linuxkit/examples/vpnkit-forwarder.yml
Avi Deitcher a2c6ed4205 noop to force pkg rebuild
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2023-11-20 12:05:52 +02:00

37 lines
1.2 KiB
YAML

kernel:
image: linuxkit/kernel:5.10.104
cmdline: "console=ttyS0"
init:
- linuxkit/init:07d37c3ae7fad5ddcb54c8dc65774ae050851f04
- linuxkit/runc:2aabf16bc8a1b94e015ee53fa2e7a77ab1883a80
- linuxkit/containerd:95d5f0d2d8dc63bd87e96b7b39cf026cb86125c9
onboot:
- name: dhcpcd
image: linuxkit/dhcpcd:2a8ed08fea442909ba10f950d458191ed3647115
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:62036c2a279715d05e8298b9269a0659964f2619
binds.add:
- /root/.ssh:/root/.ssh
- name: vpnkit-forwarder
image: linuxkit/vpnkit-forwarder:1dcfbb69909086be663954809e92fa2d111fecf3
binds:
- /var/vpnkit:/port
net: host
command: ["/vpnkit-forwarder"]
files:
- path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub
mode: "0600"
optional: true