AirborneOps Learning Labs · DevOps and container security
Build a GitLab pipeline. Harden containers with Gemini-assisted review.
Assemble lint, test, build, and image-scanning stages. Then use bounded Gemini prompts to review an authorized Dockerfile and sanitized findings, verify each fix, and keep the final security decisions with the responsible human.
This reading path is available from Learning Labs without using hands-on lab attempts. The website does not connect to Gemini or send files and findings to it.
Practice only with approval
Keep every repository, image, and pipeline activity in scope
Work only on assets you own or that an owner has explicitly authorized for these exact activities. Use a controlled training project, feature branch, runner, and registry. Confirm the permitted build, push, and scan actions before starting. Do not expand to production, protected branches, unrelated projects, or third-party images because they are reachable. Stop when scope or data-handling approval is unclear.
A practical, ordered sequence
From a verified pipeline to a reviewed image
Each lesson has a concrete objective, steps, a controlled exercise, and a knowledge check that explains both the best answer and the alternatives.
- Start lesson
Lesson 01 of 5 · about 7 minutes
Set the authorized scope and map the pipeline
Choose a controlled GitLab project, confirm the approved activities, and decide what evidence a useful pipeline should produce.
You will be able to: Record the exact repository, branch, image, runner, registry, and allowed actions before you change CI or container configuration.
- Open lesson
Lesson 02 of 5 · about 10 minutes
Build and validate a GitLab CI pipeline
Add ordered lint, test, and build jobs, validate the YAML, and inspect the outputs from a feature-branch pipeline.
You will be able to: Create a pipeline in an authorized project where failed verification blocks the build and a successful build exposes its expected artifact.
- Open lesson
Lesson 03 of 5 · about 9 minutes
Build a commit-tagged image and scan it
Connect a registry build to GitLab Container Scanning and read the job report as scoped evidence.
You will be able to: Build and push the authorized commit’s image, scan that same image reference, and report what the scan did and did not establish.
- Open lesson
Lesson 04 of 5 · about 11 minutes
Ask Gemini for a bounded Dockerfile review
Use Gemini to propose defensive edits to an authorized, sanitized Dockerfile, then verify each suggestion against the actual image.
You will be able to: Prompt Gemini to identify evidence-backed container improvements while retaining human review, scope boundaries, and build validation.
- Open lesson
Lesson 05 of 5 · about 9 minutes
Triage findings and prove the hardening result
Use a second Gemini prompt to organize sanitized scan findings, choose a fix, and compare the rebuilt image with direct evidence.
You will be able to: Verify scanner findings against the scanned image and demonstrate the approved base, non-root runtime, and secret-safe build outcomes.
Learner tools and source material
Use Gemini as a reviewer, then check the actual build
The prompts in the lessons are for a Gemini tool approved by your organization. Share only sanitized material allowed by policy, verify every suggestion against the Dockerfile, CI jobs, image configuration, and scanner report, and keep remediation and release decisions with the authorized owner.
Return to all Learning Labs