Install the client
DevOpsMissions runs in your terminal on macOS or Linux. Missions and scoring come from your account; the environments you fix run in Docker on your own machine. Four steps: sign up, install, sign in, play.
Before you start
- macOS or Linux (on Windows, use WSL2 with Docker Desktop).
- Python 3.10 or newer.
- Docker, running. Every track runs its tools in a container, so you need nothing else for most tracks.
- The Kubernetes, Helm and Argo CD tracks also need
kindandkubectl, and about 4 GB of memory for Docker.
The installer never uses sudo and never installs system tools. dm doctor checks all of the above and tells you how to fix what is missing.
1. Sign up
Create an account and click the link in the email we send you. It is free; the first module of every track is open without a subscription.
2. Install
Paste this into your terminal:
curl -fsSL https://devopsmissions.com/install.sh | bashIt checks your system, downloads the client, verifies its SHA-256 checksum and installs it into ~/.devopsmissions/app with its own Python environment. The dm command goes to ~/.local/bin; if that folder is not on your PATH yet, the installer prints the line to add.
3. Sign in
dm loginLike gh auth login: dm prints a short code and opens /activate in your browser. Log in, check that the code matches, and approve. Your tokens are stored in ~/.devopsmissions/auth.json, readable only by you. You can be signed in on up to 3 computers and sign any of them out from your account page.
4. Play
dmPick a track. Opening it builds its container or kind cluster (the first time takes a few minutes; Kubernetes, Helm and Argo CD take longest). Inside a mission everything you type runs in the shell, except the game commands:
hint(h) next hint, costs XP ·validate(v) run the checks ·objective(o) show the mission againstatus(s) XP and progress ·solutionfull solution, pays at most 25% ·resetrebuild the sandboxskipnext mission, 0 XP ·tracks(t) back to the menu ·help(?) all commands ·quit(q) save and leave
Every dm command
# playdm# sign this computer in / out (sign out revokes its tokens)dm logindm logout# which account this computer uses, your plan and XPdm whoami# check Python, Docker, memory, kind/kubectl, the server and your logindm doctor# remove every dm-* container and cluster now (quitting the game does this too)dm stop# upgrade to the latest clientdm updatedm versionUninstall
# remove the client and the dm command (your login and local state stay)curl -fsSL https://devopsmissions.com/install.sh | bash -s -- --uninstall# remove everything in ~/.devopsmissions toocurl -fsSL https://devopsmissions.com/install.sh | bash -s -- --uninstall --purgeYour progress lives in your account, so it is never lost by uninstalling.
Troubleshooting
Start with dm doctor: every problem it finds comes with the command that fixes it.
- "dm: command not found":
~/.local/binis not on yourPATH. Add the line the installer printed to your shell profile and open a new terminal. - "Docker is not running": start Docker Desktop (or
sudo systemctl start docker) and open the track again. - "subscription required": the mission is outside the free module. See pricing.
- "daily limit": you opened 40 new missions today (or 15 this hour). Missions you already opened still work.
- "device limit": sign out an old computer from your account page.
- "signing key changed": the server's key is not the one pinned at your first login. Only if you trust the server, run
dm login --repin.
Wondering what the client runs on your machine? Read Security.
Developers
Working on DevOpsMissions itself? The repository keeps its own./install.sh and ./play.sh; see docs/platform/README.md.