So we can start various services like sparkd, pubsub, ds publishers, ds webapp, etc. from inside the devcontainer.
44 lines
1.4 KiB
JSON
44 lines
1.4 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",
|
|
"source=/var/run/docker.sock,target=/var/run/docker.sock,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"
|
|
]
|
|
}
|
|
}
|
|
}
|