Skip to content

Repository files navigation

AIT Brainlab Base (brainlab-base)

The central knowledge base, equipment inventory, service documentation, and infrastructure repository for AIT Brainlab (Asian Institute of Technology).


📌 Repository Organization

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                       AIT BRAINLAB ARCHITECTURE                                         │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────┘
                                                     │
         ┌───────────────────────────┬───────────────┴───────────────┬───────────────────────────┐
         ▼                               ▼                           ▼
┌─────────────────┐             ┌─────────────────┐         ┌─────────────────┐
│  CORE MGMT      │             │    SERVICES     │         │ RUNBOOKS & DOCS │
│ [`mgmt/`](mgmt/)│             │[`services/`](...)│       │ [`docs/`](docs/)│
├─────────────────┤             ├─────────────────┤         ├─────────────────┤
│ • ait-brainlab- │             │ • JupyterHub    │         │ • Infra Runbooks│
│   mgmt ($5/mo)  │             │ • Web Print     │         │ • Onboarding    │
│ • Cloud DNS     │             │ • Dual A6000 GPU│         │ • Offboarding   │
│ • NetBird Mesh  │             │ • DockerSpawner │         │ • Troubleshooting
│ • lldap Directory│            │                 │         │ • Admin Roles   │
└─────────────────┘             └─────────────────┘         └─────────────────┘

📚 Core Navigation

The decoupled, permanent control plane running under GCP project ait-brainlab-mgmt (~$0.45 to $7.45/month):

  • services/jupyterhub/: Multi-user GPU JupyterLab container environment on la (dual RTX A6000, TrueNAS NFS).
  • services/printing/: Remote Web Print Portal (docker-cups) bridging cloud to CSIM printer.

Historical configurations, legacy Docker images, screenshots, and older notebooks preserved for reference.


🐍 Python Environment Management (uv)

This repository uses uv for blazing-fast, deterministic Python dependency management:

# 1. Sync virtual environment and install all dependencies
uv sync

# 2. Run Identity GitOps synchronization
uv run mgmt/identity/sync_users.py

# 3. Run NetBird VPN GitOps synchronization
uv run mgmt/vpn/sync_netbird.py

# 4. Run Day 1 Ansible mesh operations playbooks
uv run ansible-playbook -i mgmt/ansible/inventory.ini mgmt/ansible/enroll_netbird.yml

🔒 Security & Safe Operating Protocols

  • No Hardcoded Secrets: Never commit passwords, private keys, or API tokens to version control.
  • Proxy Aware: Outbound traffic on CSIM network requires http://192.41.170.82:3128.
  • Persistent User Data: Always stored on TrueNAS at /mnt/pool-1/home/{username}.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages