From edf4ee638df7776913d32951df08d8c5217c8777 Mon Sep 17 00:00:00 2001 From: Aaron Virshup Date: Wed, 4 Apr 2018 14:00:37 -0700 Subject: [PATCH] update utils.tar call --- dockermake/step.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dockermake/step.py b/dockermake/step.py index 31d703d..c70efb3 100644 --- a/dockermake/step.py +++ b/dockermake/step.py @@ -122,11 +122,14 @@ def build(self, client, pull=False, usecache=True): if not self.custom_exclude: kwargs.update(path=context_path) else: - print(colored(' Custom .dockerignore from:','blue'), + print(colored(' Custom .dockerignore from:', 'blue'), colored(os.path.relpath(self.ignoredefs_file), 'blue', attrs=['bold'])) + + # AMV - this is a brittle internal call to the library context = docker.utils.tar(self.build_dir, exclude=self.custom_exclude, - dockerfile=os.path.join(DOCKER_TMPDIR, 'Dockerfile'), + dockerfile=(os.path.join(DOCKER_TMPDIR, 'Dockerfile'), + dockerfile), gzip=False) kwargs.update(fileobj=context, custom_context=True)