~/talk

Zero to production ready: a best practices process for Docker packaging

Talkat DjangoCon US 2021 · 2021-10-22..10-23· [devops-and-delivery]
slides:none on file

Starts with a working image and an explicit stepwise process: python:3.9-slim-bullseye base, listen on 0.0.0.0, non-root user and apt-get upgrade for security. Automate builds in CI, tag images by git branch and use docker pull plus docker build --cache-from to warm caches. Add runtime ops: FAULTHANDLER=1, exec/JSON entrypoint and gunicorn --worker-tmp-dir /dev/shm. Reproducibility via pinned deps (pip-tools), rebuilds with --no-cache --pull for updates, and optimize layers, avoid Alpine for many wheels and use --no-install-recommends and pip --no-cache-dir.

AI-written summary · about

  1. 0:00Docker packaging basics
  2. 2:40Why Docker packaging is complex
  3. 6:11Working Docker image
  4. 10:40Secure Docker image
  5. 15:55Automate Docker builds
  6. 24:39Operational correctness
  7. 31:39Reproducible builds
  8. 36:50Optimize images and builds
  9. 41:23Beyond the Dockerfile
  10. 42:03Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.