mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 15:57:09 +00:00
ccloudvm: Add worklaod to tests packages in VM.
create a template based in docker-xenial.yaml Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
ff7349b7fe
commit
b4be018068
39
ccloudvm/kata-docker-xenial.yaml
Normal file
39
ccloudvm/kata-docker-xenial.yaml
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
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"}}
|
||||
- sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/katacontainers:/release/xUbuntu_$(lsb_release -rs)/ /' >> /etc/apt/sources.list.d/kata-containers.list"
|
||||
- {{proxyVars .}} curl -sL http://download.opensuse.org/repositories/home:/katacontainers:/release/xUbuntu_$(lsb_release -rs)/Release.key | sudo apt-key add -
|
||||
- sudo -E apt-get update
|
||||
- sudo -E apt-get -y install kata-runtime
|
||||
- {{endTaskCheck .}}
|
||||
|
||||
...
|
Loading…
Reference in New Issue
Block a user