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
This commit is contained in:
innovaker 2020-12-03 06:48:11 +00:00 committed by Pete Johanson
parent ae63ce5ee7
commit 019f7f5465

View file

@ -3,7 +3,10 @@
"dockerFile": "Dockerfile", "dockerFile": "Dockerfile",
"runArgs": ["--security-opt", "label=disable"], "runArgs": ["--security-opt", "label=disable"],
"containerEnv": { "WORKSPACE_DIR": "${containerWorkspaceFolder}" }, "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"], "extensions": ["ms-vscode.cpptools"],
"settings": { "settings": {
"terminal.integrated.shell.linux": "/bin/bash" "terminal.integrated.shell.linux": "/bin/bash"