Files
linuxkit/projects/kubernetes/mounts.rb
Ian Campbell 0fbea002dc Update yml
Signed-off-by: Ian Campbell <ijc@docker.com>
2017-07-14 15:21:09 +01:00

16 lines
468 B
Ruby

import 'common.rb'
from "linuxkit/mount:ac8939c4102f97c084d9ddfd445c1908fce6d768"
script = [
mount_bind_hostns_self("/etc/cni"), mount_make_hostns_rshared("/etc/cni"),
mount_bind_hostns_self("/opt/cni"), mount_make_hostns_rshared("/opt/cni"),
mount_persistent_disk("/var/lib"),
mkdir_p("/var/lib/kubeadm"),
]
create_shell_wrapper script.join(' && '), '/usr/bin/kube-mounts.sh'
set_exec cmd: [ '/usr/bin/kube-mounts.sh' ]
tag "#{@image_name}:latest-mounts"