Files
linuxkit/examples/vpnkit-forwarder.yml
Krister Johansen 45222dfaaf Move init image to fbcbbe3ace0b3e9455300017dd07625293a0d4d4.
This attempts to work around a CI issue where we're running out of disk
space when rebuilding the init package.

Signed-off-by: Krister Johansen <krister.johansen@oracle.com>
2018-06-11 08:29:20 -07:00

39 lines
1.0 KiB
YAML

kernel:
image: linuxkit/kernel:4.14.48
cmdline: "console=ttyS0"
init:
- linuxkit/init:fbcbbe3ace0b3e9455300017dd07625293a0d4d4
- linuxkit/runc:v0.4
- linuxkit/containerd:72df922e49a363a4ad53d88cd1a8a3ae4d41086f
onboot:
- name: dhcpcd
image: linuxkit/dhcpcd:v0.4
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: mount-vpnkit
image: alpine:3.7
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:2c7e6e36bd0ffa2b3d950cf9128da89ba3375dbb
- name: vpnkit-forwarder
image: linuxkit/vpnkit-forwarder:v0.4
binds:
- /var/vpnkit:/port
net: host
command: ["/vpnkit-forwarder"]
files:
- path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub
mode: "0600"
optional: true
trust:
org:
- linuxkit