Skip to content
EduVerse

You’re reading the free preview.Unlock every conversation for €2.99

FreeFree previewChapter 9

Chapter 9 · Free preview

From Code to Production

Illustration from the book

What you will understand

  • Write a Dockerfile for a simple application
  • Explain the difference between a Docker image and a container
  • Describe what Kubernetes does and why it is needed
  • Explain the role of pods, deployments and services in Kubernetes
  • Build, tag and push a container image to a registry

Written by EduVerse for this preview; the slides below are the book’s own words.

Slides from the chapter

Each slide is a passage from the book with the figure or listing it talks about. Swipe, use the arrow keys or the buttons.

Slide 1 of 4

The Environment Problem

9.3 · p. 198

Figure from The Software Realm, Decoded

Chapter 9 · 9.3 The Environment Problem · p. 198

The Senior developer, from the book cover

Senior developer

Let me show you the real problem. On your laptop:

Inspect
Figure · The Environment ProblemFrom the book, p. 198
Try it interactively: Ship the environment: from “works on my laptop” to containers

Explore this figure

Pick one to highlight it and read what the book says about it.

Other labels in the figure (9)
Description

Two side-by-side stacks: 'Your Laptop' has 'Your App' on 'Java 17', 'Libraries (libpng 1.6, etc.)' and 'Your OS (Ubuntu 22.04)'; the 'Production Server' has 'Your App' on 'Java 11 (Wrong!)', 'Libraries (libpng 1.4, Wrong!)' and 'Server OS (CentOS 7)', with the two mismatched layers highlighted in red.

Description written by EduVerse; the figure itself is from the book.

Slide 1 of 4

Try it yourself

A simulation built by EduVerse around this chapter. It runs in your browser; nothing is sent anywhere.

Full book

The full chapter

This preview shows 5 of the chapter’s 47 passages. The full chapter has:

  • 10 sections
  • 35 conversations
  • 9 figures and tables
  • 2 What They Say boxes
  • 7 knowledge-check questions
Sections in this chapter
  1. 9.1The Old Way: Just Copy Everything
  2. 9.2From Source Code to Artifact
  3. 9.3The Environment Problem
  4. 9.4Containers: Shipping the Environment
  5. 9.5Docker: Building and Running Containers
  6. 9.6The Scaling Problem
  7. 9.7Kubernetes: The Desired State Engine
  8. 9.8Cloud-Native Mindset
  9. 9.9The Kubernetes Ecosystem
  10. 9.10Peter's Takeaways