This commit is contained in:
ahmadbilalkhalid 2019-08-29 00:11:36 +05:00
parent ad88f6ba0a
commit c2c32fe0f1

View file

@ -19,9 +19,10 @@ def image():
@image.command("setup")
@click.option("--path", required=True)
@click.option("--base_dir", required=True)
@click.option("--etcd_url", required=True)
@click.option("--etcd_password", required=True)
def setup(path, etcd_url, etcd_password):
def setup(path, base_dir, etcd_url, etcd_password):
os.chdir(path)
repo_name = "ucloud-image-scanner"
@ -30,7 +31,8 @@ def setup(path, etcd_url, etcd_password):
f"https://code.ungleich.ch/ungleich-public/{repo_name}.git"
)
content = f"ETCD_URL={etcd_url}\n" \
content = f"BASE_DIR={base_dir}\n" \
f"ETCD_URL={etcd_url}\n" \
f"ETCD_PASSWORD={etcd_password}\n"
op_result.add(