ios-taipei / events

A repo to launch iOS@Taipei meetup events.
20 stars 1 forks source link

sickcodes/Docker-OSX #54

Open medophin opened 1 year ago

medophin commented 1 year ago

活動連結: https://spotvirtual.com/invite/iostaipei-20ea5d5ecbafb5b9-ElVJEE7ZGI

活動時間: 週二, 2023/4/25 20:00

FB link: https://www.facebook.com/events/1168880770416990

Demo Project: https://github.com/sickcodes/Docker-OSX

Description: 如何用 sickcodes/Docker-OSX 建立環境

虛擬化 #容器


sickcodes/Docker-OSX

https://github.com/sickcodes/Docker-OSX 使用黑蘋果 Hackintosh osx-kvm docker-osx可能違反相關用戶協議,除非你用於資安研究 Disclaimer https://sick.codes/is-hackintosh-osx-kvm-or-docker-osx-legal/


opencore+qemu+docker+OSX = Docker-OSX


OSX-KVM - 1/2

https://github.com/kholia/OSX-KVM


OSX-KVM - 2/2


why Docker

My Env

Windows11 wsl2 https://github.com/sickcodes/Docker-OSX#id-like-to-run-docker-osx-on-windows ref : WSL+Docker+Apple MacOS X Big Sur installation in Windows 11 - YouTube


Docker-OSX WSL step 1/2

docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e GENERATE_UNIQUE=true \
    -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/\
    osx-serial-generator/master/config-custom.plist' \
    sickcodes/docker-osx:ventura

Docker-OSX WSL step 2/2


modify RAM setting

xcode simulator need more than 4GB ram to start https://github.com/sickcodes/Docker-OSX/issues/197

  • backup previous containers mac_hdd_ng_auto.img
  • use sickcodes/docker-osx:naked
    
    docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -v "${PWD}/mac_hdd_ng_auto.img:/image" \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e GENERATE_UNIQUE=true \
    -e MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/custom/config-nopicker-custom.plist \
    sickcodes/docker-osx:naked


---