From 9a8afcf237fdb8e1bf45e446a03b9eb2736e2a3b Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 16 Oct 2025 08:55:31 +0200 Subject: [PATCH] feat: Make macOS version selectable in Codespaces (#347) --- .devcontainer/10/devcontainer.json | 24 +++++++++++++++++++ .devcontainer/11/devcontainer.json | 24 +++++++++++++++++++ .devcontainer/12/devcontainer.json | 24 +++++++++++++++++++ .devcontainer/13/devcontainer.json | 24 +++++++++++++++++++ .devcontainer/15/devcontainer.json | 24 +++++++++++++++++++ {.github => .devcontainer}/codespaces.yml | 0 .../devcontainer.json | 4 ++-- 7 files changed, 122 insertions(+), 2 deletions(-) create mode 100644 .devcontainer/10/devcontainer.json create mode 100644 .devcontainer/11/devcontainer.json create mode 100644 .devcontainer/12/devcontainer.json create mode 100644 .devcontainer/13/devcontainer.json create mode 100644 .devcontainer/15/devcontainer.json rename {.github => .devcontainer}/codespaces.yml (100%) rename .devcontainer.json => .devcontainer/devcontainer.json (84%) diff --git a/.devcontainer/10/devcontainer.json b/.devcontainer/10/devcontainer.json new file mode 100644 index 0000000..0790abd --- /dev/null +++ b/.devcontainer/10/devcontainer.json @@ -0,0 +1,24 @@ +{ + "name": "macOS 10 (Catalina)", + "service": "macos", + "containerEnv": { + "VERSION": "10", + "RAM_SIZE": "max", + "DISK_SIZE": "max", + "CPU_CORES": "max" + }, + "forwardPorts": [8006], + "portsAttributes": { + "8006": { + "label": "Web", + "onAutoForward": "openBrowser" + } + }, + "otherPortsAttributes": { + "onAutoForward": "silent" + }, + "hostRequirements": { + "storage": "64gb" + }, + "dockerComposeFile": "../codespaces.yml" +} diff --git a/.devcontainer/11/devcontainer.json b/.devcontainer/11/devcontainer.json new file mode 100644 index 0000000..c7d7335 --- /dev/null +++ b/.devcontainer/11/devcontainer.json @@ -0,0 +1,24 @@ +{ + "name": "macOS 11 (Big Sur)", + "service": "macos", + "containerEnv": { + "VERSION": "11", + "RAM_SIZE": "max", + "DISK_SIZE": "max", + "CPU_CORES": "max" + }, + "forwardPorts": [8006], + "portsAttributes": { + "8006": { + "label": "Web", + "onAutoForward": "openBrowser" + } + }, + "otherPortsAttributes": { + "onAutoForward": "silent" + }, + "hostRequirements": { + "storage": "64gb" + }, + "dockerComposeFile": "../codespaces.yml" +} diff --git a/.devcontainer/12/devcontainer.json b/.devcontainer/12/devcontainer.json new file mode 100644 index 0000000..c015a81 --- /dev/null +++ b/.devcontainer/12/devcontainer.json @@ -0,0 +1,24 @@ +{ + "name": "macOS 12 (Monterey)", + "service": "macos", + "containerEnv": { + "VERSION": "12", + "RAM_SIZE": "max", + "DISK_SIZE": "max", + "CPU_CORES": "max" + }, + "forwardPorts": [8006], + "portsAttributes": { + "8006": { + "label": "Web", + "onAutoForward": "openBrowser" + } + }, + "otherPortsAttributes": { + "onAutoForward": "silent" + }, + "hostRequirements": { + "storage": "64gb" + }, + "dockerComposeFile": "../codespaces.yml" +} diff --git a/.devcontainer/13/devcontainer.json b/.devcontainer/13/devcontainer.json new file mode 100644 index 0000000..5d1aed8 --- /dev/null +++ b/.devcontainer/13/devcontainer.json @@ -0,0 +1,24 @@ +{ + "name": "macOS 13 (Ventura)", + "service": "macos", + "containerEnv": { + "VERSION": "13", + "RAM_SIZE": "max", + "DISK_SIZE": "max", + "CPU_CORES": "max" + }, + "forwardPorts": [8006], + "portsAttributes": { + "8006": { + "label": "Web", + "onAutoForward": "openBrowser" + } + }, + "otherPortsAttributes": { + "onAutoForward": "silent" + }, + "hostRequirements": { + "storage": "64gb" + }, + "dockerComposeFile": "../codespaces.yml" +} diff --git a/.devcontainer/15/devcontainer.json b/.devcontainer/15/devcontainer.json new file mode 100644 index 0000000..24177b4 --- /dev/null +++ b/.devcontainer/15/devcontainer.json @@ -0,0 +1,24 @@ +{ + "name": "macOS 15 (Sequoia)", + "service": "macos", + "containerEnv": { + "VERSION": "15", + "RAM_SIZE": "max", + "DISK_SIZE": "max", + "CPU_CORES": "max" + }, + "forwardPorts": [8006], + "portsAttributes": { + "8006": { + "label": "Web", + "onAutoForward": "openBrowser" + } + }, + "otherPortsAttributes": { + "onAutoForward": "silent" + }, + "hostRequirements": { + "storage": "64gb" + }, + "dockerComposeFile": "../codespaces.yml" +} diff --git a/.github/codespaces.yml b/.devcontainer/codespaces.yml similarity index 100% rename from .github/codespaces.yml rename to .devcontainer/codespaces.yml diff --git a/.devcontainer.json b/.devcontainer/devcontainer.json similarity index 84% rename from .devcontainer.json rename to .devcontainer/devcontainer.json index 0642e42..8b24401 100644 --- a/.devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ { - "name": "macOS 14", + "name": "macOS 14 (Sonoma)", "service": "macos", "containerEnv": { "VERSION": "14", @@ -20,5 +20,5 @@ "hostRequirements": { "storage": "64gb" }, - "dockerComposeFile": ".github/codespaces.yml" + "dockerComposeFile": "codespaces.yml" }