~/talk

0 to production-ready: a best-practices process for Docker packaging

Talkat PyCon US 2021 · 2021-05-14..05-15· [devops-and-delivery, security]
slides:none on file

A concrete iterative process appears: first get a working image, then fix security (for example don't run as root and remove build-time secrets), then automate CI builds and tag per branch, then ensure reproducible artifacts by pinning deps and using bases like python:3.9-slim-buster, then add operational fixes (faulthandler, precompiled pyc), and finally optimize build time and size (avoid Alpine for heavy Python wheels). The uploader claims over 70+ best practices collected and many are implemented as small reproducible steps.

AI-written summary · about

  1. 0:00Intro
  2. 0:33Why Docker packaging is
  3. 1:56The problem: too much to cover
  4. 2:24Today: learn the big picture
  5. 3:28An iterative Dockerizing process
  6. 4:57Get something working
  7. 7:06Example: don't run as root
  8. 8:472. Process: Security updates
  9. 10:34Automated builds/CI
  10. 13:32Operational correctness and debuggability
  11. 14:054. Example: Tracebacks on crashes in C code
  12. 15:384. Example: Pre-compile bytecode
  13. 16:40Reproducibility
  14. 20:20Faster builds and smaller images
  15. 22:37Dockerizing is not just about artifacts
  16. 23:19Thank you! Free resources on my website
~/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.