6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00

Fix image building following small refactoring

This commit is contained in:
Régis Behmo 2019-04-25 21:58:06 +02:00
parent dafd5d2fc8
commit d5942d538f

View File

@ -34,11 +34,12 @@ argument_image = click.argument(
) )
def build(root, image, build_arg): def build(root, image, build_arg):
config = tutor_config.load(root) config = tutor_config.load(root)
for tag in openedx_image_tags(config, image): for img in openedx_image_names(config, image):
tag = get_tag(config, img)
click.echo(fmt.info("Building image {}".format(tag))) click.echo(fmt.info("Building image {}".format(tag)))
command = [ command = [
"build", "-t", tag, "build", "-t", tag,
tutor_env.pathjoin(root, "build", image) tutor_env.pathjoin(root, "build", img)
] ]
for arg in build_arg: for arg in build_arg:
command += [ command += [