aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.naked
diff options
context:
space:
mode:
authorsickcodes <[email protected]>2021-03-24 13:40:16 +0000
committersickcodes <[email protected]>2021-03-24 13:40:16 +0000
commit9e7342f9662e7a958df90d0cbab53b15067dc2ff (patch)
tree606af0980f105c4f93db677d96bd3b0ad5170dff /Dockerfile.naked
parentAdd more secure VNC password generation. Update osx-serial-generator submodul... (diff)
downloaddocker-osx-9e7342f9662e7a958df90d0cbab53b15067dc2ff.tar.xz
docker-osx-9e7342f9662e7a958df90d0cbab53b15067dc2ff.zip
Add all ENV variables to each dockerfile for readability. Add RAM allocation buffer and cache drop bug fix. Add kvm and libvirt groups. Add IMAGE_FORMAT=qcow2 to allow IMAGE_FORMAT=raw too.
Diffstat (limited to 'Dockerfile.naked')
-rw-r--r--Dockerfile.naked30
1 files changed, 29 insertions, 1 deletions
diff --git a/Dockerfile.naked b/Dockerfile.naked
index 3df45d2..734ea1d 100644
--- a/Dockerfile.naked
+++ b/Dockerfile.naked
@@ -7,7 +7,7 @@
#
# Title: Docker-OSX (Mac on Docker)
# Author: Sick.Codes https://twitter.com/sickcodes
-# Version: 4.1
+# Version: 4.2
# License: GPLv3+
# Repository: https://github.com/sickcodes/Docker-OSX
# Website: https://sick.codes
@@ -102,6 +102,10 @@ RUN mkdir -p ~/.ssh \
&& tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
&& tee -a ~/.ssh/config <<< ' UserKnownHostsFile=/dev/null'
+#### SPECIAL RUNTIME ARGUMENTS BELOW
+
+ENV ADDITIONAL_PORTS=
+
ENV BOOTDISK=
ENV DISPLAY=:99
@@ -110,10 +114,34 @@ ENV HEADLESS=false
ENV ENV=/env
+# 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
+
ENV IMAGE_PATH=/image
+ENV IMAGE_FORMAT=qcow2
+
+ENV KVM='accel=kvm:tcg'
+
+# ENV MASTER_PLIST_URL="https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist"
+
+# ENV NETWORKING=e1000-82545em
+ENV NETWORKING=vmxnet3
ENV NOPICKER=true
+# dynamic RAM options for runtime
+ENV RAM=3
+# ENV RAM=max
+# ENV RAM=half
+
+# 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
+
CMD sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" || true \
; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" || true \
; { [[ "${DISPLAY}" = ':99' ]] || [[ "${HEADLESS}" == true ]] ; } && { \