From 2d7c80249e9306cdc28bfc158f64395d9a08839d Mon Sep 17 00:00:00 2001 From: Olivier Desenfans Date: Fri, 29 Sep 2023 10:49:18 +0200 Subject: [PATCH] fix deploy script --- README.md | 6 +++--- deployment/{deploy_vms.py => deploy_vrf_vms.py} | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename deployment/{deploy_vms.py => deploy_vrf_vms.py} (98%) diff --git a/README.md b/README.md index 0fb8396..2763e3a 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ We provide a script to deploy the VM functions. Just run the following command to package the application and upload it to the aleph.im network. ``` -python3 deployment/deploy_vms.py +python3 deployment/deploy_vrf_vms.py ``` If the deployment succeeds, the script will display links to the VMs on the aleph.im network. Example: @@ -52,7 +52,7 @@ The coordinator can also be used directly from Python code. First, deploy the executors using the deployment script, without the coordinator VM: ``` -python3 deployment/deploy_vms.py --no-coordinator +python3 deployment/deploy_vrf_vms.py --no-coordinator ``` This will deploy an executor VM on the network and give you its ID. @@ -109,7 +109,7 @@ pytest -v . ### Create a new release -1. Deploy the VMs: `python3 deployment/deploy_vms.py` +1. Deploy the VMs: `python3 deployment/deploy_vrf_vms.py` 2. Update the executor VM hash in the settings (Settings.FUNCTION) and create a Pull Request 3. Merge the Pull Request and create a new release on Github 4. Build and upload the package on PyPI: `python3 -m build && twine upload dist/*` diff --git a/deployment/deploy_vms.py b/deployment/deploy_vrf_vms.py similarity index 98% rename from deployment/deploy_vms.py rename to deployment/deploy_vrf_vms.py index 2cf5d7b..14e9b33 100644 --- a/deployment/deploy_vms.py +++ b/deployment/deploy_vrf_vms.py @@ -174,7 +174,7 @@ async def main(args: argparse.Namespace): def parse_args(args) -> argparse.Namespace: parser = argparse.ArgumentParser( - prog="vm_supervisor", description="Aleph.im VM Supervisor" + prog="deploy_vrf_vms", description="Deploys the VRF VMs on the aleph.im network." ) parser.add_argument( "--no-coordinator",