|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
| 2 | +// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile |
| 3 | +{ |
| 4 | + "name": "appdaemon-dev", |
| 5 | + "build": { |
| 6 | + // Sets the run context to one level up instead of the .devcontainer folder. |
| 7 | + "context": "..", |
| 8 | + // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. |
| 9 | + "dockerfile": "Dockerfile", |
| 10 | + "args": { |
| 11 | + "PYTHON_RELEASE": "3.13" // This overrides the default of 3.12 |
| 12 | + } |
| 13 | + }, |
| 14 | + |
| 15 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 16 | + // "features": {}, |
| 17 | + |
| 18 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 19 | + //"forwardPorts": ["4949:4949"], |
| 20 | + "appPort": [ "4949:4949" ], |
| 21 | + // Uncomment the next line to run commands after the container is created. |
| 22 | + // "postCreateCommand": "cat /etc/os-release", |
| 23 | + |
| 24 | + // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. |
| 25 | + // "remoteUser": "devcontainer" |
| 26 | + |
| 27 | + "mounts": [ |
| 28 | + "source=${localEnv:HOME}${localEnv:USERPROFILE}/production/,target=/conf,type=bind,consistency=cached" |
| 29 | + ], |
| 30 | + |
| 31 | + // Configure tool-specific properties. |
| 32 | + "customizations": { |
| 33 | + "vscode": { |
| 34 | + "extensions": [ |
| 35 | + "ms-python.python", |
| 36 | + "njpwerner.autodocstring", |
| 37 | + //"ms-python.black-formatter", |
| 38 | + //"ms-python.isort", |
| 39 | + "shd101wyy.markdown-preview-enhanced", |
| 40 | + //"ms-python.pylint", |
| 41 | + "DavidAnson.vscode-markdownlint", |
| 42 | + "ms-python.debugpy", |
| 43 | + "njqdev.vscode-python-typehint", |
| 44 | + "charliermarsh.ruff", |
| 45 | + "ms-python.vscode-pylance", |
| 46 | + "lkytal.quicktask", |
| 47 | + "ms-azuretools.vscode-docker", |
| 48 | + "github.vscode-github-actions", |
| 49 | + "eamodio.gitlens", |
| 50 | + "Gruntfuggly.todo-tree", |
| 51 | + "tamasfe.even-better-toml" |
| 52 | + ] |
| 53 | + |
| 54 | + } |
| 55 | + } |
| 56 | +} |
0 commit comments