|
| 1 | +// For format details, see https://containers.dev/implementors/json_reference/ |
| 2 | +{ |
| 3 | + "name": "pi23_gswdt_dev", |
| 4 | + "dockerComposeFile": [ |
| 5 | + "../local.yml" |
| 6 | + ], |
| 7 | + "init": true, |
| 8 | + "mounts": [ |
| 9 | + { |
| 10 | + "source": "./.devcontainer/bash_history", |
| 11 | + "target": "/home/dev-user/.bash_history", |
| 12 | + "type": "bind" |
| 13 | + }, |
| 14 | + { |
| 15 | + "source": "/tmp", |
| 16 | + "target": "/tmp", |
| 17 | + "type": "bind" |
| 18 | + }, |
| 19 | + { |
| 20 | + "source": "~/.ssh", |
| 21 | + "target": "/home/dev-user/.ssh", |
| 22 | + "type": "bind" |
| 23 | + } |
| 24 | + ], |
| 25 | + // Tells devcontainer.json supporting services / tools whether they should run |
| 26 | + // /bin/sh -c "while sleep 1000; do :; done" when starting the container instead of the container’s default command |
| 27 | + "overrideCommand": false, |
| 28 | + "service": "django", |
| 29 | + // "remoteEnv": {"PATH": "/home/dev-user/.local/bin:${containerEnv:PATH}"}, |
| 30 | + "remoteUser": "dev-user", |
| 31 | + "workspaceFolder": "/app", |
| 32 | + // Set *default* container specific settings.json values on container create. |
| 33 | + "customizations": { |
| 34 | + "vscode": { |
| 35 | + "settings": { |
| 36 | + "editor.formatOnSave": true, |
| 37 | + "[python]": { |
| 38 | + "analysis.autoImportCompletions": true, |
| 39 | + "analysis.typeCheckingMode": "basic", |
| 40 | + "defaultInterpreterPath": "/usr/local/bin/python", |
| 41 | + "editor.codeActionsOnSave": { |
| 42 | + "source.organizeImports": true |
| 43 | + }, |
| 44 | + // Uncomment when fixed |
| 45 | + // https://github.com/microsoft/vscode-remote-release/issues/8474 |
| 46 | + // "editor.defaultFormatter": "ms-python.black-formatter", |
| 47 | + "formatting.blackPath": "/usr/local/bin/black", |
| 48 | + "formatting.provider": "black", |
| 49 | + "languageServer": "Pylance", |
| 50 | + // "linting.banditPath": "/usr/local/py-utils/bin/bandit", |
| 51 | + "linting.enabled": true, |
| 52 | + "linting.flake8Enabled": true, |
| 53 | + "linting.flake8Path": "/usr/local/bin/flake8", |
| 54 | + "linting.mypyEnabled": true, |
| 55 | + "linting.mypyPath": "/usr/local/bin/mypy", |
| 56 | + "linting.pycodestylePath": "/usr/local/bin/pycodestyle", |
| 57 | + // "linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", |
| 58 | + "linting.pylintEnabled": true, |
| 59 | + "linting.pylintPath": "/usr/local/bin/pylint" |
| 60 | + } |
| 61 | + }, |
| 62 | + // https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_vs-code-specific-properties |
| 63 | + // Add the IDs of extensions you want installed when the container is created. |
| 64 | + "extensions": [ |
| 65 | + "davidanson.vscode-markdownlint", |
| 66 | + "mrmlnc.vscode-duplicate", |
| 67 | + "visualstudioexptteam.vscodeintellicode", |
| 68 | + "visualstudioexptteam.intellicode-api-usage-examples", |
| 69 | + // python |
| 70 | + "ms-python.python", |
| 71 | + "ms-python.vscode-pylance", |
| 72 | + "ms-python.isort", |
| 73 | + "ms-python.black-formatter", |
| 74 | + // django |
| 75 | + "batisteo.vscode-django" |
| 76 | + ] |
| 77 | + } |
| 78 | + }, |
| 79 | + // Uncomment the next line if you want start specific services in your Docker Compose config. |
| 80 | + // "runServices": [], |
| 81 | + // Uncomment the next line if you want to keep your containers running after VS Code shuts down. |
| 82 | + // "shutdownAction": "none", |
| 83 | + // Uncomment the next line to run commands after the container is created. |
| 84 | + "postCreateCommand": "cat .devcontainer/bashrc.override.sh >> ~/.bashrc" |
| 85 | +} |
0 commit comments