aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorsickcodes <[email protected]>2021-01-07 20:12:35 +0000
committersickcodes <[email protected]>2021-01-07 20:12:35 +0000
commit849b2b853047176a123c0065d7f38a6633e3e167 (patch)
treef633de8dfb0d715d40df956ea804b23698f7e19c /Dockerfile
parentFix sounds errors and sshd missing on latest build (diff)
downloaddocker-osx-849b2b853047176a123c0065d7f38a6633e3e167.tar.xz
docker-osx-849b2b853047176a123c0065d7f38a6633e3e167.zip
Use IMAGE_PATH as a variable during envsubst for the full path of mac_hdd_ng.img
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index bd3c7fe..535789b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -174,7 +174,7 @@ RUN touch Launch.sh \
&& tee -a Launch.sh <<< '-device ide-hd,bus=sata.2,drive=OpenCoreBoot \' \
&& tee -a Launch.sh <<< '-device ide-hd,bus=sata.3,drive=InstallMedia \' \
&& tee -a Launch.sh <<< '-drive id=InstallMedia,if=none,file=/home/arch/OSX-KVM/BaseSystem.img,format=qcow2 \' \
- && tee -a Launch.sh <<< '-drive id=MacHDD,if=none,file=/home/arch/OSX-KVM/mac_hdd_ng.img,format=qcow2 \' \
+ && tee -a Launch.sh <<< '-drive id=MacHDD,if=none,file=${IMAGE_PATH:-/home/arch/OSX-KVM/mac_hdd_ng.img},format=qcow2 \' \
&& tee -a Launch.sh <<< '-device ide-hd,bus=sata.4,drive=MacHDD \' \
&& tee -a Launch.sh <<< '-netdev user,id=net0,hostfwd=tcp::${INTERNAL_SSH_PORT:-10022}-:22,hostfwd=tcp::${SCREEN_SHARE_PORT:-5900}-:5900, -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:09:49:17 \' \
&& tee -a Launch.sh <<< '-monitor stdio \' \
@@ -194,6 +194,8 @@ USER arch
VOLUME ["/tmp/.X11-unix"]
+ENV IMAGE_PATH=/home/arch/OSX-KVM/mac_hdd_ng.img
+
CMD ./enable-ssh.sh && envsubst < ./Launch.sh | bash
# virt-manager mode: eta son