a
This commit is contained in:
parent
139c693add
commit
4b51537e0e
6 changed files with 32 additions and 26 deletions
14
app/host.py
14
app/host.py
|
|
@ -24,7 +24,7 @@ def setup(path, ssh_username, ssh_key_path, ssh_key_pass, etcd_url, without_ceph
|
|||
repo_name = "ucloud-vm"
|
||||
|
||||
# Clone main repo
|
||||
sp.check_output(['git', 'clone',
|
||||
sp.check_output(['git', 'clone', '--single-branch', '--branch', 'wip'
|
||||
f'https://code.ungleich.ch/ungleich-public/{repo_name}.git'])
|
||||
|
||||
# Create .env file
|
||||
|
|
@ -39,15 +39,15 @@ def setup(path, ssh_username, ssh_key_path, ssh_key_pass, etcd_url, without_ceph
|
|||
f.writelines(content)
|
||||
|
||||
# Clone Common and Etcd Wrapper
|
||||
clone_common(path=repo_name)
|
||||
clone_etcd_wrapper(path=repo_name)
|
||||
# clone_common(path=repo_name)
|
||||
# clone_etcd_wrapper(path=repo_name)
|
||||
|
||||
# Copy Etcd Wrapper inside ucloud_common as ucloud_common
|
||||
# also needs etcd wrapper
|
||||
shutil.copytree(
|
||||
src=os.path.join(repo_name, "etcd3_wrapper"),
|
||||
dst=os.path.join(repo_name, "ucloud_common", "etcd3_wrapper"),
|
||||
)
|
||||
# shutil.copytree(
|
||||
# src=os.path.join(repo_name, "etcd3_wrapper"),
|
||||
# dst=os.path.join(repo_name, "ucloud_common", "etcd3_wrapper"),
|
||||
# )
|
||||
|
||||
install_available(repo_name)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue