Add devcontainer support for production-parity debugging

This commit is contained in:
badblocks 2025-05-09 20:33:12 -07:00
parent 762361a21b
commit 89cfa50519
5 changed files with 46 additions and 8 deletions

View file

@ -0,0 +1,18 @@
{
"dockerComposeFile": ["../docker-compose.yml", "docker-compose_extend.yml"],
"service": "web",
"name": "pkmntrade-club",
"workspaceFolder": "/workspace",
"postStartCommand": "direnv allow /workspace",
"remoteUser": "app",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.black-formatter",
"ms-python.isort",
"ms-azuretools.vscode-docker"
]
}
}
}

View file

@ -0,0 +1,11 @@
services:
web:
volumes:
- .:/workspace:cached
- ./seed:/seed:ro
- ./src/pkmntrade_club:/app/lib/python3.12/site-packages/pkmntrade_club:cached
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
command: /bin/sh -c "while sleep 1000; do :; done"