A self-hosted, KodeKloud-style platform for hands-on DevOps, Software Engineering, and Database Administration practice. Each lab pairs an interactive task panel with a real, isolated terminal running inside a disposable Docker container. The platform validates task completion server-side by inspecting the container state in real time β with zero cloud accounts, zero credentials, and zero local tool setup for the learner.
Frontend β Learning Platform UI (http://localhost:5181)
Backend β FastAPI Interactive Docs (http://127.0.0.1:8400/docs)
Suncloud features 121 live, interactive lab exercises spanning 10 fully implemented courses, plus 2 upcoming roadmap courses.
| Status | Topic | Icon | Ready / Total Chapters | Key Topics Covered |
|---|---|---|---|---|
| Active | Python | π | 21 / 21 | Variables, Lists, Dicts, Functions, OOP, Modules, Exceptions, Decorators, Regex, APIs, Concurrency, Testing, Type Hints |
| Active | JavaScript | π¨ | 14 / 14 | ES6+, Control Flow, Arrays, Objects, Closures, Async/Await, Node.js FS, Testing |
| Active | Git | π | 11 / 11 | Commits, Branching, Remotes, Conflict Resolution, Rebasing, Stashing, Undoing, Workflows |
| Active | Docker | π³ | 10 / 10 | Container Lifecycle, Images, Volumes, Networking, Compose, Optimization, CI/CD |
| Active | Linux | π§ | 12 / 12 | Command Line, File Ops, Users & Permissions, Text Processing, Processes, Package Mgmt, Systemd, Cron, Disk Storage |
| Active | Ansible | βοΈ | 10 / 10 | Inventories, Playbooks, Variables, Jinja2 Templates, Handlers, Roles, Vault, Error Handling |
| Active | Bash & Shell Scripting | π | 11 / 11 | Scripts, Control Flow, Functions, Pipelines, Arrays, Grep, Sed, Awk, Cron, Error Handling |
| Active | Networking Fundamentals | π | 8 / 8 | OSI Model, curl, HTTP Status Codes, DNS & dig, Ports & ss, Traceroute, tcpdump, Connectivity Troubleshooting |
| Active | SQL & Database Administration | ποΈ | 13 / 13 | Queries, Joins, Aggregations, CTEs, Window Functions, Schema Design, Indexes, DCL Permissions, Views, Backup & Restore |
| Active | Redis & Caching | π΄ | 11 / 11 | Data Structures, Lists/Hashes/Sets, TTLs, Pub/Sub, Cache-Aside Patterns, Eviction Policies, RDB/AOF Persistence, Transactions |
| Roadmap | Kubernetes | βΈοΈ | 0 / 10 | Pods, Deployments, Services, ConfigMaps, Secrets, Volumes, Resource Limits, Helm, Workload Troubleshooting |
| Roadmap | Terraform | ποΈ | 0 / 10 | HCL Syntax, Providers, State Management, Modules, Provisioners, Workspaces, Local AWS with Floci |
Total Available Labs: 121 / 141 Live
The learner has a full, real interactive shell inside a live container. Suncloud enforces enterprise-grade security and isolation to ensure sandbox containers cannot harm the host machine, escalate privileges, or consume unbounded system resources:
- Unprivileged Learner Execution (UID 1000): All interactive shell sessions and automated checks run under an unprivileged
learneruser (uid 1000). System paths (/etc,/usr,/var) are read-only to the learner. - Linux Capability Dropping & Privilege Escalation Blocks:
cap_drop=["ALL"]β Removes all Linux capabilities from the container.security_opt=["no-new-privileges:true"]β Strictly forbids gaining new privileges (blocking setuid/sudo escalation attempts).
- Network Isolation (
network_mode="none"):- Sandbox containers run with zero network egress/ingress.
- All exercises operate 100% offline with pre-seeded dependencies, mock servers, or local Unix sockets.
- Resource Caps:
mem_limit="512m"β Prevents memory leaks and host RAM exhaustion.nano_cpus=1000000000(1.0 CPU) β Limits CPU utilization.pids_limit=256β Protects against fork bombs.
- Single Active Session Protection & Auto-Teardown:
- Suncloud enforces single-session concurrency per environment.
- When starting a new lab, previous active sessions and their Docker containers are automatically stopped and purged (
docker rm -f). - Thread-safe provisioning locks prevent duplicate container spin-up races.
- Background Reaper Service:
- A background worker scans for expired sessions (
SESSION_TTL_MINUTES = 45) and orphaned containers carrying theilab.sessionDocker label, destroying them automatically.
- A background worker scans for expired sessions (
- Task Reset Functionality:
- Every exercise includes a Reset mechanism that cleans the working directory and restores initial starter files.
flowchart TD
subgraph Browser ["Browser Client (:5181)"]
direction TB
Catalog["Catalog View & Search"]
subgraph LabView ["Lab View"]
QuestionPanel["Task Panel<br/>(Markdown, Progress, Check/Skip)"]
TerminalUI["xterm.js Terminal"]
TimerUI["Session Timer"]
end
end
subgraph Backend ["Backend API - FastAPI (:8400)"]
direction TB
ContentSvc["Content Service<br/>(loads YAML labs)"]
SessionSvc["Sessions & Docker Manager<br/>(single session & auto-teardown)"]
TerminalSvc["Terminal Service<br/>(WS /api/sessions/{id}/terminal)"]
ValidatorSvc["Validator Service"]
ReaperSvc["Background Reaper<br/>(kills expired/orphan containers)"]
DB[(SQLite DB)]
end
subgraph DockerHost ["Docker Host"]
DockerSocket["/var/run/docker.sock"]
subgraph Sandbox ["Disposable Sandbox Container"]
ContainerInstance["Isolated Container<br/>(network_mode=none, cap_drop=ALL)"]
end
end
%% Flow connections
Catalog -- "GET /api/topics" --> ContentSvc
QuestionPanel -- "POST /api/sessions" --> SessionSvc
SessionSvc -- "Create Container" --> DockerSocket
DockerSocket --> ContainerInstance
TerminalUI -- "WS /api/sessions/{id}/terminal" --> TerminalSvc
TerminalSvc -- "docker exec PTY (raw socket)" --> DockerSocket
QuestionPanel -- "POST /api/sessions/{id}/questions/{qid}/check" --> ValidatorSvc
ValidatorSvc -- "docker exec check" --> DockerSocket
TimerUI -- "DELETE /api/sessions/{id}" --> SessionSvc
ReaperSvc -- "Auto-cleanup" --> SessionSvc
SessionSvc -- "docker rm -f" --> DockerSocket
SessionSvc <--> DB
ValidatorSvc <--> DB
Both the interactive terminal and validation check engine communicate directly via docker exec through the local Docker socket, bypassing container networking entirely.
βββ backend/ # FastAPI Application
β βββ app/
β β βββ routers/ # API endpoints (topics, labs, sessions, terminal WS, validation)
β β βββ services/ # docker_manager, content, topics, validator, reaper, session_service
β β βββ config.py # System configuration and resource limits
βββ content/ # Lab authoring surface (121 lab.yaml definitions)
β βββ python-*/
β βββ js-*/
β βββ git-*/
β βββ docker-*/
β βββ linux-*/
β βββ ansible-*/
β βββ bash-*/
β βββ net-*/
β βββ sql-*/
β βββ redis-*/
βββ topics/ # Catalog structure manifest
β βββ topics.yaml # Two-level catalog mapping (topics -> chapters -> lab_id)
β βββ *-lab-chapters.md # Chapter roadmaps per topic
βββ sandbox/ # Dedicated Dockerfiles per topic
β βββ python/
β βββ javascript/
β βββ git/
β βββ docker/
β βββ linux/
β βββ ansible/
β βββ redis/
β βββ sql/
βββ frontend/ # Vite + React + TypeScript + Tailwind CSS UI
βββ src/
βββ pages/ # Topics (Homepage), Topic (Chapters), Lab (Workspace)
βββ components/ # Terminal (xterm.js), QuestionPanel, Header, Footer
- Docker Engine / Docker Desktop running locally.
- Python 3.11+
- Node.js 18+
Build the base Docker images for your target lab topics:
docker build -t ilab-sandbox-python:latest sandbox/python
docker build -t ilab-sandbox-linux:latest sandbox/linux
docker build -t ilab-sandbox-git:latest sandbox/git
docker build -t ilab-sandbox-ansible:latest sandbox/ansible
docker build -t ilab-sandbox-redis:latest sandbox/redis
docker build -t ilab-sandbox-sql:latest sandbox/sql
docker build -t ilab-sandbox-js:latest sandbox/javascript
docker build -t ilab-sandbox-docker:latest sandbox/dockercd backend
uv sync
uvicorn app.main:app --port 8400cd frontend
npm install
npm run dev # Opens at http://localhost:5181Adding a lab requires only creating a YAML file under content/<lab-id>/lab.yaml:
id: net-curl
title: "curl β HTTP from the Command Line"
topic: networking
image: "ilab-sandbox-linux:latest"
workdir: /home/learner/lab
est_minutes: 20
description: >
Master HTTP requests from the terminal β GET/POST with curl, viewing response headers,
sending JSON payloads, and saving output to files.
questions:
- id: q1
type: sandbox
instructions: |
## 1 Β· Basic GET Request
Make a GET request to `http://localhost:9000` and save output to `response.html`.
validate:
cmd: 'test -f response.html && test -s response.html'
success: "response.html contains HTTP response."
failure: "Run curl http://localhost:9000 > response.html."
- id: q2
type: multiple_choice
instructions: |
Which flag in `curl` fetches HTTP response headers only?
choices:
- "-v"
- "-I"
- "-s"
- "-d"
answer: 1Hot-reload lab definitions at any time with POST /api/labs/reload.
- Kubernetes Interactive Lab: Containerized k3d/kind cluster in sandbox with Pods, Services, Deployments, and Helm tasks.
- Terraform & Cloud Emulation: Infrastructure as Code labs against Floci (a lightweight local AWS emulator).
- Monaco Code Editor Integration: Side-by-side IDE code editor alongside xterm.js terminal.
- Progress Synchronization: Authenticated user accounts and cloud progress synchronization.

