From 6729dd787738e462b26daac74c96f1d51bf55be4 Mon Sep 17 00:00:00 2001 From: sickcodes Date: Sun, 14 Nov 2021 03:29:19 +0000 Subject: [PATCH] `--build-arg=mojave`, `--build-arg=big-sur`, `--build-arg=monterey`, `--build-arg=catalina` --- Dockerfile | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index b8a358f..5ba6108 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,7 +58,6 @@ SHELL ["/bin/bash", "-c"] # change disk size here or add during build, e.g. --build-arg VERSION=10.14.5 --build-arg SIZE=50G ARG SIZE=200G -ARG VERSION=10.15.7 # OPTIONAL: Arch Linux server mirrors for super fast builds # set RANKMIRRORS to any value other that nothing, e.g. -e RANKMIRRORS=true @@ -146,21 +145,10 @@ WORKDIR /home/arch/OSX-KVM # RUN wget https://raw.githubusercontent.com/kholia/OSX-KVM/master/fetch-macOS-v2.py -ARG SHORTNAME= - -# VERSION will just set the appropriate shortname -RUN if [[ ! "${SHORTNAME}" ]]; then \ - { [[ $(bc <<< "${VERSION} >= 10.13") = 0 ]] && export SHORTNAME=high-sierra ; } \ - || { [[ $(bc <<< "${VERSION} >= 10.14") = 0 ]] && export SHORTNAME=mojave ; } \ - || { [[ $(bc <<< "${VERSION} >= 10.15") = 0 ]] && export SHORTNAME=catalina ; } \ - || { [[ $(bc <<< "${VERSION} >= 11.6") = 0 ]] && export SHORTNAME=big-sur ; } \ - || { [[ $(bc <<< "${VERSION} > 11.6") = 0 ]] && export SHORTNAME=monterey ; } \ - ; fi +ARG SHORTNAME RUN make -WORKDIR /home/arch/OSX-KVM - ARG LINUX=true # required to use libguestfs inside a docker container, to create bootdisks for docker-osx on-the-fly