Justin Cormack b184b3f0e1 Compile Go code with docker run not docker build
Go code is really fast to compile so we do not really need to use the
cache features of `docker build`. So make a compile container instead.
This can also output a build context and Dockerfile if you want to do
a build.

For reference, an uncached `docker build` of our Go code takes about
7s, a cached one 1.2s, and this takes 1.7s, so the best case is a little
worse, but we save a lot of images, and the worst case is better.

This is mainly designed to make the nested builds for containerd
containers simpler too. Will add a variant for the C code as well.

Also add `-static` to the flags so we always make static executables,
which was omitted previously.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-01-13 15:49:51 +00:00
2016-12-22 13:40:28 -08:00
2016-12-19 17:06:41 +00:00
2017-01-12 09:47:32 +00:00
2016-10-31 15:34:56 +00:00
2016-11-14 11:20:09 +00:00
2017-01-12 10:04:13 +00:00

Moby, the Linux distro for Docker editions

Simple build instructions: use make to build. make qemu will boot up in qemu in a container.

Requires GNU make, GNU tar (not Busybox tar), Docker to build.

  • 1.12.x branch for Desktop stable 1.12 edition
  • 1.13.x branch for Desktop and Cloud 1.13; also supports 1.12 CS.
  • master for 1.14 development

Several kernel variants are supported:

  • default
  • make LTS4.4=1 4.4 LTS series
  • make AUFS=1 supports AUFS (deprecated)
  • make AUFS4.4=1 4.4 LTS series with AUFS (deprecated)
Description
A toolkit for building secure, portable and lean operating systems for containers
Readme 241 MiB
Languages
Go 48.3%
text 21.3%
Shell 14%
Dockerfile 5.7%
OCaml 4.6%
Other 6.1%