Files
linuxkit/projects/kubernetes/common.rb
Ian Campbell 32506bd7f7 kubernetes: Drop custom mounts image and use standard one
Apart from the /var/lib mount itself the custom package:

- Made host /etc/cni and /opt/cni rshared. This has been handled by init make /
  rshared since 3c326bebdf ("Make / rshared").
- Make /var/lib/kubeadm after mount. For now handle this with a dedicated start
  of day container instead.

Signed-off-by: Ian Campbell <ijc@docker.com>
2017-07-17 13:41:03 +01:00

25 lines
452 B
Ruby

@image_name = "linuxkit/kubernetes"
@versions = {
kubernetes: 'v1.6.1',
weave: 'v1.9.4',
cni: '0799f5732f2a11b329d9e3d51b9c8f2e3759f2ff',
}
def install_packages pkgs
cmds = [
%(apk update),
%(apk add #{pkgs.join(' ')}),
]
cmds.each { |cmd| run cmd }
end
def create_shell_wrapper script, path
run "echo \"#!/bin/sh\n#{script}\n\" > #{path} && chmod 0755 #{path}"
end
def mount_bind src, dst
"mount --bind #{src} #{dst}"
end