From 0a1a4fbf097798278a2c3a71ba280f7190659aa6 Mon Sep 17 00:00:00 2001 From: Kenneth Date: Sat, 28 Feb 2026 01:03:04 +0000 Subject: [PATCH 1/3] Add devcontainer with Node.js 22 and Bun Installs dependencies for both root and example/ on container creation. Co-authored-by: Ona --- .devcontainer/Dockerfile | 6 ++++++ .devcontainer/devcontainer.json | 14 ++++++++++++++ 2 files changed, 20 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 0000000..2510926 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,6 @@ +FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04 + +RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ + && apt-get -y install --no-install-recommends \ + curl unzip git ca-certificates \ + && rm -rf /var/lib/apt/lists/* diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..58ffcf8 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,14 @@ +{ + "name": "jrx", + "build": { + "context": ".", + "dockerfile": "Dockerfile" + }, + "features": { + "ghcr.io/devcontainers/features/node:1": { + "version": "22" + }, + "ghcr.io/nickvdyck/devcontainer-features/bun:1": {} + }, + "postCreateCommand": "bun install && cd example && bun install" +} From acf9f7f696aafd7549bf092b5ff07d3be775befc Mon Sep 17 00:00:00 2001 From: Kenneth Date: Sat, 28 Feb 2026 01:06:50 +0000 Subject: [PATCH 2/3] =?UTF-8?q?Remove=20Node.js=20feature=20=E2=80=94=20Bu?= =?UTF-8?q?n=20handles=20everything?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ona --- .devcontainer/devcontainer.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 58ffcf8..3db225a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,9 +5,6 @@ "dockerfile": "Dockerfile" }, "features": { - "ghcr.io/devcontainers/features/node:1": { - "version": "22" - }, "ghcr.io/nickvdyck/devcontainer-features/bun:1": {} }, "postCreateCommand": "bun install && cd example && bun install" From 403d40ab8cef8e9f559dc51b933bf4d2e3f595a5 Mon Sep 17 00:00:00 2001 From: Kenneth Date: Sat, 28 Feb 2026 01:09:08 +0000 Subject: [PATCH 3/3] Install bun from Dockerfile instead of devcontainer feature Co-authored-by: Ona --- .devcontainer/Dockerfile | 4 ++++ .devcontainer/devcontainer.json | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 2510926..ed3f8bc 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -4,3 +4,7 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ && apt-get -y install --no-install-recommends \ curl unzip git ca-certificates \ && rm -rf /var/lib/apt/lists/* + +RUN curl -fsSL https://bun.sh/install | bash \ + && ln -s /root/.bun/bin/bun /usr/local/bin/bun \ + && ln -s /root/.bun/bin/bunx /usr/local/bin/bunx diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3db225a..67b3c52 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,8 +4,5 @@ "context": ".", "dockerfile": "Dockerfile" }, - "features": { - "ghcr.io/nickvdyck/devcontainer-features/bun:1": {} - }, "postCreateCommand": "bun install && cd example && bun install" }