mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-13 14:43:03 +00:00
Fix image building following small refactoring
This commit is contained in:
parent
dafd5d2fc8
commit
d5942d538f
@ -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 += [
|
||||||
|
Loading…
Reference in New Issue
Block a user