GithubHelp home page GithubHelp logo

jfokus-2023-examples's Introduction

jfokus-2023-examples

This repo has some examples and links relevant to my talk Faster builds and slimmer images with Docker multistage builds at the 2023 installment of the JFokus conference.

Bug in the Jfokus presentation

If you watched the presentation you may have noticed that the demo of --cache-from didn't work out the way the presenter had hoped ๐Ÿ™‚

This was because you need to set the environment variable DOCKER_BUILDKIT for this feature to work:

# On *nix shells:
export DOCKER_BUILDKIT=1

# On Windows/cmd:
set DOCKER_BUILDKIT=1

Once this is set, you can use any image built with --build-arg BUILDKIT_INLINE_CACHE=1 can be used as a target for --cache-from.

The examples

  • example-node-app is a very full-featured example building a React app and packaging it in an nginx container. This is the project I demo in the talk.
  • example-mvn-app is a simple approach to a cache-friendly and fairly "feature complete" Maven build - you can build a container running a simple Spring Boot app, and export test reports.

Links

  • Mejsla - where I work
  • Dockerfile reference - this document probably has the answers to most technical questions you have about your Docker builds.

jfokus-2023-examples's People

Contributors

gustafc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.