mirror of
https://github.com/docker/compose.git
synced 2025-07-25 22:54:54 +02:00
Add build log message
This commit is contained in:
parent
96ca74ccc8
commit
ee0ac206e0
@ -1,5 +1,7 @@
|
|||||||
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
class Service(object):
|
class Service(object):
|
||||||
def __init__(self, name, client=None, links=[], **options):
|
def __init__(self, name, client=None, links=[], **options):
|
||||||
@ -72,6 +74,7 @@ class Service(object):
|
|||||||
container_options['name'] = make_name(self.name, number)
|
container_options['name'] = make_name(self.name, number)
|
||||||
|
|
||||||
if 'build' in self.options:
|
if 'build' in self.options:
|
||||||
|
log.info('Building %s from %s...' % (self.name, self.options['build']))
|
||||||
container_options['image'] = self.client.build(self.options['build'])[0]
|
container_options['image'] = self.client.build(self.options['build'])[0]
|
||||||
|
|
||||||
return container_options
|
return container_options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user