DevOps Tutorial · DevOps Basics · Lesson 1 of 25
DevOps Introduction
What DevOps is, the problems it solves, and the skills and tools this tutorial covers.
What is DevOps?
DevOps is a way of building and running software in which the people who write the code and the people who run it work as one team, with automation connecting every step from a commit to production. The goal is to deliver changes quickly and safely, again and again.
Before DevOps, developers "threw code over the wall" to an operations team that deployed it weeks later, by hand. Releases were big, rare and scary. DevOps replaces that with small changes that flow through an automated pipeline many times a day.
What a DevOps workflow looks like
- A developer pushes a small change to Git.
- Continuous integration (CI) builds it and runs the tests automatically.
- The build produces an artifact, usually a container image.
- Continuous delivery (CD) deploys it to staging and then production, often gradually.
- Monitoring shows whether the change is healthy, and a bad change is rolled back quickly.
- The infrastructure itself is defined as code (Terraform, Kubernetes manifests) and changes the same way.
How this tutorial works
The shell and Git examples are real bash scripts: each was run on Linux and the output shown is what it printed. Run them in a terminal on Linux, macOS or Windows (WSL). Some concept examples are short Python programs you can run right here in the browser.
for stage in build test package deploy verify; do
echo "pipeline: $stage ... ok"
done
echo "change is live"
Output
pipeline: build ... ok pipeline: test ... ok pipeline: package ... ok pipeline: deploy ... ok pipeline: verify ... ok change is live
Run this on your computer — see “Get Started” for setup.
Test yourself
What is the main goal of DevOps?
Replacing developers with operations engineersDelivering changes quickly and safely by joining development and operations with automationReleasing software once a quarterUsing Kubernetes for everything
Show answer
Answer: Delivering changes quickly and safely by joining development and operations with automation
DevOps is about flow and safety: small changes, automated pipelines and shared ownership of production.