From 35f36636e188ba8cc5f3fe278c594d0d2cb98e8d Mon Sep 17 00:00:00 2001 From: Vecko <36369090+VeckoTheGecko@users.noreply.github.com> Date: Wed, 19 Nov 2025 18:38:53 +0100 Subject: [PATCH 1/4] Add GitHub Codespaces config Add GitHub Codespaces config following https://pixi.sh/latest/integration/editor/vscode/#devcontainer-extension allowing people to develop from anywhere. Waiting for #10888 --- .devcontainer/Dockerfile | 13 +++++++++++++ .devcontainer/devcontainer.json | 20 ++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000000..824fb1416e6 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,13 @@ +FROM mcr.microsoft.com/devcontainers/base:jammy + +ARG PIXI_VERSION=v0.59.0 + +RUN curl -L -o /usr/local/bin/pixi -fsSL --compressed "https://github.com/prefix-dev/pixi/releases/download/${PIXI_VERSION}/pixi-$(uname -m)-unknown-linux-musl" \ + && chmod +x /usr/local/bin/pixi \ + && pixi info + +# set some user and workdir settings to work nicely with vscode +USER vscode +WORKDIR /home/vscode + +RUN echo 'eval "$(pixi completion -s bash)"' >> /home/vscode/.bashrc diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000000..87824244819 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,20 @@ +{ + "name": "my-workspace", + "build": { + "dockerfile": "Dockerfile", + "context": ".." + }, + "customizations": { + "vscode": { + "settings": {}, + "extensions": ["ms-python.python", "charliermarsh.ruff", "GitHub.copilot"] + } + }, + "features": { + "ghcr.io/devcontainers/environments/docker-in-docker:2": {} + }, + "mounts": [ + "source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume" + ], + "postCreateCommand": "sudo chown vscode .pixi && pixi install" +} From 6aafd5d034a87c1103649dc20c725f090e795c4c Mon Sep 17 00:00:00 2001 From: Vecko <36369090+VeckoTheGecko@users.noreply.github.com> Date: Tue, 2 Dec 2025 19:29:41 +0100 Subject: [PATCH 2/4] Fix link to docker container Previous link 404s --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 87824244819..eedacb0fc39 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -11,7 +11,7 @@ } }, "features": { - "ghcr.io/devcontainers/environments/docker-in-docker:2": {} + "ghcr.io/devcontainers/features/docker-in-docker:2": {} }, "mounts": [ "source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume" From 043734721828ac275513260e0d56677982f91d14 Mon Sep 17 00:00:00 2001 From: Vecko <36369090+VeckoTheGecko@users.noreply.github.com> Date: Tue, 2 Dec 2025 19:38:41 +0100 Subject: [PATCH 3/4] Set a minimum requirement of 16 Gb ram The pixi lock solve was hanging with 8Gb - the memory was being saturated. --- .devcontainer/devcontainer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index eedacb0fc39..254efc66254 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,6 +4,9 @@ "dockerfile": "Dockerfile", "context": ".." }, + "hostRequirements": { + "memory": "16gb" + }, "customizations": { "vscode": { "settings": {}, From 4cd9d22bcd221bfa13ea940e694aa946a356bc3b Mon Sep 17 00:00:00 2001 From: Vecko <36369090+VeckoTheGecko@users.noreply.github.com> Date: Tue, 2 Dec 2025 20:03:41 +0100 Subject: [PATCH 4/4] Set min cpus to 4 --- .devcontainer/devcontainer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 254efc66254..6153129a851 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,6 +5,7 @@ "context": ".." }, "hostRequirements": { + "cpus": 4, "memory": "16gb" }, "customizations": {