gigascience / gigadb-website

Source code for running GigaDB
http://gigadb.org
GNU General Public License v3.0
9 stars 15 forks source link

Deploy GigaDB.org website from CI/CD pipeline onto AWS #566

Closed rija closed 6 months ago

rija commented 3 years ago

User story

As a website user I want gigadb.org to be deployed from CI/CD pipeline onto AWS environments So that I can work with a robust and frequently updated website

Acceptance criteria

When all this is done:

  1. Identify peculiar datasets (which include the ones that are held up by BGI/CNGB legalities) and store on spreadsheet

  2. Replace urls of non-peculiar datasets available from wasabi on staging (and capture how long it took)

  3. Regenerate readme files for the datasets on staging (and capture how long it took)

  4. Revisit how we integrate with GitLab Terraform state management to ensure any of us can reconnect the up-to-date state of what's actually deployed

  5. Destroy and rebuild the Upstream environments, and put back bastion user credentials

  6. Make sure provisioning script are idempotent on Upstream environments

  7. Rehearse DB backup restoration and make sure there are no errors doing so, and that we can continue provisioning the environment afterwards a. Must be easily restorable b. Must still be able to provision the environment after that c. Restore up to 1 h before incident d. Potentially get rid of problematic methods of restoration

  8. Get rid of Giga review pipeline jobs

  9. Document and implement release protocol for gigadb-website web application: a. Use semantic versioning b. Document when to release to live c. Use git tags to add version number to develop branch d. Display version number in the admin interface e. Add gigadb-website to software heritage archive

  10. Make SOP for accessing monitoring tools (Grafana/Prometheus and Tideways)

  11. Stop the DB synchronisation

  12. Replace urls of non-peculiar datasets available from wasabi on live

  13. Regenerate readme files for the datasets on live

  14. Stop the daily backup of database done on CNGB

  15. Secure time slot for curators to upload images to the most recent datasets and to the most popular datasets (100s)

  16. Change the DNS record of gigadb.org to point to elastic Ip address of Upstream live web app EC2 instance

rija commented 6 months ago

This is now done