Tuxput: Update Pipfile and zappa_settings

Signed-off-by: Benjamin Copeland <ben.copeland@linaro.org>
Change-Id: Iadea7515aede2b6a8322e15ae0522128498fb996
2 files changed
tree: 462c55636a77c4fc1fd167f218099b37cabe5f5c
  1. Pipfile
  2. Pipfile.lock
  3. README.md
  4. sample-tuxput.json
  5. zappa_init.py
  6. zappa_settings.yml
README.md

This repository uses Zappa, TuxPut, and pipenv to deploy an upload server to S3!

Installing

This will create Pipfile and Pipfile.lock.

$ pipenv install zappa
$ pipenv install -e git+ssh://git@gitlab.com/Linaro/tuxput.git@master#egg=tuxput

Updating

This will update Pipfile.lock based on the most current version of the things listed in Pipfile.

$ pipenv update

Once it's already been deployed, changes (such as tuxput updates) are deployed using 'zappa update'.

$ pipenv run zappa update dev
$ # test/validate dev
$ pipenv run zappa update prod

Running Locally

$ CONF_BUCKET=testing-tuxpub-auth S3_REGION=us-east-1 FLASK_APP=tuxput pipenv run flask run

Deploying

For the time being, there is only one environment: production. The deploy and update verbs require an environment argument.

$ pipenv run zappa deploy prod

Certifying

To associate a zappa deploy with a domain name, as defined in zappa_settings.yml, run zappa certify. We use ACM certificates to terminate https, which were manually created and are automatically renewed.

$ pipenv run zappa certify prod

API Gateway

You will also need to setup the AWS API Gateway and Route 53 entry for your site. The API Gateway should be tied to the project_name value in zappa_settings.yml.