mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2024-10-30 00:23:45 -05:00
--build-arg=mojave
, --build-arg=big-sur
, --build-arg=monterey
, --build-arg=catalina
This commit is contained in:
parent
7da38e0d83
commit
6729dd7877
14
Dockerfile
14
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
|
||||
|
Loading…
Reference in New Issue
Block a user