mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-29 04:30:47 +00:00
16 lines
468 B
Ruby
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"
|