Optimizing docker images for a faster development workflow

Click for: original source

jobandtalent Engineering published an interesting article on Docker images optimization. Architecture being based on docker means that every change that improves the usage of a resource (time to execute, memory usage, disk space usage, network usage…) in any stage of the process, will have an impact in each one of the environments.

Optimizations points to focus on:

  • Base images (basic software, minimal size)
  • Dependencies and context (be strict)
  • Dockerignore file
  • Mind the step, cache layering
  • Keep the layers small
  • Build several images

Detailed information for each step mentioned above provided. Plus links to further resources.

Authors also demonstrate optimization on real project. In this case they’ve chosen an open source, self hosted and mobile optimized CI, powered by fastlane. Nice one!

[Read More]

Tags docker kubernetes microservices