aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.auto
diff options
context:
space:
mode:
authorsickcodes <[email protected]>2021-02-25 14:03:06 +0000
committersickcodes <[email protected]>2021-02-25 14:03:06 +0000
commit23ab20c2fa5883dc6dd32300fde1d65bc50f9cfe (patch)
tree71cc3835dc1cae35b847cfb25ed74dbec91d3d84 /Dockerfile.auto
parentTypo (diff)
downloaddocker-osx-23ab20c2fa5883dc6dd32300fde1d65bc50f9cfe.tar.xz
docker-osx-23ab20c2fa5883dc6dd32300fde1d65bc50f9cfe.zip
Major serial number runtime generation and override changes.
Diffstat (limited to 'Dockerfile.auto')
-rw-r--r--Dockerfile.auto26
1 files changed, 25 insertions, 1 deletions
diff --git a/Dockerfile.auto b/Dockerfile.auto
index ab8e67d..0d466fc 100644
--- a/Dockerfile.auto
+++ b/Dockerfile.auto
@@ -7,7 +7,7 @@
#
# Title: Mac on Docker (Docker-OSX) [AUTOINSTALL]
# Author: Sick.Codes https://twitter.com/sickcodes
-# Version: 3.1
+# Version: 3.2
# License: GPLv3+
# Repository: https://github.com/sickcodes/Docker-OSX
#
@@ -140,6 +140,30 @@ ENV BOILERPLATE="By using this Dockerfile, you hereby agree that you are a secur
CMD echo "${BOILERPLATE}" \
&& [[ "${TERMS_OF_USE}" = i_agree ]] || exit 1 \
; [[ "${NOPICKER}" == true ]] && mv ./Launch-nopicker.sh ./Launch.sh \
+ ; [[ "${GENERATE_UNIQUE}" == true ]] \
+ && ./Docker-OSX/custom/generate-unique-machine-values.sh \
+ --count 1 \
+ --tsv ./serial.tsv \
+ --bootdisks \
+ --output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
+ --output-env "${ENV:=/env}" \
+ && source "${ENV}" \
+ ; [[ "${GENERATE_SPECIFIC}" == true ]] \
+ && source /env \
+ || ./Docker-OSX/custom/generate-specific-bootdisk.sh \
+ --model "${DEVICE_MODEL}" \
+ --serial "${SERIAL}" \
+ --board-serial "${BOARD_SERIAL}" \
+ --uuid "${UUID}" \
+ --mac-address "${MAC_ADDRESS}" \
+ --output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
+ ; case "$(file --brief /bootdisk)" in \
+ QEMU\ QCOW2\ Image* ) export BOOTDISK=/bootdisk \
+ ; sudo chown "$(id -u)":"$(id -g)" "${BOOTDISK}" 2>/dev/null || true \
+ ;; \
+ directory* ) export BOOTDISK=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2 \
+ ;; \
+ esac \
; [[ "${DISPLAY}" = ':99' ]] && { \
nohup Xvfb :99 -screen 0 1920x1080x16 \
& until [[ "$(xrandr --query 2>/dev/null)" ]]; do sleep 0.1 ; done \