mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-29 15:27:17 +00:00
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>
25 lines
452 B
Ruby
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
|