From 72b46d0c0bd89b9a6b8c336d850c4d31d1d33747 Mon Sep 17 00:00:00 2001 From: sireeshajonnalagadda Date: Mon, 4 Aug 2025 07:57:04 +0000 Subject: [PATCH 1/4] bumping up the version to use the latest lts --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 956d8cbe58..5fb5704c16 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ { - "image": "mcr.microsoft.com/devcontainers/javascript-node:0-18", + "image": "mcr.microsoft.com/devcontainers/javascript-node:3-22", "features": { "ghcr.io/devcontainers/features/docker-in-docker:2": {}, "ghcr.io/devcontainers/features/azure-cli:1": {} From 0db83c90f254b818e7767b924ebaf76978b9ccb3 Mon Sep 17 00:00:00 2001 From: sireeshajonnalagadda Date: Tue, 5 Aug 2025 05:52:27 +0000 Subject: [PATCH 2/4] codespace with ubuntu image and node user --- .devcontainer/Dockerfile | 7 +++++++ .devcontainer/devcontainer.json | 8 ++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .devcontainer/Dockerfile diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000000..7db1ecdbb7 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,7 @@ +FROM mcr.microsoft.com/devcontainers/base:noble + +RUN if id "vscode" &>/dev/null; then \ + echo "Deleting user 'vscode' for noble" && userdel -f -r vscode || echo "Failed to delete vscode user for noble"; \ + else \ + echo "User 'vscode' does not exist for noble"; \ + fi \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 5fb5704c16..f0cc0f8ba3 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,9 +1,13 @@ { - "image": "mcr.microsoft.com/devcontainers/javascript-node:3-22", + "build": { + "dockerfile":"Dockerfile" + }, "features": { "ghcr.io/devcontainers/features/docker-in-docker:2": {}, - "ghcr.io/devcontainers/features/azure-cli:1": {} + "ghcr.io/devcontainers/features/azure-cli:1": {}, + "ghcr.io/devcontainers/features/common-utils:2": {} }, + "remoteUser": "node", "postCreateCommand": "npm install -g @devcontainers/cli", "customizations": { "vscode": { From 2606f19e14f940830ba8f85ec2d9bc4bb293e3e9 Mon Sep 17 00:00:00 2001 From: sireeshajonnalagadda Date: Wed, 6 Aug 2025 07:07:16 +0000 Subject: [PATCH 3/4] node feature addition --- .devcontainer/Dockerfile | 4 ++-- .devcontainer/devcontainer.json | 11 ++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 7db1ecdbb7..2f34715828 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,7 +1,7 @@ FROM mcr.microsoft.com/devcontainers/base:noble - RUN if id "vscode" &>/dev/null; then \ echo "Deleting user 'vscode' for noble" && userdel -f -r vscode || echo "Failed to delete vscode user for noble"; \ else \ echo "User 'vscode' does not exist for noble"; \ - fi \ No newline at end of file + fi + \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f0cc0f8ba3..0f3c329d67 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,9 +5,13 @@ "features": { "ghcr.io/devcontainers/features/docker-in-docker:2": {}, "ghcr.io/devcontainers/features/azure-cli:1": {}, - "ghcr.io/devcontainers/features/common-utils:2": {} + "ghcr.io/devcontainers/features/common-utils:2": { + "username": "node", + "userUid": "1000", + "userGid": "1000" + }, + "ghcr.io/devcontainers/features/node:1": {} }, - "remoteUser": "node", "postCreateCommand": "npm install -g @devcontainers/cli", "customizations": { "vscode": { @@ -17,5 +21,6 @@ "EditorConfig.EditorConfig" ] } - } + }, + "remoteUser":"node" } From 4e3b1556cb015fb9f57512147da3d00d9e5bee27 Mon Sep 17 00:00:00 2001 From: sireeshajonnalagadda Date: Wed, 6 Aug 2025 07:21:18 +0000 Subject: [PATCH 4/4] addition of git-lfs feature in devcontainer.json --- .devcontainer/devcontainer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 0f3c329d67..6e8fc507f8 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -10,7 +10,8 @@ "userUid": "1000", "userGid": "1000" }, - "ghcr.io/devcontainers/features/node:1": {} + "ghcr.io/devcontainers/features/node:1": {}, + "ghcr.io/devcontainers/features/git-lfs:1": {} }, "postCreateCommand": "npm install -g @devcontainers/cli", "customizations": {