diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index eea0cee..4a242f3 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,38 +1,40 @@ { - "image": "mcr.microsoft.com/devcontainers/universal:2", - "hostRequirements": { - "cpus": 4 + "image": "mcr.microsoft.com/devcontainers/universal:2", + "hostRequirements": { + "cpus": 4 + }, + "waitFor": "onCreateCommand", + "onCreateCommand": "curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash && sudo apt install -y libmariadb3 libmariadb-dev", + "updateContentCommand": "pip install -r backend/requirements.txt", + "portsAttributes": { + "5000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + "customizations": { + "codespaces": { + "openFiles": [ + "templates/index.html" + ] }, - "waitFor": "onCreateCommand", - "onCreateCommand": "curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash && sudo apt install -y libmariadb3 libmariadb-dev", - "updateContentCommand": "pip install -r backend/requirements.txt", - "postCreateCommand": "", - "postAttachCommand": { - "server": "flask --debug run" - }, - "portsAttributes": { - "5000": { - "label": "Application", - "onAutoForward": "openPreview" - } - }, - "customizations": { - "codespaces": { - "openFiles": [ - "templates/index.html" - ] - }, - "vscode": { - "extensions": [ - "ms-python.python" - ] - } - }, - "forwardPorts": [ - 5000 - ], - "features": { - "ghcr.io/devcontainers-contrib/features/angular-cli:2": {} - } - } - \ No newline at end of file + "vscode": { + "extensions": [ + "ms-python.python", + "batisteo.vscode-django", + "ms-python.flake8", + "ms-python.isort", + "ms-python.vscode-pylance", + "redhat.vscode-yaml", + "ms-azuretools.vscode-docker", + "donjayamanne.python-extension-pack" + ] + } + }, +"forwardPorts": [ + 5000 +], +"features": { + "ghcr.io/devcontainers-contrib/features/angular-cli:2": {} +} +}