summaryrefslogtreecommitdiff
path: root/.devcontainer
diff options
context:
space:
mode:
authorinnovaker <66737976+innovaker@users.noreply.github.com>2020-12-03 06:48:11 +0000
committerPete Johanson <peter@peterjohanson.com>2020-12-14 22:49:28 -0500
commit019f7f5465c97bef78bbe490d6b33a5ba7ea61fc (patch)
treef0573df6a5b3abe861195ddb0973b70ad1be3f77 /.devcontainer
parentae63ce5ee70ed898a07b6eade10c2d5ee13c496d (diff)
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
Diffstat (limited to '.devcontainer')
-rw-r--r--.devcontainer/devcontainer.json5
1 files changed, 4 insertions, 1 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 788addb..1477df7 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"