So we don't need to worry about publishing the right ports (and don't need to rebuild the container everytime the list of ports changes).
43 lines
1.3 KiB
JSON
43 lines
1.3 KiB
JSON
{
|
|
"dockerFile": "Dockerfile",
|
|
// Creates local dir to mount to HOME in docker
|
|
"initializeCommand": "mkdir -p ${localEnv:HOME}/.bts/devcontainer-mounts/${devcontainerId}",
|
|
"hostRequirements": {
|
|
"memory": "4gb",
|
|
"storage": "6gb"
|
|
},
|
|
"postCreateCommand": "/home/bts/spark/docker/sparkd/dev/devcontainer_post_create.sh",
|
|
"containerUser": "bts",
|
|
"workspaceMount": "source=${localWorkspaceFolder},target=/home/bts/spark,type=bind",
|
|
"workspaceFolder": "/home/bts/spark",
|
|
"updateRemoteUserUID": true,
|
|
"shutdownAction": "none",
|
|
// Note: If running multiple containers on the same host, each must use a
|
|
// unique set of ports. Usually we just add 1000 to each port as needed. For
|
|
// example, if 8000-8003 is taken, go with 9000-9003, then 10000-10003, etc.
|
|
"runArgs": [
|
|
"--shm-size",
|
|
"2gb",
|
|
"--network",
|
|
"host"
|
|
],
|
|
"mounts": [
|
|
"source=${localEnv:HOME}/.bts/devcontainer-mounts/${devcontainerId},target=/home/bts,type=bind"
|
|
],
|
|
"customizations": {
|
|
"vscode": {
|
|
"settings": {
|
|
"clangd.arguments": [
|
|
"--compile-commands-dir=${workspaceFolder}/build/clang/debug"
|
|
]
|
|
},
|
|
"extensions": [
|
|
"eamodio.gitlens",
|
|
"llvm-vs-code-extensions.vscode-clangd",
|
|
"ms-vscode.cmake-tools",
|
|
"ms-vscode.cpptools"
|
|
]
|
|
}
|
|
}
|
|
}
|