-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdevcontainer.json
More file actions
81 lines (81 loc) · 2.94 KB
/
devcontainer.json
File metadata and controls
81 lines (81 loc) · 2.94 KB
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
76
77
78
79
80
81
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose
{
"name": "DANDI Archive Django",
"dockerComposeFile": [
"../docker-compose.yml",
"../docker-compose.override.yml"
],
"service": "django",
"overrideCommand": true,
"workspaceFolder": "/home/vscode/dandi",
"containerEnv": {
// TODO: forwardPorts should instead be used, but it appears to be broken
// on linux and not macos.
"VITE_HOST": "0.0.0.0"
},
"features": {
"ghcr.io/robbert229/devcontainer-features/postgresql-client:1": {
"version": 17
},
"ghcr.io/nils-geistmann/devcontainers-features/zsh:0": {},
"ghcr.io/devcontainers-extra/features/fish-apt-get:1": {},
"ghcr.io/devcontainers/features/aws-cli:1": {},
"ghcr.io/devcontainers-extra/features/heroku-cli:1.0.5": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/node:1": {
"version": "v24.14.1"
}
},
"customizations": {
"vscode": {
"extensions": [
// this removes the extension the AWS feature adds, see https://github.com/devcontainers/features/issues/1228
"-AmazonWebServices.aws-toolkit-vscode",
"tamasfe.even-better-toml",
"matangover.mypy",
"ms-python.debugpy",
"charliermarsh.ruff",
"ms-python.python",
"ms-python.vscode-pylance",
"Vue.volar"
],
"settings": {
// disable pylance type checking in lieu of using the mypy extension since
// it will match CI/tox.
"python.analysis.typeCheckingMode": "off",
"python.analysis.gotoDefinitionInStringLiteral": true,
"python.defaultInterpreterPath": "/home/vscode/uv-env/bin/python",
"python.testing.pytestEnabled": true,
"python.analysis.autoImportCompletions": true,
"mypy.enabled": true,
// allow for auto-importing from deeper symbols inside of django
"python.analysis.packageIndexDepths": [
{"name": "django", "depth": 6}
],
"mypy.runUsingActiveInterpreter": true,
"ruff.importStrategy": "fromEnvironment"
}
}
},
"portsAttributes": {
"8000": {
"name": "Django",
"onAutoForward": "ignore"
},
"9000": {
"name": "MinIO",
"onAutoForward": "ignore"
},
"9001": {
"name": "MinIO Console",
"onAutoForward": "ignore"
}
},
"updateContentCommand": [
"uv",
"sync",
"--all-extras",
"--all-groups"
]
}