From bb29bc2b6cbad04c642b8db8d430f5221d1065ec Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Thu, 23 May 2019 16:20:50 -0700 Subject: [PATCH] Add deployment docs --- DEPLOY.md | 29 +++++++++++++++++++++++++++++ README.md | 20 ++++++++++++++++---- 2 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 DEPLOY.md diff --git a/DEPLOY.md b/DEPLOY.md new file mode 100644 index 0000000..b4b08d5 --- /dev/null +++ b/DEPLOY.md @@ -0,0 +1,29 @@ +# Deployment Instructions +Create a .pypirc file in your home directory like so: +``` +▶ cat ~/.pypirc +[distutils] +index-servers = + pypi + +[pypi] +repository: https://upload.pypi.org/legacy/ +username: REPLACE_ME +password: *** +``` + +Install twine: +``` +pip3 install twine +``` + +Build the dist packages: +``` +rm -rf dist +python3 setup.py sdist bdist_wheel +``` + +Deploy: +``` +twine upload dist/* +``` diff --git a/README.md b/README.md index d0cf67b..2819188 100644 --- a/README.md +++ b/README.md @@ -288,6 +288,17 @@ Builds and pushes your docker image to the AWS docker repo numerai docker deploy ``` +### numerai destroy + +If you ever want to delete the AWS environment to save costs or start from scratch, you can run the following: +``` +numerai destroy +``` + +This will delete everything, including the lambda url, the docker container and associated task, as well as all the logs + +This command is idempotent and safe to run multiple times. + ## Troubleshooting ### Container uses up too much memory and gets killed @@ -319,11 +330,12 @@ We estimate costs to be less than $5 per month unless your compute takes more th ## Uninstall -If you ever want to delete the AWS environment to save costs or start from scratch, you can run the following: +Destroy the AWS environment ``` numerai destroy ``` -This will delete everything, including the lambda url, the docker container and associated task, as well as all the logs - -This command is idempotent and safe to run multiple times. +And then uninstall the package: +``` +pip3 uninstall numerai-cli +```