feat: Set default to Sonoma (#321)

This commit is contained in:
Kroese 2025-09-30 11:33:07 +02:00 committed by GitHub
parent 1f31b50ff8
commit 45b966703e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 9 deletions

View file

@ -47,7 +47,7 @@ ADD $REPO_KVM_OPENCORE/releases/download/$VERSION_KVM_OPENCORE/OpenCore-$VERSION
VOLUME /storage
EXPOSE 5900 8006
ENV VERSION="13"
ENV VERSION="14"
ENV RAM_SIZE="4G"
ENV CPU_CORES="2"
ENV DISK_SIZE="64G"

View file

@ -3,7 +3,7 @@ services:
image: dockurr/macos
container_name: macos
environment:
VERSION: "13"
VERSION: "14"
devices:
- /dev/kvm
- /dev/net/tun

View file

@ -31,7 +31,7 @@ spec:
image: dockurr/macos
env:
- name: VERSION
value: "13"
value: "14"
- name: DISK_SIZE
value: "64G"
ports:

View file

@ -30,7 +30,7 @@ services:
image: dockurr/macos
container_name: macos
environment:
VERSION: "13"
VERSION: "14"
devices:
- /dev/kvm
- /dev/net/tun
@ -49,7 +49,7 @@ services:
##### Via Docker CLI:
```bash
docker run -it --rm --name macos -p 8006:8006 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN -v "${PWD:-.}/macos:/storage" --stop-timeout 120 dockurr/macos
docker run -it --rm --name macos -e "VERSION=14" -p 8006:8006 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN -v "${PWD:-.}/macos:/storage" --stop-timeout 120 dockurr/macos
```
##### Via Kubernetes:
@ -84,11 +84,11 @@ kubectl apply -f https://raw.githubusercontent.com/dockur/macos/refs/heads/maste
### How do I select the version of macOS?
By default, macOS 13 (Ventura) will be installed, but you can add the `VERSION` environment variable in order to specify an alternative:
By default, macOS 14 (Sonoma) will be installed, but you can add the `VERSION` environment variable in order to specify an alternative:
```yaml
environment:
VERSION: "13"
VERSION: "14"
```
Select from the values below:

View file

@ -133,8 +133,10 @@ install() {
local board
local version="$1"
local dest="$2"
case "${version,,}" in
"tahoe" | "16"* )
board="Mac-CFF7D910A743CAAF" ;;
"sequoia" | "15"* )
board="Mac-937A206F2EE63C01" ;;
"sonoma" | "14"* )
@ -248,7 +250,7 @@ VERSION=$(expr "$VERSION" : "^\ *\(.*[^ ]\)\ *$")
if [ -z "$VERSION" ]; then
VERSION="13"
VERSION="14"
warn "no value specified for the VERSION variable, defaulting to \"${VERSION}\"."
fi