-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdevcontainer.json
More file actions
107 lines (99 loc) · 3.46 KB
/
Copy pathdevcontainer.json
File metadata and controls
107 lines (99 loc) · 3.46 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"name": "ER Server Dev Container",
"build": {
"dockerfile": "Dockerfile",
"context": "..",
"args": {
"WORKSPACE_FOLDERNAME": "${localWorkspaceFolderBasename}",
"UV_PROJECT_ENVIRONMENT": "/home/vscode/.venv"
}
},
"features": {
},
"containerEnv": {
"UV_PROJECT_ENVIRONMENT": "/home/vscode/.venv",
"SHELL": "/bin/bash"
},
"customizations": {
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "/bin/bash"
}
},
"python.defaultInterpreterPath": "/home/vscode/.venv/bin/python",
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-python.black-formatter",
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.flake8",
"meta.pyrefly",
"eamodio.gitlens",
"yzhang.markdown-all-in-one",
"njpwerner.autodocstring",
"ms-python.isort",
"humao.rest-client",
"visualstudioexptteam.vscodeintellicode",
"marklarah.pre-commit-vscode",
"batisteo.vscode-django",
"googlecloudtools.cloudcode",
"github.vscode-pull-request-github",
"trond-snekvik.simple-rst",
"ms-python.black-formatter",
"littlefoxteam.vscode-python-test-adapter",
"github.vscode-github-actions"
]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [9000],
// Use 'portsAttributes' to set default properties for specific forwarded ports. More info: https://code.visualstudio.com/docs/remote/devcontainerjson-reference.
"portsAttributes": {
"3000": {
"onAutoForward": "ignore"
},
"5400": {
"label": "ER Server 5400",
"onAutoForward": "notify"
},
"8000": {
"label": "ER Server",
"onAutoForward": "notify"
}
},
// Use 'otherPortsAttributes' to configure any ports that aren't configured using 'portsAttributes'.
// "otherPortsAttributes": {
// "onAutoForward": "silent"
// },
// Use 'postCreateCommand' to run commands after the container is created.
"remoteEnv": {
"GITGUARDIAN_DOTENV_PATH": "/workspaces/${localWorkspaceFolderBasename}/das/.env",
"UV_PROJECT_ENVIRONMENT": "/home/vscode/.venv",
// "DJANGO_SETTINGS_MODULE": "das_server.local_settings_docker",
"ROOT_LOGGING_LEVEL": "INFO",
"GDAL_LIBRARY_PATH": "/usr/lib/aarch64-linux-gnu/libgdal.so",
"GEOS_LIBRARY_PATH":"/usr/lib/aarch64-linux-gnu/libgeos_c.so.1",
"PYTHONPATH": "/workspaces/${localWorkspaceFolderBasename}/das"
},
"postCreateCommand": "git config --global --add safe.directory /workspaces/${localWorkspaceFolderBasename}; cd /workspaces/${localWorkspaceFolderBasename}; uv run pre-commit install",
"remoteUser": "vscode",
"runArgs": [
"--add-host=postgis:host-gateway",
"--add-host=redis:host-gateway",
"--add-host=pgcat:host-gateway"
]
}