Files
linuxkit/alpine
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-28 18:09:08 +00:00
2017-01-10 11:40:36 +00:00
2016-12-12 19:17:24 -08:00
2016-09-14 11:38:55 +00:00
2017-01-10 17:34:24 +00:00
2016-09-22 16:24:58 -07:00

Build Azure VHD

To create the Azure VHD, the following will be needed:

  • An azure account
  • A Standard Storage account
  • A container (bucket) in the above storage account (private)
  • The access key associated with the above storage account
  • (opt) the url for the docker version you want to use in the VHD

In your terminal, with docker installed, run the following:

export AZURE_STG_ACCOUNT_NAME="<your-storage-account>"
export AZURE_STG_ACCOUNT_KEY="<your-access-key>"
export CONTAINER_NAME="<a-bucket-name>"
make uploadvhd DOCKER_BIN_URL="<tgz-docker-url>"

The above will output a URL which you can then use to deploy on editions.