diff options
author | innovaker <[email protected]> | 2020-12-03 06:48:11 +0000 |
---|---|---|
committer | Pete Johanson <[email protected]> | 2020-12-14 22:49:28 -0500 |
commit | 019f7f5465c97bef78bbe490d6b33a5ba7ea61fc (patch) | |
tree | f0573df6a5b3abe861195ddb0973b70ad1be3f77 /.devcontainer | |
parent | ae63ce5ee70ed898a07b6eade10c2d5ee13c496d (diff) | |
download | zmk-019f7f5465c97bef78bbe490d6b33a5ba7ea61fc.tar.gz zmk-019f7f5465c97bef78bbe490d6b33a5ba7ea61fc.zip |
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.json | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 788addbe0e..1477df74be 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" |