Clone this repo:
  1. e41ba75 init: Deploy tuxpub by Benjamin Copeland ยท 4 years, 8 months ago master openci_migration_start

This repository uses Zappa, TuxPub, and pipenv to deploy a serverless S3 file server to the internet!

Installing

This will create Pipfile and Pipfile.lock.

$ pipenv install zappa
$ pipenv install git+https://gitlab.com/Linaro/tuxpublish.git@master#egg=tuxpub

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 tuxpub updates) are deployed using 'zappa update'.

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

Running Locally

$ S3_BUCKET=trustedfirmware-prod-storage S3_REGION=us-east-1 ROOT_INDEX_LISTING=True FLASK_APP=tuxpub pipenv run flask run

Deploying

There are two environments: staging and production. The deploy and update verbs require an environment argument.

$ pipenv run zappa deploy dev

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 dev