feat(data-track/week-5): add Week 5 practice exercises#20
Merged
Conversation
added 2 commits
May 21, 2026 22:43
Exercises cover the five Week 5 content chapters: - Ex1: Minimal Pipeline to Container (Ch3 Docker Fundamentals) - Ex2: Cache-Friendly Dockerfile with requirements.txt (Ch3 + Ch2) - Ex3: Cache-Friendly Dockerfile with uv (Ch3 + Ch2) - Ex4: Compare both Docker approaches, written answers (Ch2 + Ch3) - Ex5: CI Smoke Test — GitHub Actions + pytest (Ch5) - Ex6: Environment Variable Patterns — -e, --env-file, ARG vs ENV (Ch3) - Ex7: Image Tagging Strategy — docker tag, commit SHA (Ch4) Verified end-to-end: - Ex1/2/6: pipeline.py runs cleanly (API key present: False) - Ex3: uv.lock generated from pyproject.toml (uv 0.10.8) - Ex5: pytest test_smoke.py passes (1 passed in 0.02s) - Ex4/7: conceptual — verified against reference answers in solutions/ - Dockerfiles (Ex1-3, 6) and GitHub Actions (Ex5) require Docker/GitHub to run; solutions carry # WHY comments for each instruction
…apter
The practice chapter (week_5__6_practice.md) references 'src/pipeline.py' in
Exercise 1. Align exercises 1-3 and 6 to use src/ subdirectory structure.
- Rename exercise_{1,2,3,6}/pipeline.py -> src/pipeline.py
- Update all Dockerfiles (starter + solution) to COPY src/ and CMD src/pipeline.py
- Update READMEs to reference src/pipeline.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Scaffolds 7 practice exercises for Week 5: Containers & CI/CD in the HYF Data Track curriculum.
Exercises
exercise_1/exercise_2/exercise_3/exercise_4/exercise_5/exercise_6/exercise_7/Layout
Single-branch +
solutions/pattern (same as Weeks 1–4). Eachexercise_N/solutions/holds the reference answer with# WHYcommentary.Verification
pipeline.py(Ex1/2/6): runs cleanly —API key present: Falseuv.lock(Ex3): generated with uv 0.10.8test_smoke.py(Ex5):pytest— 1 passed in 0.02s# WHYcomments for each instructionCurriculum chapter
The practice chapter
week_5__6_practice.mdwill be wired to this folder with Codespace +📦 Files:callouts in a follow-up commit to the datatrack repo.