Skip to content

DevOps Engineer Roadmap

Build a release someone else can repeat, diagnose a failure and restore the last working version.

Start with a small service you can already run locally. A simple API with a health endpoint and one test is enough. Keep the service small so you can focus on the work between writing code and recovering a failed release.

Roadmap flowchart

Choose a milestone to jump to the lesson, exercises and resources.

  • Main path
  • Optional branch

One-shot courses and practice labs

Use one working toy web service with a health endpoint and a test command. Keep experiments local until you can explain what starts the app, where its logs go and how to get back to a known-good release.

Use the focus list to choose what to watch. Pause to do the lab while the material is fresh. Each lab builds toward the project at the end of this roadmap.

  1. Command Line Basics for Beginners

    freeCodeCamp.org · About 1 hour

    What to focus on

    • Finding files and composing shell commands
    • Environment variables, output and exit codes
    • Using small commands to inspect a running service

    Related lessons

    Practice lab

    1. Write a start command that reads a port from the environment. Run it, send a request to the health endpoint and capture stdout and stderr separately.
    2. Make a second local process use the same port and observe what the service reports when it cannot start. Compare that result with a service that listens but returns an unhealthy status.
    3. Document what you checked and in which order. Repeat from a fresh terminal without relying on environment variables from your earlier session.

    What to have at the endA short start and diagnosis guide that distinguishes a process failure, a connection failure and an unhealthy HTTP response.

  2. Docker Full Course

    freeCodeCamp.org · About 7 hours

    What to focus on

    • Images, containers and Dockerfiles
    • Container networking and volumes
    • Using Compose for a service and its dependency

    Related lessons

    Practice lab

    1. Build and run the service as a tagged image. Change a runtime setting from outside the image and confirm the same build still works.
    2. Add a dependency in Compose and make the app refer to it by its service name. Inspect the logs when the dependency is missing and when it starts slowly.
    3. Bring the stack up in a clean workspace using the written steps. Check where files should persist and what happens to data when containers are recreated.

    What to have at the endA committed Dockerfile and Compose file with a known-good start command and a successful health check.

  3. GitHub Actions and CI/CD with Docker

    TechWorld with Nana

    What to focus on

    • Events, jobs and steps
    • Building images only after checks pass
    • Identifying the artifact that came from a given commit

    Related lessons

    Practice lab

    1. Make pull requests run the tests and build an image only when those tests pass. Introduce a controlled failing test and confirm the build job is skipped.
    2. Tag a good release by commit and record its health output. Start a deliberately unhealthy image locally and compare its status and logs against the baseline.
    3. Restore the previous image from the exact tag. Record who should act, which signal triggers a rollback and how to verify recovery.

    What to have at the endA visible CI run, traceable image tags and a runbook you have used in a local rollback drill.

Lessons and resources

  1. Run the service from a clean terminal

    Your first tools are the shell, process list and logs. Learn what the working directory and environment variables do, how exit codes work, and where your service writes errors. Run a command from a different directory to uncover assumptions early.

    Put it into practice

    Start the service from a fresh checkout, send a request with curl and stop the process cleanly. Remove one required setting, observe how startup fails and make the error tell the next person what to fix.

    Ready to move on?

    Using the README and a new terminal, you can run the service and distinguish a missing setting from an occupied port.

    Course and practice lab

    Resources

    Back to flowchart
  2. Follow a request to the service

    Understand the route from a client to a host, a port, and an application response. A connection refusal, a timeout, and a server error are different observations. A health endpoint is useful, and a normal request tells you whether the service can actually do its job.

    Put it into practice

    On your own machine, compare a request to the wrong port, a request to an unknown app route and a normal request. Record the command, output and expected next check for each case.

    Ready to move on?

    You can look at those three outputs and decide whether to check the listening process or the application logs first.

    Course and practice lab

    Resources

    Back to flowchart
  3. Package the service as a container image

    An image contains the app and its runtime, while a container is one running instance. Keep runtime configuration outside the image, pin the dependencies that affect the build, and decide which files need to enter the build context.

    Put it into practice

    Add a Dockerfile and a .dockerignore. Build the image, start it with an explicit port mapping, and verify the same request you used in the terminal stage. Rebuild after changing the application and compare the output.

    Ready to move on?

    The container serves a request on a fresh checkout without relying on dependencies installed on your host machine.

    Common snag

    Build arguments and copied configuration files can expose credentials in image metadata or layers. Use sample values in the project and inject runtime settings when you start the service.

    Course and practice lab

    Resources

    Back to flowchart
  4. Check every proposed change in CI

    A useful pipeline gives you an answer quickly. Start by running the same tests as on your machine in a fresh runner. Separate tests and image builds so the build only happens after tests pass, then label the artifact with the Git revision that produced it.

    Put it into practice

    Add a GitHub Actions workflow for pull requests. Open a branch with a deliberately failing test. Confirm the failure is visible and the dependent build step or job is skipped, then repair the test and run the workflow again.

    Ready to move on?

    You can show one failing run and one passing run for the same pull request and explain why only the passing run reaches the image build.

    Course and practice lab

    Resources

    Back to flowchart
  5. Give each release an identity

    You should be able to trace a running service back to a commit. Use a versioned tag or image digest for the deployment. Keep one previous image available when you change versions so your recovery plan has a known target.

    Put it into practice

    Build two image versions from two commits and deploy them one at a time on your machine. Record the revision, image ID and startup command for each. Expose a version in the app response or startup log so you can verify which build is running.

    Ready to move on?

    Someone following your notes can launch either version and match a visible version value to the commit that built it.

    Optional branch

    Choose where to run the release drill

    Run it locally with Docker for the portfolio project. If you already have a disposable staging environment, repeat the same version and recovery checks there to practice handling its configuration and logs.

    Course and practice lab

    Resources

    Back to flowchart
  6. Spot a bad release and restore service

    Pick signals that help you act. Request errors and response time can tell you users are affected, while logs help you understand what changed. Your runbook needs a trigger, a recovery action and a check that confirms recovery.

    Put it into practice

    Run a local version with a misconfigured dependency or readiness check. Take a timestamped note of what you saw, restore the previous version, then verify a normal request and its response time. Ask a friend to repeat the drill with your runbook.

    Ready to move on?

    Your runbook works from a fresh checkout, and you can show evidence that a normal request succeeds after recovery.

    Course and practice lab

    Resources

    Back to flowchart

Portfolio project

A repeatable service release

Package a small web service, check every proposed change in continuous integration, and ship two local versions. Safely break one readiness check, then use a runbook to restore the last healthy image and verify recovery.

You’re ready when

  • A fresh clone runs with documented prerequisites and a sample configuration.
  • A failing test blocks the next pipeline step and a healthy build records the source revision.
  • You can tell a stopped process from a running service that is failing its requests.
  • Your runbook identifies the last known good image, restores it and verifies a real request afterward.

Make your first ask

Show the two pipeline runs and walk through the recovery drill. Explain what you observed, how you chose the previous version, and which request confirmed the service was back.

Entry-level job email templates