WIP: fixing docker issues

This commit is contained in:
Gui Heise 2021-09-07 15:02:21 -04:00
parent 26d9918eb1
commit 5be81ececf
2 changed files with 7 additions and 6 deletions

View File

@ -9,18 +9,18 @@ import click
def start(d: str): def start(d: str):
"""if d is present, run docker compose as daemon""" """if d is present, run docker compose as daemon"""
if d: if d:
check_call(["docker-compose", "up", "-d"]) check_call(["docke", "compose", "up", "-d"])
click.echo("docker running in the background...") click.echo("docker running in the background...")
else: else:
check_call(["docker-compose", "up"]) check_call(["docker", "compose", "up"])
def stop(): def stop():
check_call(["docker-compose", "down"]) check_call(["docker", "compose", "down"])
def build(): def build():
check_call(["docker-compose", "build"]) check_call(["docker", "compose", "build"])
def attach(): def attach():
@ -30,4 +30,4 @@ def attach():
@click.command() @click.command()
@click.argument("args", nargs=-1) @click.argument("args", nargs=-1)
def exec(args: List[str]): def exec(args: List[str]):
check_call(["docker-compose", "exec", "mev-inspect", *args]) check_call(["docker", "compose", "exec", "mev-inspect", *args])

View File

@ -18,7 +18,8 @@ import click
def inspect(block_number: str, rpc: str, cache: bool): def inspect(block_number: str, rpc: str, cache: bool):
check_call( check_call(
[ [
"docker-compose", "docker",
"compose",
"exec", "exec",
"mev-inspect", "mev-inspect",
"python", "python",