forked from hswaw/hscloud
Serge Bazanski
5e695e8f9b
This brings oodviewer into k0. oodviewer started as a py2/flask script running on q3k's personal infra, which is now being turned down. This is a rewrite of that script into similarly mediocre Go, conforming to the exact same mediocre JSON API and spartan HTML interface. This also deploys it into k0 in the oodviewer-prod namespace. It's already running, but the 'oodviewer.q3k.me' TTL has to expire before it begins handling traffic. Change-Id: Ieef1b0f8f0c60e6fa5dbe7701e0a07a4257f99ce
866 B
866 B
Oodviewer
Spartan web interface for the term database of our IRC bot (ood/oof/klacz).
Go rewrite of a shitty old Python script that q3k wrote and hosted on his own infra. Now productionized!
Building and Running
bazel build //hswaw/oodviewer
bazel run //hswaw/oodviewer -- -postgres 'postgres://ood:password@host/ood'
Production deployment
Runs on k0, connects to ood's database on boston. Serves from https://oodviewer.q3k.me/.
To deploy:
bazel run //hswaw/oodviewer:push
# update //hswaw/oodviewer/prod.jsonnet with new image name
kubecfg update prod.jsonnet
Development
Beg and borrow ood admins for psql credentials. Keep in mind that you will not be able to access the production database over the Internet - either develop on Boston or run a port forward over SSH.