Merge pull request #50 from beatz174-bit/codex/update-documentation-for-codex-setup
docs: document Codex setup and maintenance scripts
This commit is contained in:
@@ -20,6 +20,11 @@ If you only read one section, read **[Source-of-truth boundaries](docs/source-of
|
|||||||
- Deployment prerequisites and secrets setup: [docs/deployment-prerequisites.md](docs/deployment-prerequisites.md)
|
- Deployment prerequisites and secrets setup: [docs/deployment-prerequisites.md](docs/deployment-prerequisites.md)
|
||||||
- Secrets inventory: [docs/security-secrets.md](docs/security-secrets.md)
|
- Secrets inventory: [docs/security-secrets.md](docs/security-secrets.md)
|
||||||
|
|
||||||
|
Codex helper scripts:
|
||||||
|
|
||||||
|
- Initial Codex environment/bootstrap setup: [scripts/codex-setup.sh](scripts/codex-setup.sh)
|
||||||
|
- Codex environment maintenance/refresh: [scripts/codex-maintenance.sh](scripts/codex-maintenance.sh)
|
||||||
|
|
||||||
Terraform subtrees:
|
Terraform subtrees:
|
||||||
|
|
||||||
- Terraform root docs: [infrastructure/terraform/README.md](infrastructure/terraform/README.md)
|
- Terraform root docs: [infrastructure/terraform/README.md](infrastructure/terraform/README.md)
|
||||||
@@ -103,3 +108,21 @@ flowchart TB
|
|||||||
```
|
```
|
||||||
|
|
||||||
For request-flow and network detail, see [docs/architecture.md](docs/architecture.md).
|
For request-flow and network detail, see [docs/architecture.md](docs/architecture.md).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Codex setup and maintenance scripts
|
||||||
|
|
||||||
|
The repository includes helper scripts for Codex sessions that need local tooling and safe placeholder secret material for validation-only workflows:
|
||||||
|
|
||||||
|
- `scripts/codex-setup.sh`
|
||||||
|
- Installs baseline CLI dependencies (shell/yaml/terraform/ansible tooling).
|
||||||
|
- Prepares `secrets/stack-secrets.env` from templates and creates dummy file-based secret placeholders based on `secrets/inventory.json`.
|
||||||
|
- Prints installed tool versions for quick verification.
|
||||||
|
|
||||||
|
- `scripts/codex-maintenance.sh`
|
||||||
|
- Refreshes Python-based linting/automation tooling.
|
||||||
|
- Reconciles placeholder secret files against current `secrets/inventory.json` (creates missing, removes stale).
|
||||||
|
- Rebuilds `secrets/stack-secrets.env` with dummy values for compose-config validation.
|
||||||
|
|
||||||
|
Both scripts are intended for local validation environments and should not be treated as production provisioning automation.
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ This page explains where to find authoritative files quickly.
|
|||||||
- `services-up.sh` — runtime composition entrypoint for multi-compose environment.
|
- `services-up.sh` — runtime composition entrypoint for multi-compose environment.
|
||||||
- `default-network.yml` — shared docker network definitions used across compose files.
|
- `default-network.yml` — shared docker network definitions used across compose files.
|
||||||
- `default-environment.env` — non-secret default env values for compose rendering.
|
- `default-environment.env` — non-secret default env values for compose rendering.
|
||||||
|
- `scripts/codex-setup.sh` — Codex/bootstrap helper to install validation tooling and prepare dummy secret material.
|
||||||
|
- `scripts/codex-maintenance.sh` — Codex maintenance helper to refresh tooling and reconcile dummy secret material.
|
||||||
- `docs/deployment-prerequisites.md` — prerequisite setup before runtime operations.
|
- `docs/deployment-prerequisites.md` — prerequisite setup before runtime operations.
|
||||||
- `docs/security-secrets.md` — secrets documentation and inventory model.
|
- `docs/security-secrets.md` — secrets documentation and inventory model.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user