Giter Site home page Giter Site logo

tiny-talk-resources's Introduction

Readme

This is a set of examples supporting my Lightning Talk "A Tiny Talk on Tiny Containers" at KubeCon NA 2023.

The talk demonstrates good practices and approaches for reducing container image size and is intended for cloud native beginners.

The core points are to prefer the most minimal base image that fits your requirements and take advantage of multi-stage builds.

The examples in this repo are simple Go applications (the same in each example) with Dockerfiles that produce very different image sizes:

  • A single-stage build using the Go 1.21 Debian-based image produces an image that is 301.86 MB compressed.
  • A single-stage build using the Go 1.21 Alpine-based image produces an image that is 85.79 MB compressed.
  • A multi-stage build using Alpine as a base image for the final product creates an image that is 6.95 MB compressed.
  • A multi-stage build using the "scratch" base image for the final product creates an image that is 3.71 MB compressed.

The talk also discusses creating a Wasm module that runs on Kubernetes sized at 83.3 KB. You can learn more about the Wasm approach here.

tiny-talk-resources's People

Contributors

ericgregory avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.