aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorsickcodes <[email protected]>2021-03-03 16:54:45 +0000
committersickcodes <[email protected]>2021-03-03 16:54:45 +0000
commit5469cb8a582cc6354b45b2a4ddd9820ebeffa1c5 (patch)
treed52ac95b6ae9e832e555d8426a5e9ed98715726b /Dockerfile
parentMerge pull request #162 from sickcodes/additional-ports (diff)
downloaddocker-osx-5469cb8a582cc6354b45b2a4ddd9820ebeffa1c5.tar.xz
docker-osx-5469cb8a582cc6354b45b2a4ddd9820ebeffa1c5.zip
Add WIDTH and HEIGHT environment variables
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile29
1 files changed, 22 insertions, 7 deletions
diff --git a/Dockerfile b/Dockerfile
index bff6570..8afebe3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -259,8 +259,19 @@ ENV NETWORKING=vmxnet3
ENV NOPICKER=false
-ENV UNIQUE=false
-# Boolean for generating a bootdisk with new serials.
+# Boolean for generating a bootdisk with new random serials.
+ENV GENERATE_UNIQUE=false
+
+# Boolean for generating a bootdisk with specific serials.
+ENV GENERATE_SPECIFIC=false
+
+# boolean for skipping the disk selection menu at in the boot process
+ENV NOPICKER=false
+
+# The x and y coordinates for resolution.
+# Must be used with either -e GENERATE_UNIQUE=true or -e GENERATE_SPECIFIC=true.
+ENV WIDTH=1920
+ENV HEIGHT=1080
VOLUME ["/tmp/.X11-unix"]
@@ -296,11 +307,13 @@ CMD sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDIS
; } \
; [[ "${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}" || exit 1 \
+ --count 1 \
+ --tsv ./serial.tsv \
+ --bootdisks \
+ --width "${WIDTH:-1920}" \
+ --height "${HEIGHT:-1080}" \
+ --output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
+ --output-env "${ENV:=/env}" || exit 1 \
; } \
; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
source "${ENV:=/env}" \
@@ -310,6 +323,8 @@ CMD sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDIS
--board-serial "${BOARD_SERIAL}" \
--uuid "${UUID}" \
--mac-address "${MAC_ADDRESS}" \
+ --width "${WIDTH:-1920}" \
+ --height "${HEIGHT:-1080}" \
--output-bootdisk "${BOOTDISK:-/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" || exit 1 \
; } \
; case "$(file --brief /bootdisk)" in \