2023-02-10 17:45:41 +00:00
|
|
|
// For format details, see https://aka.ms/devcontainer.json
|
|
|
|
|
{
|
|
|
|
|
"name": "pallets/flask",
|
2023-02-24 08:38:21 -08:00
|
|
|
"image": "mcr.microsoft.com/devcontainers/python:3",
|
2023-02-10 17:45:41 +00:00
|
|
|
|
2023-02-17 23:53:55 +00:00
|
|
|
// Configure tool-specific properties.
|
|
|
|
|
"customizations": {
|
|
|
|
|
// Configure properties specific to VS Code.
|
|
|
|
|
"vscode": {
|
|
|
|
|
// Set *default* container specific settings.json values on container create.
|
|
|
|
|
"settings": {
|
2023-02-18 01:13:41 +00:00
|
|
|
// Settings for the python extension.
|
|
|
|
|
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
|
|
|
|
|
"python.terminal.activateEnvInCurrentTerminal": true,
|
2023-02-17 23:53:55 +00:00
|
|
|
"python.linting.enabled": true,
|
|
|
|
|
"python.linting.pylintEnabled": true
|
|
|
|
|
|
2023-02-18 01:13:41 +00:00
|
|
|
},
|
|
|
|
|
// Installs extensions on container create.
|
|
|
|
|
"extensions": [
|
|
|
|
|
"ms-python.python",
|
|
|
|
|
"ms-python.vscode-pylance"
|
|
|
|
|
]
|
2023-02-17 23:53:55 +00:00
|
|
|
}
|
2023-02-10 23:33:17 +00:00
|
|
|
},
|
|
|
|
|
|
2023-02-17 23:53:55 +00:00
|
|
|
// Displays a custom welcome message.
|
2023-02-10 19:30:33 +00:00
|
|
|
"onCreateCommand": "sudo cp .devcontainer/welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt",
|
2023-02-10 17:45:41 +00:00
|
|
|
|
2023-02-10 18:22:44 +00:00
|
|
|
// Runs the initial setup commands after the container is created.
|
2023-02-10 21:22:22 +00:00
|
|
|
"postCreateCommand": "sudo chmod +x .devcontainer/post-create-command.sh && .devcontainer/post-create-command.sh"
|
2023-02-10 17:45:41 +00:00
|
|
|
}
|