From 606a0695d8f0ee8d75d0d0106f47e23be408eec7 Mon Sep 17 00:00:00 2001 From: kuviman Date: Wed, 15 Jan 2025 19:11:02 +0000 Subject: [PATCH] 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