Personal website and all the garbage that comes with it.
The web backend here is a simple Python Tornado app serving templated static content. It is deployed as a Docker container onto the GCP free tier, using Certbot and an in-container Nginx to provision SSL certs and terminate connections.
-
brew update && brew upgrade pyenv virtualenv -
pyenv install -
./bootstrap.sh
python3 server.py
./build.sh
docker run -it -p 8888:8888 <image tag>
-
gcloud auth login -
./build.sh --upload
-
update image tag in
gcp_vm_startup.sh -
edit VM instance in GCP and copy-paste
gcp_vm_startup.shas thestartup script -
stop/start VM instance
-
update DNS records to point at new VM external IP
-
pip freeze | xargs pip uninstall -y -
pip install -r requirements.txt -
pip freeze -r requirements.txt > requirements.txt.freeze
- store SSL certs in GCP's Secret Manager rather than provisioning them on boot
- automatically pull external IP and update DNS records as needed
- block well known scraper paths (wordpress/php/etc stuff) at the Nginx layer
- move to a more modern web architecture using react/typescript and whatnot