mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
[Question] Automated ci/cd pipeline with no display? #68
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GrabbenD on GitHub (Sep 23, 2020).
Is there any way to build/perform a full installation of the container with no display to make it fully automated?
Thanks in advance for any help with this.
@sickcodes commented on GitHub (Sep 23, 2020):
Yes, using the VNC version.
@jviotti knows how to setup the auto boot to correct disk, I'm not sure how.
You can write a an xdotool script to format the disk first too or can use hfsprogs to make the disks
@jviotti commented on GitHub (Sep 23, 2020):
@sickcodes @xRiot The trick is to create a custom OpenCore image (https://github.com/kholia/OSX-KVM/blob/master/OpenCore-Catalina/OpenCore.qcow2) that boots in the way you want it to boot. Docker-OSX loads this image here: https://github.com/sickcodes/Docker-OSX/blob/master/Dockerfile#L156-L157
You can tweak OpenCore's
config.plist(https://github.com/kholia/OSX-KVM/blob/master/OpenCore-Catalina/config.plist) and re-build it using this script: https://github.com/kholia/OSX-KVM/blob/master/OpenCore-Catalina/opencore-image-ng.sh.These are some of the settings you might be interested in: https://github.com/kholia/OSX-KVM/blob/master/OpenCore-Catalina/config.plist#L520-L529
You can find the docs here: https://github.com/acidanthera/OpenCorePkg/blob/master/Docs/Configuration.pdf
@GrabbenD commented on GitHub (Sep 23, 2020):
Thanks a lot for the information @jviotti @sickcodes!
I can see that there's a display being exported in the VNC version. Would it be possible to entirely drop rendering of the desktop to save resources? I'm looking into only using SSH to access the container post installation.
@sickcodes commented on GitHub (Sep 23, 2020):
Maybe try booting into the recovery disk, it has a terminal, I haven't tried automating it tho.
@sickcodes commented on GitHub (Sep 23, 2020):
@jviotti Thanks for uploading that mate! I will add that second auto-booter next week unless someone wants to do a PR 😛
@GrabbenD commented on GitHub (Sep 24, 2020):
Thanks for the insights @sickcodes!
At the moment the VNC container boots into boot disk selection menu, is there a way to automatically boot into the (predefined/right) disk?
@sickcodes commented on GitHub (Sep 24, 2020):
Yes there is, @jviotti just explained above that you need to build a custom OpenCore qcow boot disk.
@JB-CHAUVIN commented on GitHub (Oct 5, 2020):
Hello @sickcodes, have you released the auto-booter option yet?
Thanks @jviotti for the tips !!
@sickcodes commented on GitHub (Oct 5, 2020):
I think this is it:
https://github.com/kholia/OSX-KVM/blob/master/OpenCore-Catalina/OpenCore-nopicker.qcow2
Will have a look later this week
@JB-CHAUVIN commented on GitHub (Oct 6, 2020):
This is working ! It would be great if you add an option to choose the OpenCore version :)
Thanks for the great work with this tool @sickcodes !
@sickcodes commented on GitHub (Oct 6, 2020):
Sure, unless someone would like to submit a PR:
docker exec id sed -i -e opencore.qcowto the new version@sickcodes commented on GitHub (Oct 6, 2020):
Done!
81682df5fe@sickcodes commented on GitHub (Oct 6, 2020):
Will work in both VNC and regular containers btw
@AdamMomen commented on GitHub (Nov 6, 2020):
Thanks for your amazing efforts @sickcodes, I am running this on a VM on the cloud and wanted to make it boot autmatically, so I tried these two commands but did not work yet!
Launch.sh file Content
I am not sure putting container run logs would help here.
@jviotti could you please elaborate more on how to do your approach, I couldn't understand the "create a custom OpenCore image" part.
Thanks
Edit

Running process monitor
htopshows that docker or maybe arch-linux didn't update the image yet, I am still trying to figure out how to update it.Edit 2
I found the issue, I am using vnc-version docker which uses
Launch_custom.sh fileinstead ofLaunch.shSolution:
@sickcodes maybe adding this to the readme so others won't fall into the same mistake I did, thanks.
@sickcodes commented on GitHub (Feb 26, 2021):
Added in
a09c565e36See https://github.com/sickcodes/Docker-OSX#quick-start-175gb-pre-made-image