Learn DevOps by fixing a (fake) production system in your browser. You get a terminal, logs and dashboards for a small online shop, and things go wrong: the disk fills up, memory leaks, a deploy breaks the site. Nothing is real, so you can't break anything.
| # | Topic | Chapter | Status |
|---|---|---|---|
| 1 | GitHub | Open your first pull request | playable |
| 2 | CI | Works on my machine | playable |
| 3 | Deploy | The health check is lying | playable |
| 4 | Linux | The disk is full | playable |
| 5 | Monitoring | Memory is climbing | playable |
Each chapter can be played on its own, and each ends with a short note on the real incident or practice it's based on.
In one terminal:
cd backend
bundle install
bin/rails db:prepare
bin/rails server # API on http://localhost:3000In another:
cd frontend
npm install
npm run dev # open http://localhost:5173Tests and checks: cd backend && bin/rails test && bin/rubocop, cd frontend && npm run lint && npm run build.
curl -s -X POST localhost:3000/api/runs -H 'Content-Type: application/json' -d '{"scenario":"linux-disk-full"}'
curl -s -X POST localhost:3000/api/runs/1/commands -H 'Content-Type: application/json' -d '{"input":"ssh web-01"}'
curl -s -X POST localhost:3000/api/runs/1/tickLive updates for a run are broadcast on the RunChannel (Action Cable, /cable, param run_id).
The repo has a Dockerfile that builds the frontend and serves it from Rails, so
the whole app is one web service. render.yaml describes it as a Render Blueprint:
- In Render, choose New > Blueprint and pick this repository.
- Render reads
render.yaml, creates thedevops-simweb service on the free plan and generatesSECRET_KEY_BASE. Every push tomaindeploys again.
The app runs as one Puma process, so Action Cable uses its built-in async adapter
and no Redis is needed. Runs are saved in SQLite under storage/. The free plan has
no persistent disk, so saved runs are lost on each deploy or restart. To keep them,
use a paid plan and attach a disk at /rails/storage.
MIT. See LICENSE.
