Mirage Academy · Docker and CI/CD course

Docker and CI/CD course: take an AI app from laptop to automated release

Your AI application runs on your laptop, but nobody else can run it the same way, and every release feels like a gamble. The course goes step by step: a reproducible setup, containers, safe configuration, migrations, a CI pipeline and a release you can roll back. Watch it in a minute, then put a pipeline in order.

Go to the course pageOrder a pipeline

The course in a minute

Watch where you start and where you finish

Local Development, Docker, CI/CD & Release Engineering takes an AI application from a laptop to automated, safe releases.

mirage-academy: docker-ci-cd
Still from the intro video for the course Local Development, Docker, CI/CD & Release Engineering
Intro video, 1 min 7 s. Transcript below.
Read the transcript

Your AI application runs on your laptop, but nobody else can run it the same way, and every release feels like a gamble. This course is for the developer who has to fix that. Compare where you start with where you finish. Your environment becomes reproducible in containers. Secrets leave the code and live in configuration. Schema changes run as migrations. Releases pass quality gates before they ship. The course follows one loop. You build the stack with Compose. You test it in a CI pipeline. You stage it before production and roll it out safely. You release on a train, and you know how to roll back. Eight chapters end in a capstone: you take one local stack all the way to an automated release. If you ship an AI application and want releases you can trust, start with chapter one.

level
Advanced, as its course page lists it.
size
8 chapters and 40 lessons, five per chapter, ending in the capstone.
audience
People shipping AI features as engineers or technical product owners.
See the full course
The course's intro video with a play button inside a terminal window, and three lines under it: level, size and audience.

Chapter 1

Reproducible local environments: pin what you can

An environment drifts when two machines resolve the same words to different versions. The first chapter covers version specifiers, lockfiles and a bootstrap that you can run twice.

npm-style ranges, with an example axis
  • 1.2.3Exactaccepted: 1.2.3
  • ~1.2.3Tildeaccepted: 1.2.3, 1.2.9
  • ^1.2.3Caretaccepted: 1.2.3, 1.2.9, 1.3.0, 1.9.4
  • Pinned by the lockfile: 1.9.4
  • Why environments drift: the five sourcesChapter 1, lesson 1.
  • Version specifiers and semantic versioningChapter 1, lesson 2.
  • Lockfiles and pinning decisionsChapter 1, lesson 3.
  • Isolated runtimes and an idempotent bootstrapChapter 1, lesson 4.
  • Proving reproducibility and reviewing AI-generated setupChapter 1, lesson 5.
A version axis from 1.2.0 to 2.0.0 with three bars. An exact version accepts one entry, the tilde range accepts versions up to the next minor version, the caret range up to the next major version. A mark shows the one version a lockfile pins.

Chapter 2

Containers and Compose: several services, one command

The second chapter goes from images and layers to a stack of services that starts with one command, and to the data that must survive a restart.

docker compose upOne command starts the whole stackExample stack
  • App
  • Worker
  • Database
Named volume

The container is gone, the data stays in the volume.

  • Images, layers and containersThe difference between the recipe and the running thing.
  • A Dockerfile that builds fast and smallOrder the steps so the cache helps.
  • Compose: several services, one commandDescribe the stack once and start it everywhere.
  • Volumes and data that must surviveKeep a database across restarts.
  • Reading failuresFind out why a container stopped.
Three service tiles and a volume drum joined by dotted lines, under one command. A second row shows a container removed while the volume stays.

Chapter 3

Configuration and secrets: three kinds of value

The chapter begins by telling code, configuration and secrets apart, then covers environment variables, scanning and hooks, and validation at start-up.

General definitions, with example values
  • CodeSame everywhere, reviewed and versioned with the program.
    • Retry logic
    • Query text
    • Prompt template
  • ConfigurationDiffers by environment; the ordinary values are safe to read.
    • Model name
    • Log level
    • Database host
  • SecretSecrets leave the code and live in configuration.
    • API key
    • Database password
  • Code, configuration, secretThe three kinds, and how to tell them apart.
  • Environment variables and precedenceWhich setting wins when two disagree.
  • Secrets handlingWhere a secret lives and who can read it.
  • Scanning and hooksCatch a leaked secret before it is pushed.
  • Validate at start-upRefuse to start with a missing or broken setting.
Three lanes side by side: code, configuration and secret. Each has a one line rule and a few example values written as chips.

Chapter 4

Databases and migrations: change the schema in three safe steps

A schema is code, and a change to it must work while the old and the new version of the app both run. Expand and contract is the pattern for that.

Example: renaming a column
  1. Expand
    • Schemaold and new column
    • Old appworks
    • New appbreaks
  2. Switch
    • Schemaold and new column
    • Old appworks
    • New appworks
  3. Contract
    • Schemanew column only
    • Old appbreaks
    • New appworks
  • Schema as codeEvery change is a file in the repository.
  • Safe changes: expand and contractThe pattern in the table.
  • Rollback or forward fixWhen to undo a migration and when to fix it forward.
  • Seeds, fixtures and test dataData you can rebuild on demand.
  • Migrations in the deployWhere in a release the migration runs.
A table with three phases as columns and three rows: the schema, the old app and the new app. A mark shows where each one works. In every phase at least one app version works with the schema, and in the middle phase both do.

Try it: pipeline order

Which order gives the fastest answer?

Chapter 5 is about what CI is for, stage order and pipeline time, and quality gates. Move the stages around below and see what the order costs.

A pipeline with five stages

Example, not the course's numbers

Your order

  1. Lint1 min, fails 15%reached 100%
  2. Unit tests4 min, fails 12%reached 85%
  3. Build the image6 min, fails 5%reached 75%
  4. End to end tests15 min, fails 8%reached 71%
  5. Dependency scan3 min, fails 3%reached 65%

Average minutes to an answer
21.5
Fastest order
21.3

The rule, in words

  1. Stages run one after another, and a run stops at its first failing stage.
  2. A stage only costs its minutes when every stage before it passed, so its cost is its minutes times the chance that it is reached.
  3. The average time to an answer is the sum of those costs.
  4. The fastest order sorts by minutes divided by failure chance, smallest first. A stage that never fails goes last.

Invented numbers, and failures treated as independent. Real stages share causes and real pipelines also run stages in parallel and cache results.

  • What CI is forFast, shared feedback on every change.
  • Stage order and pipeline timeThe idea you just tried.
  • Quality gates and flaky testsWhat blocks a merge, and what to do with a test that fails at random.
  • Caching and artifactsDo not rebuild what has not changed.
  • Protecting mainRules for the branch everything ships from.
Five pipeline stages as a list you can reorder with buttons. For each order the page shows the average minutes until a run gives its answer, next to the fastest order.

Chapter 6

Staging, production and safe rollouts

A release climbs through environments, with a gate at each step. The chapter covers promotion, deployment strategies, health checks and the decision to go on or turn back.

Example environments
  1. GateLocal
  2. GateCI
  3. GateStaging
  4. Production
Roll back
  • Environments and promotionMove one build up through the environments.
  • Deployment strategiesRolling, blue-green and canary compared.
  • Rolling update limitsHow many replicas may be down or extra at once.
  • Health checksLet the platform know when a copy is ready.
  • Canary decisions and flagsWiden or stop a rollout from the evidence.
A staircase of four environments rising left to right, with a gate between each step and an arrow that leads back down for a rollback.

Chapter 7

Release trains, rollback and dependency updates

Releases leave on a schedule, with a version, a changelog and a way back. The same chapter counts the packages you depend on as part of the release.

  1. ReleaseDeparts on schedule
  2. 01Release trainsA fixed departure that changes can board.
  3. 02Versions and changelogsSay what changed and how big the change is.
  4. 03Rollback or roll forwardChoose the faster way out.
  5. 04Dependency update policyWho updates what, and how often.
  6. 05Supply chain basicsKnow what you pull into your build.
A release train drawn left to right: an engine, then five coupled cars, one for each lesson of the chapter.

Chapter 8

Capstone: from local stack to automated release

The capstone takes one local stack all the way to an automated release. It ends with a readiness scorecard that looks back at what the course set out to teach.

  • Audit the starting pointWhat does the stack do today, and what is missing?
  • Design the pipelineStages, gates and where each one runs.
  • Release and rollback planHow the release goes out and how it comes back.
  • Dry run and reading logsRun the plan and read what the logs say.
  • Readiness scorecardCheck the stack against the course outcomes.

Readiness scorecard

  • Reproducible local environments
  • Containers and Compose
  • Configuration and secrets
  • Databases and migrations
  • CI pipelines and quality gates
  • Staging, production and safe rollouts
Open the course
Five capstone lessons in order on the left. On the right a scorecard with one row for each of the course's six outcomes and an empty check box in front of it.

After the release: Production AI Infrastructure & Deployment →The wider path: become an AI engineer →

Questions about the Docker and CI/CD course

  • What does the Docker and CI/CD course teach?

    How to take an AI application from a laptop to automated, safe releases. It covers reproducible local environments, containers and Compose, configuration and secrets, databases and migrations, CI pipelines and quality gates, staging and rollouts, and release trains.

  • What do I deliver at the end of the Docker course?

    The capstone takes one local stack all the way to an automated release. You audit the starting point, design the pipeline, write a release and rollback plan, do a dry run and read its logs, and finish with a readiness scorecard.

  • Does the course cover secrets and migrations?

    Yes. One chapter covers configuration and secrets, including scanning, hooks and validating settings at start-up. Another covers databases and migrations, including expand and contract changes, rollback or forward fix and migrations in the deploy.

  • How does it differ from the AI infrastructure course?

    Here a local stack becomes an automated release. The AI infrastructure course picks up with a service that already runs and covers its deployment, observability, scaling, cost and recovery.

  • Is the pipeline planner the method from the course?

    No. It is a small example written for this page, with invented stages and numbers. It shows one idea of the stage order lesson: cheap checks that fail often belong early.

  • Can I get a certificate for it?

    We do offer certificates, with a verification code. They are Mirage's own statement and carry no state recognition.

  • Does the Academy have an AI coach?

    Yes. The Academy's AI coach is where you explain a lesson back after you studied it. It belongs to the Academy as a whole.

  • Is the course available in German?

    This course is taught in English, and the Academy site switches between English and German.