refactor: reorganize project structure — frontend/, infra/, clean paths
This commit is contained in:
49
README.md
49
README.md
@@ -504,26 +504,35 @@ Allow group <group-name> to read buckets in compartment <compartment-name>
|
||||
```
|
||||
oci-cis-agent/
|
||||
├── backend/
|
||||
│ ├── app.py # FastAPI application (~10500 lines)
|
||||
│ ├── cis_reports.py # Oracle CIS Benchmark checker (6660 lines, report engine)
|
||||
│ ├── mcp_cis_server.py # MCP server with 12 granular CIS tools (~700 lines)
|
||||
│ ├── gen_tf_reference.py # OCI Terraform provider resource catalog generator
|
||||
│ ├── Dockerfile # Python 3.12 + OCI CLI + Terraform 1.14.7 + Chromium
|
||||
│ └── requirements.txt # Dependencies
|
||||
├── frontend-react/
|
||||
│ ├── src/ # React 19 SPA (TypeScript, 46 source files, ~19500 lines)
|
||||
│ │ ├── pages/ # 20 page components (Chat, Terraform, Explorer, Terminal, OCI Services, Reports, Config, Admin)
|
||||
│ │ ├── api/ # API client + endpoint modules
|
||||
│ │ ├── stores/ # Zustand stores (app, auth, terminal — state persistence across navigation)
|
||||
│ │ ├── hooks/ # Custom hooks (theme, polling)
|
||||
│ │ └── i18n/ # Internationalization (pt/en/es, 850+ keys)
|
||||
│ └── dist/ # Built SPA served at /
|
||||
│ ├── app.py # FastAPI application (~10500 lines)
|
||||
│ ├── cis_reports.py # Oracle CIS Benchmark checker (6660 lines)
|
||||
│ ├── mcp_cis_server.py # MCP server with 12 granular CIS tools
|
||||
│ ├── gen_tf_reference.py # OCI Terraform provider resource catalog generator
|
||||
│ ├── Dockerfile # Backend image (Python 3.12 + OCI CLI + Terraform + Chromium)
|
||||
│ ├── requirements.txt
|
||||
│ └── tests/ # 86 baseline tests (pytest)
|
||||
├── frontend/
|
||||
│ ├── src/ # React 19 SPA (TypeScript, 46 files, ~19500 lines)
|
||||
│ │ ├── pages/ # 20 page components
|
||||
│ │ ├── api/ # API client + endpoint modules
|
||||
│ │ ├── stores/ # Zustand stores (app, auth, terminal)
|
||||
│ │ ├── hooks/ # Custom hooks (theme, polling)
|
||||
│ │ └── i18n/ # Internationalization (pt/en/es, 850+ keys)
|
||||
│ └── dist/ # Built SPA
|
||||
├── infra/
|
||||
│ ├── docker/
|
||||
│ │ ├── Dockerfile.single # Single container (nginx + backend + supervisord)
|
||||
│ │ └── Dockerfile.frontend
|
||||
│ ├── terraform-vm/ # OCI VM deployment (ARM Free Tier, LB+WAF+SSL)
|
||||
│ ├── scripts/
|
||||
│ │ ├── push-images.sh # Build + push to OCIR
|
||||
│ │ └── ocir-login.py # Encrypted OCIR credentials helper
|
||||
│ └── ...
|
||||
├── distribution/ # Public release package (setup.sh + README + terraform)
|
||||
├── nginx/
|
||||
│ └── default.conf # Reverse proxy (React SPA + API /api/)
|
||||
├── docker-compose.yml # Orchestration
|
||||
├── logo.svg # Project logo (Oracle AI Robot)
|
||||
├── .env.example # Environment template
|
||||
├── .gitignore
|
||||
│ └── default.conf
|
||||
├── docker-compose.yml
|
||||
├── .env.example
|
||||
└── README.md
|
||||
```
|
||||
|
||||
@@ -884,7 +893,7 @@ python -m pytest tests/ -v
|
||||
### Build & Push OCIR Image
|
||||
|
||||
```bash
|
||||
OCIR_REGION=us-ashburn-1 OCIR_NAMESPACE=idi1o0a010nx ./deploy/scripts/push-images.sh
|
||||
OCIR_REGION=us-ashburn-1 OCIR_NAMESPACE=idi1o0a010nx ./infra/scripts/push-images.sh
|
||||
```
|
||||
|
||||
### Rebuild After Changes
|
||||
|
||||
Reference in New Issue
Block a user