All services moved to deployed filesystem

This commit is contained in:
Adam Outler
2025-09-28 17:10:15 -04:00
parent d182a552b8
commit c6efe5ac06
19 changed files with 695 additions and 145 deletions

56
.vscode/tasks.json vendored
View File

@@ -2,7 +2,7 @@
"version": "2.0.0",
"tasks": [
{
"label": "Generate Dockerfile",
"label": "[Any Linux] Generate Dockerfile",
"type": "shell",
"command": "${workspaceFolder:NetAlertX}/.devcontainer/scripts/generate-dockerfile.sh",
"presentation": {
@@ -25,27 +25,32 @@
}
},
{
"label": "Re-Run Startup Script",
"label": "[Dev Container] Re-Run Startup Script",
"type": "shell",
"command": "test ! -d /workspaces && echo not in container && exit 1; ${workspaceFolder:NetAlertX}/.devcontainer/scripts/setup.sh",
"command": "./isDevContainer.sh || exit 1;${workspaceFolder:NetAlertX}/.devcontainer/scripts/setup.sh",
"options": {
"cwd": "${workspaceFolder:NetAlertX}/.devcontainer/scripts"
},
"presentation": {
"echo": true,
"reveal": "always",
"panel": "shared",
"showReuseMessage": false
},
"problemMatcher": [],
"icon": {
"id": "beaker",
"color": "terminal.ansiBlue"
}
},
{
"label": "Start Backend (Python)",
"label": "[Dev Container] Start Backend (Python)",
"type": "shell",
"command": "test ! -d /workspaces && echo not in container && exit 1; /workspaces/NetAlertX/.devcontainer/scripts/restart-backend.sh",
"command": "./isDevContainer.sh || exit 1; killall python2>/dev/null; /services/start-backend.sh",
"options": {
"cwd": "${workspaceFolder:NetAlertX}/.devcontainer/scripts"
},
"presentation": {
"echo": true,
"reveal": "always",
@@ -60,9 +65,12 @@
}
},
{
"label": "Start Frontend (nginx and PHP-FPM)",
"label": "[Dev Container] Start CronD (Scheduler)",
"type": "shell",
"command": "test ! -d /workspaces && echo not in container && exit 1; killall php-fpm83 nginx 2>/dev/null || true; sleep 1; php-fpm83 & nginx",
"command": "./isDevContainer.sh || exit 1; killall crond>/dev/null; /services/start-crond.sh",
"options": {
"cwd": "${workspaceFolder:NetAlertX}/.devcontainer/scripts"
},
"presentation": {
"echo": true,
"reveal": "always",
@@ -77,9 +85,33 @@
}
},
{
"label": "Stop Frontend & Backend Services",
"label": "[Dev Container] Start Frontend (nginx and PHP-FPM)",
"type": "shell",
"command": "test ! -d /workspaces && echo not in container && exit 1; pkill -f 'php-fpm83|nginx|crond|python3' || true",
"command": "./isDevContainer.sh || exit 1; killall php-fpm83 nginx 2>/dev/nulltrue; sleep 1; /services/start-php-fpm.sh & /sevices/start-nginx.sh &",
"options": {
"cwd": "${workspaceFolder:NetAlertX}/.devcontainer/scripts"
},
"presentation": {
"echo": true,
"reveal": "always",
"panel": "shared",
"showReuseMessage": false,
"clear": false
},
"problemMatcher": [],
"icon": {
"id": "debug-restart",
"color": "terminal.ansiGreen"
}
},
{
"label": "[Dev Container] Stop Frontend & Backend Services",
"type": "shell",
"command": "./isDevContainer.sh || exit 1; pkill -f 'php-fpm83|nginx|crond|python3' || true",
"options": {
"cwd": "${workspaceFolder:NetAlertX}/.devcontainer/scripts"
},
"presentation": {
"echo": true,
"reveal": "always",
@@ -93,4 +125,4 @@
}
}
]
}
}