7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-11 18:22:20 +00:00

Minor simplification for calling docker

This commit is contained in:
Régis Behmo 2020-11-14 12:26:06 +01:00
parent 6bf8bcdffe
commit d351ca9184
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ def build(context, mode):
@click.pass_obj
def pullimage(context):
config = tutor_config.load(context.root)
utils.execute("docker", "pull", config["DOCKER_IMAGE_ANDROID"])
utils.docker("pull", config["DOCKER_IMAGE_ANDROID"])
def build_command(config, target):

View File

@ -13,9 +13,9 @@ def build(path, tag, *args):
def pull(tag):
fmt.echo_info("Pulling image {}".format(tag))
utils.execute("docker", "pull", tag)
utils.docker("pull", tag)
def push(tag):
fmt.echo_info("Pushing image {}".format(tag))
utils.execute("docker", "push", tag)
utils.docker("push", tag)