[PATCH 19 of 22] docker: simplify docker files

Matt Mackall mpm at selenic.com
Tue May 20 12:04:35 CDT 2014


On Tue, 2014-05-20 at 04:10 +0200, Mads Kiilerich wrote:
> # HG changeset patch
> # User Mads Kiilerich <madski at unity3d.com>
> # Date 1400551681 -7200
> #      Tue May 20 04:08:01 2014 +0200
> # Node ID 33b47ac7a7a12ae934a4c9037fd09aed83475f6b
> # Parent  e314e1ed2c21a404ce5e51ee73f7d0fa924026ec
> docker: simplify docker files
> 
> Less run commands executes faster and is simpler to maintain.

You may have saved 10 seconds for people who are using our Docker script
for the first time, but you're wasting 20 minutes, half a gig of
bandwidth, and a bunch of disk space for everyone who's already built
the images? Churn here is expensive.

On the other hand, sticking new things at the end of existing
dockerfiles is cheap, so it is in fact quite natural to build things
with each step on a separate line.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list