mirror of
https://github.com/apache/superset.git
synced 2026-05-07 08:54:23 +00:00
- Switch to ubuntu-24.04 to match CI environment - Add Python 3.11 explicitly - Keep lean setup with only needed features
54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
"name": "Apache Superset Development",
|
|
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
|
|
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
|
"moby": true,
|
|
"dockerDashComposeVersion": "v2"
|
|
},
|
|
"ghcr.io/devcontainers/features/python:1": {
|
|
"version": "3.11"
|
|
},
|
|
"ghcr.io/devcontainers/features/node:1": {
|
|
"version": "18"
|
|
},
|
|
"ghcr.io/devcontainers/features/git:1": {},
|
|
"ghcr.io/devcontainers/features/common-utils:2": {
|
|
"configureZshAsDefaultShell": true
|
|
}
|
|
},
|
|
|
|
// Forward ports for development
|
|
"forwardPorts": [9001, 8088],
|
|
"portsAttributes": {
|
|
"9001": {
|
|
"label": "Superset Frontend",
|
|
"onAutoForward": "notify"
|
|
},
|
|
"8088": {
|
|
"label": "Superset Backend API",
|
|
"onAutoForward": "silent"
|
|
}
|
|
},
|
|
|
|
// Run commands after container is created
|
|
"postCreateCommand": "chmod +x .devcontainer/setup-dev.sh && .devcontainer/setup-dev.sh",
|
|
|
|
// Auto-start Superset on Codespace resume
|
|
"postStartCommand": ".devcontainer/start-superset.sh",
|
|
|
|
// VS Code customizations
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"ms-python.python",
|
|
"ms-python.vscode-pylance",
|
|
"charliermarsh.ruff",
|
|
"dbaeumer.vscode-eslint",
|
|
"esbenp.prettier-vscode"
|
|
]
|
|
}
|
|
}
|
|
}
|