Skip to content

noosenergy/noos-docker-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI

Noos Docker Images

Set of developer tools for working locally on the Noos platform and build optimized Docker base images:

Quickstart

Docker installation

On Mac OSX, make sure Homebrew has been pre-configured, then install Docker,

brew cask install docker

Docker image optimisation

Analysis

You can use dive to look into the image build process and each layer.
Dive gives an "image efficiency" ratio and makes it easier to find wasted space in the final image.

brew install dive

Optimisation tips

  • Bundle commands with && to minimize the layer number (created by each RUN, COPY or ADD).
  • Clean unnecessary files at each layer phase.
  • Use MultiBuild to only copy the necessary resulting files from a heavy install.
  • When possible, squash layers that should not be used. An optimized base image could theoretically be squashed entirely.

Local development

The development workflows of this project can be managed by noos-invoke, a ready-made CLI for common CI/CD tasks.

~$ noosinv
Usage: noosinv [--core-opts] <subcommand> [--subcommand-opts] ...

About

Docker base images for containerised services.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published