# change disk size here or add during build, e.g. --build-arg VERSION=10.14.5 --build-arg SIZE=50G
ARGSIZE=200G
ARGVERSION=10.15.5
ARGVERSION=10.15.6
# This fails on hub.docker.com, useful for debugging in cloud
# RUN [[ $(egrep -c '(svm|vmx)' /proc/cpuinfo) -gt 0 ]] || { echo KVM not possible on this host && exit 1; }
@ -159,18 +159,19 @@ RUN touch Launch.sh \
&& tee -a Launch.sh <<<'-drive id=InstallMedia,if=none,file=BaseSystem.img,format=raw \'\
&& tee -a Launch.sh <<<'-drive id=MacHDD,if=none,file=/home/arch/OSX-KVM/mac_hdd_ng.img,format=qcow2 \'\
&& tee -a Launch.sh <<<'-device ide-hd,bus=sata.4,drive=MacHDD \'\
&& tee -a Launch.sh <<<'-netdev user,id=net0,hostfwd=tcp::${INTERNAL_SSH_PORT}-:22, -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:09:49:17 \' \
&& tee -a Launch.sh <<<'-netdev user,id=net0,hostfwd=tcp::${INTERNAL_SSH_PORT}-:22,hostfwd=tcp::${SCREEN_SHARE_PORT}-:5900, -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:09:49:17 \' \
&& tee -a Launch.sh <<<'-monitor stdio \'\
&& tee -a Launch.sh <<<'-vga vmware \'\
&& tee -a Launch.sh <<<'${EXTRA}'
ENV USER arch
ENVRAM=5
ENVRAM=8
ENVSMP=4
ENVCORES=4
ENVEXTRA=
ENVINTERNAL_SSH_PORT=10022
ENVSCREEN_SHARE_PORT=5900
# if you're in the shell, export these variables to use then in envsubst