Created
June 4, 2024 16:49
-
-
Save myui/14b0632bc196dfcc07e430a45fb4f66a to your computer and use it in GitHub Desktop.
devcontainer.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | |
// https://github.com/microsoft/vscode-dev-containers/tree/v0.231.6/containers/docker-existing-dockerfile | |
{ | |
"name": "AutoML", | |
"image": "digdag/automl:3.8.1", | |
"runArgs": ["--platform=linux/amd64"], | |
"containerEnv": { | |
// To enable integrated terminal | |
"SHELL": "/bin/bash", | |
"HOME": "/home/td-user" | |
}, | |
// Use 'forwardPorts' to make a list of ports inside the container available locally. | |
"forwardPorts": [8888], | |
// To prevent permission errors | |
"containerUser": "td-user", | |
"workspaceFolder": "/home/td-user/automl", | |
// To fix the mount path | |
"workspaceMount": "source=${localWorkspaceFolder},target=/home/td-user/automl,type=bind", | |
// Set *default* container specific settings.json values on container create. | |
// Add the IDs of extensions you want installed when the container is created. | |
"customizations": { | |
"remote.SSH.useLocalServer": true, | |
"vscode": { | |
"settings": { | |
// Revisit when https://github.com/microsoft/vscode/issues/174632 is closed | |
"extensions.verifySignature": false, | |
"python.analysis.diagnosticSeverityOverrides": { | |
"reportUnknownVariableType": "none", | |
"reportUnknownArgumentType": "none", | |
"reportUnknownMemberType": "none" | |
}, | |
// Add the venv to PATH so that the Jupyter extension can find the kernel | |
// Only specifying PATH sometimes does not work | |
"python.venvPath": "/home/td-user/venv/v2023.01/bin", | |
"jupyter.notebookFileRoot": "${fileDirname}/notebooks" | |
}, | |
"extensions": [ | |
"GitHub.copilot", | |
"GitHub.copilot-chat", | |
"ms-toolsai.jupyter", | |
"ms-toolsai.vscode-jupyter-cell-tags", | |
"ms-python.python" | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment