Files

81 lines
2.6 KiB
JSON

{
"name": "CleverDatasets Dev Environment (PyCharm Optimized)",
"dockerFile": "Dockerfile",
"context": "..",
"customizations": {
"jetbrains": {
"backend": "PyCharm",
"plugins": [
"com.jetbrains.plugins.ini4idea",
"com.jetbrains.plugins.yaml",
"org.jetbrains.plugins.go",
"com.jetbrains.plugins.kubernetes",
"com.jetbrains.plugins.markdown"
]
}
},
"postCreateCommand": "bash < .devcontainer/post-create.sh || bash -c 'cd /workspaces/datasets 2>/dev/null || cd /app 2>/dev/null || cd /workspace 2>/dev/null || true; if command -v uv &> /dev/null; then uv pip install --system -e \".[tests,docs]\" || pip install -e \".[tests,docs]\"; else pip install -e \".[tests,docs]\"; fi; python --version'",
"postStartCommand": "echo 'Welcome to your Python 3.13 development environment for PyCharm! 🚀'",
"remoteUser": "${localEnv:USER}",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"configureZshAsDefaultShell": true,
"installOhMyZsh": true,
"upgradePackages": true,
"username": "${localEnv:USER}",
"userUid": "${localEnv:HOST_UID}",
"userGid": "${localEnv:HOST_GID}"
},
"ghcr.io/devcontainers/features/git:1": {
"ppa": true,
"version": "latest"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"installDirectlyFromGitHubRelease": true,
"version": "latest"
},
"ghcr.io/devcontainers/features/docker-outside-of-docker": {}
},
"containerEnv": {
"PYTHONPATH": "/workspaces/datasets/src",
"PYTHONDONTWRITEBYTECODE": "1",
"PYTHONUNBUFFERED": "1",
"PIP_NO_CACHE_DIR": "1",
"UV_CACHE_DIR": "/tmp/uv-cache",
"MCP_LOG_DIR": "/home/${localEnv:USER}/.local/share/mcp-logs",
"NODE_PATH": "/usr/local/lib/node_modules"
},
"workspaceFolder": "/workspaces/datasets",
"mounts": [
"source=datasets-uv-cache,target=/tmp/uv-cache,type=volume"
],
"forwardPorts": [8000, 8080, 3000, 9090, 3001],
"portsAttributes": {
"8000": { "label": "Application Server", "onAutoForward": "notify" },
"8080": { "label": "Development Server", "onAutoForward": "silent" },
"3000": { "label": "MkDocs Development Server", "onAutoForward": "notify" },
"9090": { "label": "Prometheus Server", "onAutoForward": "silent" },
"3001": { "label": "Forgejo/Gitea Server", "onAutoForward": "silent" }
},
"initializeCommand": "echo 'Initializing CleverDatasets Dev Environment (PyCharm)...'",
"onCreateCommand": "echo 'Creating development environment for PyCharm...'",
"hostRequirements": {
"cpus": 4,
"memory": "8gb",
"storage": "16gb"
}
}