~/talk

Containerizing Rails: Techniques, Pitfalls, & Best Practices

Talkat RailsConf 2018 · 2018-04-17..04-19· [ruby-on-rails, kubernetes]
slides:none on file

Shows how a nontrivial Rails app goes to Kubernetes and what actually changes: use a multi-stage Dockerfile to build gems with compilers then copy only runtime files so images shrink (build‑essential triples an Ubuntu base), combine installs and cleanup in one RUN like run apt-get update && apt-get install && apt-get clean in one RUN so caches never land in layers, set locale, create an unprivileged user, prefer exec/JSON entrypoint so signals reach Rails, send logs to stdout, and keep one main process per container for predictable resource limits.

AI-written summary · about

  1. 0:00Introduction and concepts
  2. 4:26Working with base images
  3. 10:48Optimizing image size
  4. 18:07Multistage build strategy
  5. 21:53Runtime configuration tips
  6. 26:42Process management
  7. 30:47Avoid on-build
  8. 32:24Production orchestration
  9. 37:25Logging and wrap-up
~/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.