Skip to content
프로젝트

소개

A browser-based DevOps simulator for beginners. Fix a full disk, chase a memory leak, get CI green and roll back a bad deploy in a fake terminal. Nothing real breaks.

학습 및 교육

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
-1
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

DevOps Simulator

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.

The play screen in chapter 5: a system map of the shop with the background worker using too much memory, a memory chart, the chapter's steps, and a terminal

Chapters

# 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.

Running it

In one terminal:

cd backend
bundle install
bin/rails db:prepare
bin/rails server        # API on http://localhost:3000

In another:

cd frontend
npm install
npm run dev             # open http://localhost:5173

Tests and checks: cd backend && bin/rails test && bin/rubocop, cd frontend && npm run lint && npm run build.

Trying the API

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/tick

Live updates for a run are broadcast on the RunChannel (Action Cable, /cable, param run_id).

Deploying to Render

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:

  1. In Render, choose New > Blueprint and pick this repository.
  2. Render reads render.yaml, creates the devops-sim web service on the free plan and generates SECRET_KEY_BASE. Every push to main deploys 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.

License

MIT. See LICENSE.

관련 프로젝트 살펴보기

불러오는 중…