From 019f7f5465c97bef78bbe490d6b33a5ba7ea61fc Mon Sep 17 00:00:00 2001 From: innovaker <66737976+innovaker@users.noreply.github.com> Date: Thu, 3 Dec 2020 06:48:11 +0000 Subject: [PATCH] feat(devcontainer): add volume mount for root user Caches VS Code extensions and other profile settings between zmk containers. Based on advice from KemoNine. PR: #479 --- .devcontainer/devcontainer.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 788addbe..1477df74 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,10 @@ "dockerFile": "Dockerfile", "runArgs": ["--security-opt", "label=disable"], "containerEnv": { "WORKSPACE_DIR": "${containerWorkspaceFolder}" }, - "mounts": ["type=volume,source=zmk-config,target=/workspaces/zmk-config"], + "mounts": [ + "type=volume,source=zmk-root-user,target=/root", + "type=volume,source=zmk-config,target=/workspaces/zmk-config" + ], "extensions": ["ms-vscode.cpptools"], "settings": { "terminal.integrated.shell.linux": "/bin/bash"