Add --no-cache option to fig build (Closes #152)

Signed-off-by: Mark Steve Samson <hello@marksteve.com>
This commit is contained in:
Mark Steve Samson 2014-07-01 11:08:37 +08:00
commit 47bbc35b74
3 changed files with 11 additions and 6 deletions

View file

@ -356,14 +356,15 @@ class Service(object):
return container_options
def build(self):
def build(self, no_cache=False):
log.info('Building %s...' % self.name)
build_output = self.client.build(
self.options['build'],
tag=self._build_tag_name(),
stream=True,
rm=True
rm=True,
nocache=no_cache,
)
try: