diff options
| author | sickcodes <[email protected]> | 2021-11-14 03:29:19 +0000 |
|---|---|---|
| committer | sickcodes <[email protected]> | 2021-11-14 03:29:19 +0000 |
| commit | 6729dd787738e462b26daac74c96f1d51bf55be4 (patch) | |
| tree | c9e7e5e00cb818bf25c76702721d1f73e45beec1 /Dockerfile | |
| parent | Missed bc (diff) | |
| download | docker-osx-6729dd787738e462b26daac74c96f1d51bf55be4.tar.xz docker-osx-6729dd787738e462b26daac74c96f1d51bf55be4.zip | |
`--build-arg=mojave`, `--build-arg=big-sur`, `--build-arg=monterey`, `--build-arg=catalina`
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -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 |