|
1 | 1 | # AI Engineering Platform |
2 | 2 |
|
| 3 | +Infrastructure and tooling for AI Engineering bootcamps, providing secure, isolated development environments and automated participant onboarding. |
| 4 | + |
| 5 | +## Overview |
| 6 | + |
| 7 | +This platform consists of two main components: |
| 8 | + |
| 9 | +1. **Coder Deployment** - Containerized development environments on GCP |
| 10 | +2. **Participant Onboarding System** - Secure, automated participant onboarding |
| 11 | + |
| 12 | +--- |
| 13 | + |
3 | 14 | ## 1. Coder Deployment for GCP |
4 | 15 |
|
5 | | -The folder `coder` contains all resources needed to deploy a [Coder](https://coder.com) instance on Google Cloud Platform (GCP), along with reusable workspace templates and Docker images for the workspace environment. |
| 16 | +The `coder` folder contains all resources needed to deploy a [Coder](https://coder.com) instance on Google Cloud Platform (GCP), along with reusable workspace templates and Docker images for the workspace environment. |
6 | 17 |
|
7 | 18 | ### Structure |
8 | 19 |
|
9 | | -- **deploy/** |
10 | | - Terraform scripts and startup automation for provisioning the Coder server on a GCP VM. |
| 20 | +- **deploy/** - Terraform scripts and startup automation for provisioning the Coder server on a GCP VM |
| 21 | +- **docker/** - Dockerfiles and guides for building custom images used by Coder workspace templates |
| 22 | +- **templates/** - Coder workspace templates for reproducible, containerized development environments on GCP |
| 23 | + |
| 24 | +### Usage |
| 25 | + |
| 26 | +1. **Provision Coder on GCP** - Follow the steps in [`coder/deploy/README.md`](coder/deploy/README.md) |
| 27 | +2. **Build and Push Docker Images** - See [`coder/docker/README.md`](coder/docker/README.md) |
| 28 | +3. **Push Workspace Templates** - See [`coder/templates/README.md`](coder/templates/README.md) |
| 29 | + |
| 30 | +--- |
| 31 | + |
| 32 | +## 2. Participant Onboarding System |
| 33 | + |
| 34 | +Automated system for securely distributing team-specific API keys to bootcamp participants using Firebase Authentication and Firestore. |
| 35 | + |
| 36 | +### Features |
| 37 | + |
| 38 | +**Secure Authentication** - Firebase custom tokens with per-participant access |
| 39 | +**Team Isolation** - Firestore security rules enforce team-level data separation |
| 40 | +**Automated Onboarding** - One-command setup for participants |
| 41 | +**API Key Management** - Automated generation and distribution of: |
| 42 | + |
| 43 | +### Architecture |
| 44 | + |
| 45 | +``` |
| 46 | +┌─────────────────────────────────────────────────────────────────┐ |
| 47 | +│ Admin Phase │ |
| 48 | +├─────────────────────────────────────────────────────────────────┤ |
| 49 | +│ 1. Setup participants and teams in Firestore │ |
| 50 | +│ 2. Generate team-specific API keys │ |
| 51 | +│ 3. Setup shared keys │ |
| 52 | +│ 4. Generate Firebase authentication tokens │ |
| 53 | +│ 5. Deploy Firestore security rules │ |
| 54 | +└─────────────────────────────────────────────────────────────────┘ |
| 55 | + ↓ |
| 56 | +┌─────────────────────────────────────────────────────────────────┐ |
| 57 | +│ Participant Phase │ |
| 58 | +├─────────────────────────────────────────────────────────────────┤ |
| 59 | +│ 1. Run onboarding script in Coder workspace │ |
| 60 | +│ 2. Script authenticates using Firebase custom token │ |
| 61 | +│ 3. Fetch team-specific API keys (security rules enforced) │ |
| 62 | +│ 4. Create .env file with all credentials │ |
| 63 | +│ 5. Run integration tests to verify keys │ |
| 64 | +└─────────────────────────────────────────────────────────────────┘ |
| 65 | +``` |
| 66 | + |
| 67 | +## Requirements |
11 | 68 |
|
12 | | -- **docker/** |
13 | | - Dockerfiles and guides for building custom images used by Coder workspace templates. |
| 69 | +- Python 3.12+ |
| 70 | +- `uv` package manager |
| 71 | +- GCP project with Firestore and Secret Manager enabled |
| 72 | +- Firebase project with Authentication enabled |
| 73 | +- Appropriate GCP permissions (see admin guide) |
14 | 74 |
|
15 | | -- **templates/** |
16 | | - Coder workspace templates for reproducible, containerized development environments on GCP. |
| 75 | +## Installation |
17 | 76 |
|
18 | | -## Usage |
| 77 | +```bash |
| 78 | +# Clone repository |
| 79 | +git clone <repository-url> |
| 80 | +cd aieng-platform |
19 | 81 |
|
20 | | -1. **Provision Coder on GCP** |
21 | | - Follow the steps in [`deploy/README.md`](coder/deploy/README.md) to set up your GCP environment and deploy the Coder server using Terraform. |
| 82 | +# Install dependencies |
| 83 | +uv sync |
22 | 84 |
|
23 | | -2. **Build and Push Docker Images** |
24 | | - Use [`docker/README.md`](coder/docker/README.md) to build and upload Docker images required by your templates. |
| 85 | +# Authenticate with GCP |
| 86 | +gcloud auth application-default login |
| 87 | +``` |
25 | 88 |
|
26 | | -3. **Push Workspace Templates** |
27 | | - See [`templates/README.md`](coder/templates/README.md) for instructions on uploading workspace templates to your Coder instance. |
| 89 | +--- |
0 commit comments