Appearance
saya image build
Build a VM image
Synopsis
Build a VM image.
saya image build [options] <build-context>]
Options
--apt-proxy string --apt-proxy <ip or dns name>
--build-arg strings --build-arg MY_ARG=argvalue
--compute-keep-running --compute-keep-running
--compute-skip-cleanup --compute-skip-cleanup
--compute-skip-export --compute-skip-export
--compute-type string --compute-type virtualbox (default "virtualbox")
--cpus uint --cpus 2
--creation-policy stringArray --creation-policy 'type=cloud_init_done_by_phone_cmdb,timeout=PT15M,data='
--disk-size string --mem 512mib'
--export-ssh-key-file string --export-ssh-key-file ./sut-rsa.pup
--export-ssh-password-file string --export-ssh-password-file ./passord.out
-f, --file string --file Dockerfile, -f Sayafile; priority: Sayafile, Dockerfile
--from-mapping stringToString --from-mapping "ubuntu/latest=http://server/images/ubuntu.ova (default [])
-h, --help help for build
--keep-user --ssh-keep-user
--label stringToString --label version=1.0 (default [])
--mem string --mem 512mib'
--name string --name ubuntu-vm-server
--nic stringArray --nic 'type=hostonly, host-nic=vboxnet1, hw=IntelPro100MTServer, mac=00:00:00:00'
--os-variant string --os-variant ubuntu, --img-os alpine, ...
--platform string --img-os Linux, --img-os Windows (default "Linux")
--screen string --screen off for headless mode, or --screen on to get a gui
--ssh-address string --ssh-address 10.10.10.8
--ssh-donot-create-user --ssh-do-not-create-user
--ssh-key string --ssh-key <public-certificate>
--ssh-key-file string --ssh-key-file ./sut-rsa.pup
--ssh-password string --ssh-password supersecret
--ssh-port uint16 --ssh-port 22 (default 22)
--ssh-user string --ssh-user saya (default "saya")
--ssh-user-credential-types strings --ssh-user-credential-type 'password'
-t, --tag strings --tag cloudwesen/ubuntu:latest
--vbox-optical-disk strings --vbox-optical-disk /tmp/mycd.iso
--vbox-uart stringArray --vbox-uart 'nr=1,port=0x3F8 4,mode=file /tmp/uartoutput.txt'
Options inherited from parent commands
--config string config file (default is .saya.yaml file found in the current working directory or $HOME/.saya or /etc/saya/.saya.yaml
--forge string path of the directory that holds saya runtime data(e.g. local repository, VM data, transient session data, etc)
-l, --license-key string license key to use saya
--log-level string logging level, error|warn|info|debug|trace (default "info")
SEE ALSO
- saya image - Build, Push, Pull, List VM images