1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/builder
Daniel, Dao Quang Minh 87d0562c61 expose sorts its ports before saving as comment
Saving ports as `map[nat.Port]struct{}` directly has ordering issue which is
more replicatable where we expose a huge number of ports at the same time. As a
result, the cache will be burst whenever the map order is different from the
previous build.
This sorts the ports first and save them as a whitespace-separated list instead
of the map representation, so the order will always be consistent if the port
list isnt changed.

NOTICE: this will burst the old expose caches

Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <dqminh89@gmail.com> (github: dqminh)
2014-11-12 09:14:35 -05:00
..
parser Remove the redundant stripComment. 2014-11-09 23:07:44 +08:00
dispatchers.go expose sorts its ports before saving as comment 2014-11-12 09:14:35 -05:00
evaluator.go speed up creation of args and msg for huge cmds 2014-11-12 00:04:45 -05:00
internals.go Use the HTTP Last-Modified http header as the mtime value for ADD cmd when present 2014-11-07 13:58:05 -08:00
job.go Merge pull request #8468 from laktek/master 2014-10-31 14:43:21 -07:00
MAINTAINERS Add a new MAINTAINERS file for the builder. 2014-09-17 15:36:04 -07:00
support.go builder: handle escapes without swallowing all of them. 2014-10-27 17:38:24 +00:00