forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.devcontainer.json
More file actions
40 lines (40 loc) · 1.46 KB
/
Copy path.devcontainer.json
File metadata and controls
40 lines (40 loc) · 1.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
{
// Base development container for contributing to Zulip.
"name": "Zulip",
"image": "mcr.microsoft.com/devcontainers/base:debian-12",
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/python:1": {}
},
// Editor defaults and extensions to keep local/devcontainer behavior consistent.
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
],
"settings": {
"python.createEnvironment": false,
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"[python]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-python.python"
}
}
}
},
// Run Zulip's devcontainer/codespace provisioning script after container creation.
"postCreateCommand": "bash tools/setup/provision-codespace",
// Forward Zulip's internal development services and PostgreSQL.
"forwardPorts": [9991],
"portsAttributes": {
// Development server proxy entrypoint for the web app.
"9991": {
"label": "Development Server Proxy",
"onAutoForward": "notify"
}
}
}