You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.2 KiB
34 lines
1.2 KiB
{
|
|
"name": "openpilot devcontainer",
|
|
"build": {
|
|
"dockerfile": "Dockerfile"
|
|
},
|
|
"postCreateCommand": "bash -c 'if [[ $DISPLAY == *xquartz* ]]; then echo \"export DISPLAY=host.docker.internal:0\" >> /root/.bashrc; fi'",
|
|
"postStartCommand": "git config --file .gitmodules --get-regexp path | awk '{ print $2 }' | xargs -I{} git config --global --add safe.directory \"$PWD/{}\"",
|
|
"initializeCommand": ".devcontainer/setup_host.sh",
|
|
"privileged": true,
|
|
"containerEnv": {
|
|
"DISPLAY": "${localEnv:DISPLAY}",
|
|
"PYTHONPATH": "${containerWorkspaceFolder}",
|
|
"force_color_prompt": "1"
|
|
},
|
|
"runArgs": [
|
|
"--volume=/tmp/.X11-unix:/tmp/.X11-unix",
|
|
"--volume=${localWorkspaceFolder}/.devcontainer/.Xauthority:/root/.Xauthority",
|
|
"--volume=${localEnv:HOME}/.comma:/root/.comma",
|
|
"--volume=/tmp/comma_download_cache:/tmp/comma_download_cache",
|
|
"--volume=/tmp/devcontainer_scons_cache:/tmp/scons_cache",
|
|
"--shm-size=1G"
|
|
],
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"ms-python.python",
|
|
"ms-vscode.cpptools",
|
|
"ms-toolsai.jupyter",
|
|
"guyskk.language-cython",
|
|
"lharri73.dbc"
|
|
]
|
|
}
|
|
}
|
|
} |