mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-05 04:48:00 +00:00
Minor simplification for calling docker
This commit is contained in:
parent
6bf8bcdffe
commit
d351ca9184
@ -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):
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user