forked from kata-containers/packaging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkata-docker-xenial.yaml
40 lines (37 loc) · 1.24 KB
/
kata-docker-xenial.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
inherits: docker-xenial
vm:
mem_mib: 8000
cpus: 8
# Share GOPATH with VM
{{with .GoPath}}
mounts:
- tag: hostgo
security_model: passthrough
path: {{.}}
{{end}}
...
---
#Export GOPATH
{{ define "GOPATH" }}{{with .GoPath}}{{$.MountPath "hostgo"}}{{else}}/home/{{.User}}/go{{end}}{{end}}
{{- define "ENV" -}}
{{proxyVars .}}
{{- print " DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true " -}}
{{end}}
#cloud-config
write_files:
# Add kata as default runtime
- content: |
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -D --add-runtime kata-runtime=/usr/bin/kata-runtime
path: /etc/systemd/system/docker.service.d/kata-containers.conf
runcmd:
- {{beginTask . "Install kata"}}
- ARCH=$(uname -m)
- sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/master/xUbuntu_$(lsb_release -rs)/ /' > /etc/apt/sources.list.d/kata-containers.list"
- {{proxyVars .}} curl -sL http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/master/xUbuntu_$(lsb_release -rs)/Release.key | sudo apt-key add -
- sudo -E apt-get update
- sudo -E apt-get --no-install-recommends install -y apt-utils ca-certificates kata-runtime
- {{endTaskCheck .}}
...