WIP: fixing docker issues
This commit is contained in:
parent
26d9918eb1
commit
5be81ececf
@ -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])
|
||||||
|
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user