This commit is contained in:
ahmadbilalkhalid 2019-08-30 19:19:37 +05:00
parent 18206332b1
commit be15534332
5 changed files with 9 additions and 5 deletions

View file

@ -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(

View file

@ -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)

View file

@ -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(

View file

@ -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)

View file

@ -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