Refactor frontend build and deployment scripts; consolidate services into a single app

- Updated package.json in StatusPage to correct dependency path for Common.
- Enhanced main package.json with new scripts for building and watching frontend applications.
- Modified tsconfig.json to exclude frontend directories from compilation.
- Simplified Nginx configuration by removing individual upstreams for each service and routing all to a single app upstream.
- Refactored configure.sh to streamline Dockerfile generation.
- Cleaned up docker-compose files by consolidating services and removing unnecessary definitions.
- Introduced new frontend handling logic in Index.ts for rendering different frontend applications.
- Added utility functions for managing status page data and RSS feeds in StatusPage.ts.
- Created dev.sh and frontend-run.sh scripts to facilitate development and build processes for frontend applications.
This commit is contained in:
Nawaz Dhandala
2026-03-03 17:51:47 +00:00
parent 4e8fde3b23
commit 3e5cd57082
35 changed files with 1466 additions and 41575 deletions

View File

@@ -31,7 +31,7 @@ jobs:
with:
timeout_minutes: 45
max_attempts: 3
command: sudo docker build --no-cache -f ./Accounts/Dockerfile .
command: sudo docker build --no-cache -f ./App/Accounts/Dockerfile .
docker-build-home:
runs-on: ubuntu-latest
@@ -219,7 +219,7 @@ jobs:
with:
timeout_minutes: 45
max_attempts: 3
command: sudo docker build --no-cache -f ./AdminDashboard/Dockerfile .
command: sudo docker build --no-cache -f ./App/AdminDashboard/Dockerfile .
docker-build-dashboard:
runs-on: ubuntu-latest
@@ -242,7 +242,7 @@ jobs:
with:
timeout_minutes: 45
max_attempts: 3
command: sudo docker build --no-cache -f ./Dashboard/Dockerfile .
command: sudo docker build --no-cache -f ./App/Dashboard/Dockerfile .
docker-build-probe:
runs-on: ubuntu-latest
@@ -311,7 +311,7 @@ jobs:
with:
timeout_minutes: 45
max_attempts: 3
command: sudo docker build --no-cache -f ./StatusPage/Dockerfile .
command: sudo docker build --no-cache -f ./App/StatusPage/Dockerfile .
docker-build-test-server:
runs-on: ubuntu-latest

View File

@@ -25,7 +25,7 @@ jobs:
with:
timeout_minutes: 30
max_attempts: 3
command: cd Accounts && npm install && npm run compile && npm run dep-check
command: cd App/Accounts && npm install && npm run compile && npm run dep-check
compile-common:
runs-on: ubuntu-latest
@@ -178,7 +178,7 @@ jobs:
with:
timeout_minutes: 30
max_attempts: 3
command: cd AdminDashboard && npm install && npm run compile && npm run dep-check
command: cd App/AdminDashboard && npm install && npm run compile && npm run dep-check
compile-dashboard:
runs-on: ubuntu-latest
@@ -196,7 +196,7 @@ jobs:
with:
timeout_minutes: 30
max_attempts: 3
command: cd Dashboard && npm install && npm run compile && npm run dep-check
command: cd App/Dashboard && npm install && npm run compile && npm run dep-check
compile-e2e:
@@ -268,7 +268,7 @@ jobs:
with:
timeout_minutes: 30
max_attempts: 3
command: cd StatusPage && npm install && npm run compile && npm run dep-check
command: cd App/StatusPage && npm install && npm run compile && npm run dep-check
compile-test-server:
runs-on: ubuntu-latest

View File

@@ -556,7 +556,7 @@ jobs:
bash ./Scripts/GHA/build_docker_images.sh \
--image status-page \
--version "${{needs.read-version.outputs.major_minor}}" \
--dockerfile ./StatusPage/Dockerfile \
--dockerfile ./App/StatusPage/Dockerfile \
--context . \
--platforms linux/amd64,linux/arm64 \
--git-sha "${{ github.sha }}"
@@ -829,7 +829,7 @@ jobs:
bash ./Scripts/GHA/build_docker_images.sh \
--image admin-dashboard \
--version "${{needs.read-version.outputs.major_minor}}" \
--dockerfile ./AdminDashboard/Dockerfile \
--dockerfile ./App/AdminDashboard/Dockerfile \
--context . \
--platforms linux/amd64,linux/arm64 \
--git-sha "${{ github.sha }}"
@@ -898,7 +898,7 @@ jobs:
bash ./Scripts/GHA/build_docker_images.sh \
--image dashboard \
--version "${{needs.read-version.outputs.major_minor}}" \
--dockerfile ./Dashboard/Dockerfile \
--dockerfile ./App/Dashboard/Dockerfile \
--context . \
--platforms linux/amd64,linux/arm64 \
--git-sha "${{ github.sha }}"
@@ -1035,7 +1035,7 @@ jobs:
bash ./Scripts/GHA/build_docker_images.sh \
--image accounts \
--version "${{needs.read-version.outputs.major_minor}}" \
--dockerfile ./Accounts/Dockerfile \
--dockerfile ./App/Accounts/Dockerfile \
--context . \
--platforms linux/amd64,linux/arm64 \
--git-sha "${{ github.sha }}"

View File

@@ -502,7 +502,7 @@ jobs:
bash ./Scripts/GHA/build_docker_images.sh \
--image status-page \
--version "${{needs.read-version.outputs.major_minor}}-test" \
--dockerfile ./StatusPage/Dockerfile \
--dockerfile ./App/StatusPage/Dockerfile \
--context . \
--platforms linux/amd64,linux/arm64 \
--git-sha "${{ github.sha }}" \
@@ -785,7 +785,7 @@ jobs:
bash ./Scripts/GHA/build_docker_images.sh \
--image dashboard \
--version "${{needs.read-version.outputs.major_minor}}-test" \
--dockerfile ./Dashboard/Dockerfile \
--dockerfile ./App/Dashboard/Dockerfile \
--context . \
--platforms linux/amd64,linux/arm64 \
--git-sha "${{ github.sha }}" \
@@ -855,7 +855,7 @@ jobs:
bash ./Scripts/GHA/build_docker_images.sh \
--image admin-dashboard \
--version "${{needs.read-version.outputs.major_minor}}-test" \
--dockerfile ./AdminDashboard/Dockerfile \
--dockerfile ./App/AdminDashboard/Dockerfile \
--context . \
--platforms linux/amd64,linux/arm64 \
--git-sha "${{ github.sha }}" \
@@ -998,7 +998,7 @@ jobs:
bash ./Scripts/GHA/build_docker_images.sh \
--image accounts \
--version "${{needs.read-version.outputs.major_minor}}-test" \
--dockerfile ./Accounts/Dockerfile \
--dockerfile ./App/Accounts/Dockerfile \
--context . \
--platforms linux/amd64,linux/arm64 \
--git-sha "${{ github.sha }}" \