Skip to content

Commit

Permalink
update utils.tar call
Browse files Browse the repository at this point in the history
  • Loading branch information
avirshup committed Apr 4, 2018
1 parent d522eec commit edf4ee6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dockermake/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit edf4ee6

Please sign in to comment.