Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Options Galore: From Source Code to Container Image

Options Galore: From Source Code to Container Image

A typical workflow in a modern software dev project can look like: Build code, put built artifact into container image, put container image into registry, deploy to Kubernetes. Each step has it’s own requirements and pitfalls alike. The overall goal is most often to bake those steps into easily repeatable pipelines and enable a high degree of automation.

Dockerfiles seems to be the choice with the highest adoption when it comes to containerizing code artifacts. However there are options, which might remove some of the pitfalls and standardize the entire process even more.

The talk will give deeper insights by comparing (multi-stage) Dockerfiles to Cloud-Native Buildpacks (buildpacks.io/paketo.io) and Google’s JIB under the evaluation criteria of build time, build size, standardization, robustness and security. The examples and live demo will have certain focus on Java-based frameworks (Spring Boot, Quarkus, Java EE), but coverage of other languages will also be included and highlighted.

The intented take-away of the session is a better overview of container building and deployment options along with understanding of requirements, advantages and drawbacks.

Matthias Haeussler

April 27, 2021
Tweet

More Decks by Matthias Haeussler

Other Decks in Technology

Transcript

  1. 2

  2. 46

  3. Novatec Consulting GmbH Bertha-Benz-Platz 1 D-70771 Leinfelden-Echterdingen T. +49 711

    22040-700 [email protected] www.novatec-gmbh.de 67 Chief Technologist Matthias Haeussler Mobil: +49 175 222 5949 E-Mail: [email protected] Twitter: @maeddes
  4. Sources @maeddes | § https://www.excalidraw.com § [1] https://docs.docker.com/engine/release-notes/prior-releases/ § [2]

    https://blog.codecentric.de/en/2020/11/buildpacks-spring- boot/ § [3] https://paketo.io/ § https://buildpacks.io/features/ § https://github.com/GoogleContainerTools/jib § https://www.baeldung.com/docker-layers-spring-boot § https://spring.io/blog/2020/01/27/creating-docker-images-with- spring-boot-2-3-0-m1 § https://github.com/openshift/source-to-image 69