From 2523a1052b0f5904e4586ad4384f59a7a33bb2a8 Mon Sep 17 00:00:00 2001 From: kuviman <kuviman@gmail.com> Date: Wed, 15 Jan 2025 19:37:42 +0000 Subject: [PATCH 1/4] vscode launch option --- .vscode/launch.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..c6ab08d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,18 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Run dev", + "runtimeExecutable": "next", + "cwd": "${workspaceFolder}", + "args": [ + "dev" + ] + } + ] +} \ No newline at end of file From e63f40c69b92fcfedeaa2f0363aca871e6b81ab8 Mon Sep 17 00:00:00 2001 From: kuviman <kuviman@gmail.com> Date: Wed, 15 Jan 2025 18:06:20 +0000 Subject: [PATCH 2/4] devcontainer typescript-node template --- .devcontainer/devcontainer.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..ee45b8e --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,22 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node +{ + "name": "Node.js & TypeScript", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm" + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "yarn install", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} From 606a0695d8f0ee8d75d0d0106f47e23be408eec7 Mon Sep 17 00:00:00 2001 From: kuviman <kuviman@gmail.com> Date: Wed, 15 Jan 2025 19:11:02 +0000 Subject: [PATCH 3/4] mount .ssh in devcontainer --- .devcontainer/devcontainer.json | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ee45b8e..6b07498 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,20 +3,18 @@ { "name": "Node.js & TypeScript", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm" - + "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", + "mounts": [ + "type=bind,source=${localEnv:HOME}/.ssh,target=/home/node/.ssh,readonly" + ] // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, - // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "yarn install", - // Configure tool-specific properties. // "customizations": {}, - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" -} +} \ No newline at end of file From 6d857ffc49f60d07e166c3df6bbf1af079269bd1 Mon Sep 17 00:00:00 2001 From: kuviman <kuviman@gmail.com> Date: Wed, 15 Jan 2025 19:11:44 +0000 Subject: [PATCH 4/4] link comment about mounting .ssh --- .devcontainer/devcontainer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6b07498..e5dff2d 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,6 +4,7 @@ "name": "Node.js & TypeScript", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", + // https://github.com/csci430-os/vscode-remote-devcontainer/issues/2#issuecomment-1939950604 "mounts": [ "type=bind,source=${localEnv:HOME}/.ssh,target=/home/node/.ssh,readonly" ]