FIXES #10: support "build: ./path/context"

This commit is contained in:
alsadi 2019-05-01 16:20:13 +03:00
parent 655d5d9b51
commit 3e3fe9cba6

View File

@ -388,6 +388,8 @@ def build(project_name, dirname, pods, containers, dry_run, podman_path):
for cnt in containers:
if 'build' not in cnt: continue
build_desc = cnt['build']
if not hasattr(build_desc, 'items'):
build_desc = dict(context=build_desc)
ctx = build_desc.get('context', '.')
dockerfile = os.path.join(ctx, build_desc.get("dockerfile", "Dockerfile"))
build_args = [