From 3d8cf665db12b1df93a0803be475e66a5f72d7f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phillip=20K=C3=BChne?= Date: Tue, 3 Oct 2023 17:23:54 +0000 Subject: [PATCH] Update devcontainer.json --- .devcontainer/devcontainer.json | 66 +++++++++++++++++---------------- 1 file changed, 35 insertions(+), 31 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 35ed8c9..473a7ad 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,33 +1,37 @@ { - "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", + "postCreateCommand": "", + "postAttachCommand": { + "server": "flask --debug run" + }, + "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] - } - \ No newline at end of file + "vscode": { + "extensions": [ + "ms-python.python" + ] + } + }, +"forwardPorts": [ + 5000 +], +"features": { + "ghcr.io/devcontainers-contrib/features/angular-cli:2": {} +} +}