Kaydet (Commit) b6d9af59 authored tarafından Michael Sander's avatar Michael Sander Kaydeden (comit) Joffrey F

Encode the tar ball with gzip

Gzipping this tarball can greatly reduce the time it takes to send a docker file.
Signed-off-by: 's avatarspeedplane <mes65@cornell.edu>
üst 4529dcea
......@@ -46,7 +46,8 @@ class BuildApiMixin(object):
if os.path.exists(dockerignore):
with open(dockerignore, 'r') as f:
exclude = list(filter(bool, f.read().splitlines()))
context = utils.tar(path, exclude=exclude, dockerfile=dockerfile)
context = utils.tar(path, exclude=exclude, dockerfile=dockerfile, gzip=True)
encoding = 'gizp'
if utils.compare_version('1.8', self._version) >= 0:
stream = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment