a
This commit is contained in:
parent
18206332b1
commit
be15534332
5 changed files with 9 additions and 5 deletions
|
@ -49,8 +49,9 @@ def setup(path, base_dir, file_prefix, etcd_url, etcd_password):
|
||||||
url="https://code.ungleich.ch/ahmedbilal/etcd3_wrapper",
|
url="https://code.ungleich.ch/ahmedbilal/etcd3_wrapper",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
op_result.add(PipenvOperation.create, path=repo_name, site_packages=True)
|
||||||
op_result.add(PipenvOperation.install, path=repo_name)
|
op_result.add(PipenvOperation.install, path=repo_name)
|
||||||
|
|
||||||
# Write Crontab entry
|
# Write Crontab entry
|
||||||
with open("/etc/crontabs/root", "a") as crontab:
|
with open("/etc/crontabs/root", "a") as crontab:
|
||||||
crontab.write(
|
crontab.write(
|
||||||
|
|
|
@ -63,4 +63,5 @@ def setup(path, ssh_username, ssh_key_path, ssh_key_pass, etcd_url, etcd_passwor
|
||||||
dst=os.path.join(repo_name, "ucloud_common", "etcd3_wrapper"),
|
dst=os.path.join(repo_name, "ucloud_common", "etcd3_wrapper"),
|
||||||
)
|
)
|
||||||
|
|
||||||
op_result.add(PipenvOperation.install, path=repo_name)
|
op_result.add(PipenvOperation.create, path=repo_name, site_packages=True)
|
||||||
|
op_result.add(PipenvOperation.install, path=repo_name)
|
|
@ -47,8 +47,9 @@ def setup(path, base_dir, etcd_url, etcd_password):
|
||||||
url="https://code.ungleich.ch/ahmedbilal/etcd3_wrapper",
|
url="https://code.ungleich.ch/ahmedbilal/etcd3_wrapper",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
op_result.add(PipenvOperation.create, path=repo_name, site_packages=True)
|
||||||
op_result.add(PipenvOperation.install, path=repo_name)
|
op_result.add(PipenvOperation.install, path=repo_name)
|
||||||
|
|
||||||
# Write Crontab entry
|
# Write Crontab entry
|
||||||
with open("/etc/crontabs/root", "a") as crontab:
|
with open("/etc/crontabs/root", "a") as crontab:
|
||||||
crontab.write(
|
crontab.write(
|
||||||
|
|
|
@ -63,4 +63,5 @@ def setup(path, vm_prefix, host_prefix, request_prefix, etcd_url, etcd_password)
|
||||||
dst=os.path.join(repo_name, "ucloud_common", "etcd3_wrapper"),
|
dst=os.path.join(repo_name, "ucloud_common", "etcd3_wrapper"),
|
||||||
)
|
)
|
||||||
|
|
||||||
op_result.add(PipenvOperation.install, path=repo_name)
|
op_result.add(PipenvOperation.create, path=repo_name, site_packages=True)
|
||||||
|
op_result.add(PipenvOperation.install, path=repo_name)
|
2
init.sh
2
init.sh
|
@ -18,7 +18,7 @@ apk add python3 ceph py2-pip py3-pip
|
||||||
# Some python package dependencies
|
# Some python package dependencies
|
||||||
apk add libffi-dev openssl-dev make alpine-sdk gcc g++ python3-dev
|
apk add libffi-dev openssl-dev make alpine-sdk gcc g++ python3-dev
|
||||||
|
|
||||||
apk add py3-grpcio
|
apk add py3-grpcio
|
||||||
pip3 install --upgrade pip
|
pip3 install --upgrade pip
|
||||||
pip2 install --upgrade pip
|
pip2 install --upgrade pip
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue