mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-11-24 13:43:01 +00:00
18 lines
515 B
Python
18 lines
515 B
Python
# local
|
|
from ..subcommand import ServiceCommand
|
|
|
|
|
|
class BuildCommand(ServiceCommand):
|
|
"""kiwi build"""
|
|
|
|
def __init__(self):
|
|
super().__init__(
|
|
'build', num_projects='?', num_services='*',
|
|
action="Building images for",
|
|
description="Build images for the whole instance, a project or service(s) inside a project"
|
|
)
|
|
|
|
def _run_services(self, runner, args, project, services):
|
|
project.compose_run(['build', '--pull', *services])
|
|
|
|
return True
|