Pre-web changes

This commit is contained in:
Eric Gullickson
2025-11-05 11:04:48 -06:00
parent 45fea0f307
commit 0c3ed01f4b
25 changed files with 257 additions and 3538 deletions

View File

@@ -1,4 +1,4 @@
.PHONY: help setup start stop clean test test-frontend logs shell-backend shell-frontend migrate rebuild traefik-dashboard traefik-logs service-discovery network-inspect health-check-all mobile-setup db-shell-app
.PHONY: help setup start stop clean logs shell-backend shell-frontend migrate rebuild traefik-dashboard traefik-logs service-discovery network-inspect health-check-all mobile-setup db-shell-app
help:
@echo "MotoVaultPro - Simplified 5-Container Architecture"
@@ -46,7 +46,7 @@ setup:
@echo ""
@echo "K8s-ready setup complete!"
@echo "Access application at: https://motovaultpro.com"
@echo "Traefik dashboard at: http://localhost:8080"
@echo "Traefik dashboard at: https://motovaultpro.com:8080"
@echo ""
@echo "Network Architecture:"
@echo " - 3-tier isolation: frontend, backend, database"
@@ -101,11 +101,11 @@ db-shell-app:
# K8s-Ready Architecture Commands
traefik-dashboard:
@echo "Traefik Service Discovery Dashboard:"
@echo " Dashboard: http://localhost:8080"
@echo " API: http://localhost:8080/api"
@echo " Dashboard: https://motovaultpro.com:8080"
@echo " API: https://motovaultpro.com:8080/api"
@echo ""
@echo "Available routes:"
@curl -s http://localhost:8080/api/http/routers 2>/dev/null | jq -r '.[].name' | grep -v internal | sed 's/^/ - /' || echo " (Traefik not ready yet)"
@curl -ks https://motovaultpro.com:8080/api/http/routers 2>/dev/null | jq -r '.[].name' | grep -v internal | sed 's/^/ - /' || echo " (Traefik not ready yet)"
traefik-logs:
@echo "Traefik access and error logs:"
@@ -116,10 +116,10 @@ service-discovery:
@echo "Service Discovery Status:"
@echo ""
@echo "Discovered Services:"
@curl -s http://localhost:8080/api/http/services 2>/dev/null | jq -r '.[].name' | grep -v internal | sed 's/^/ - /' || echo " Traefik not ready yet"
@curl -ks https://motovaultpro.com:8080/api/http/services 2>/dev/null | jq -r '.[].name' | grep -v internal | sed 's/^/ - /' || echo " Traefik not ready yet"
@echo ""
@echo "Active Routes:"
@curl -s http://localhost:8080/api/http/routers 2>/dev/null | jq -r '.[].name' | grep -v internal | sed 's/^/ -> /' || echo " No routes discovered yet"
@curl -ks https://motovaultpro.com:8080/api/http/routers 2>/dev/null | jq -r '.[].name' | grep -v internal | sed 's/^/ -> /' || echo " No routes discovered yet"
network-inspect:
@echo "K8s-Ready Network Architecture:"
@@ -137,11 +137,11 @@ health-check-all:
@docker compose ps --format "table {{.Service}}\t{{.Status}}\t{{.Health}}"
@echo ""
@echo "Network Connectivity Test:"
@echo " Traefik API: $$(curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/api/http/services 2>/dev/null || echo 'FAIL')"
@echo " Traefik API: $$(curl -ks -o /dev/null -w '%{http_code}' https://motovaultpro.com:8080/api/http/services 2>/dev/null || echo 'FAIL')"
@echo ""
@echo "Service Discovery Status:"
@echo " Discovered Services: $$(curl -s http://localhost:8080/api/http/services 2>/dev/null | jq '. | length' || echo '0')"
@echo " Active Routes: $$(curl -s http://localhost:8080/api/http/routers 2>/dev/null | jq '. | length' || echo '0')"
@echo " Discovered Services: $$(curl -ks https://motovaultpro.com:8080/api/http/services 2>/dev/null | jq '. | length' || echo '0')"
@echo " Active Routes: $$(curl -ks https://motovaultpro.com:8080/api/http/routers 2>/dev/null | jq '. | length' || echo '0')"
# SSL Certificate Generation
generate-certs: