Part 1 of 7 · 1 min read
Overview
In this module you will
- Explain what a container and an image are, in your own words.
- Write a Dockerfile that builds quickly, runs as a normal user and holds no secrets.
- Run a service with Docker Compose.
- Set up a GitHub Actions pipeline that scans for secrets, checks style, runs tests and builds the image on every push.
Agent services depend on many fast-moving libraries, sometimes a browser or a code sandbox, and several keys. "It runs on my laptop" is not good enough when the same service must also run for a teammate, in automatic checks and in production.
A container fixes the environment. A CI pipeline fixes the process: every change is checked the same way before anyone reviews it. In later levels CI will also run your evaluations, so a prompt change that makes the agent worse can block a merge.