1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "PyiCloud Dev",
"build": {
"dockerfile": "Dockerfile"
},
"containerEnv": {
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}",
"DEVCONTAINER": "1"
},
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/java:1": {
"jdkDistro": "open",
"gradleVersion": "latest",
"mavenVersion": "latest",
"antVersion": "latest",
"groovyVersion": "latest"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "lts",
"pnpmVersion": "latest",
"nvmVersion": "latest"
},
"ghcr.io/devcontainers-extra/features/uv": {},
"ghcr.io/devcontainers-extra/features/pre-commit:2": {}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "scripts/setup.sh",
// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"donjayamanne.python-extension-pack",
"shyykoserhiy.git-autoconfig",
"ms-python.vscode-pylance",
"redhat.vscode-yaml",
"esbenp.prettier-vscode",
"ms-python.pylint",
"ms-python.isort",
"ms-python.python",
"ryanluker.vscode-coverage-gutters",
"donjayamanne.git-extension-pack",
"github.vscode-github-actions",
"elagil.pre-commit-helper",
"sonarsource.sonarlint-vscode",
"charliermarsh.ruff",
"ms-azuretools.vscode-docker",
"coderabbit.coderabbit-vscode",
"foxundermoon.shell-format"
],
"settings": {
"sonarlint.ls.javaHome": "/usr/local/sdkman/candidates/java/current",
"editor.tabSize": 4,
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/usr/bin/zsh",
"args": [
"-l"
]
}
},
"terminal.integrated.defaultProfile.linux": "zsh"
}
}
},
"mounts": [
"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached"
]
}
|