Skip to content

Commit

Permalink
Add deployment docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jparyani committed May 23, 2019
1 parent b61ba49 commit bb29bc2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 4 deletions.
29 changes: 29 additions & 0 deletions DEPLOY.md
Original file line number Diff line number Diff line change
@@ -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/*
```
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
```

0 comments on commit bb29bc2

Please sign in to comment.