1
0
Fork 0
hscloud/hswaw/oodviewer
q3k 5e695e8f9b hswaw/oodviewer: init
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
2021-03-07 16:57:02 +01:00
..
secrets hswaw/oodviewer: init 2021-03-07 16:57:02 +01:00
templates hswaw/oodviewer: init 2021-03-07 16:57:02 +01:00
BUILD.bazel hswaw/oodviewer: init 2021-03-07 16:57:02 +01:00
OWNERS
README.md hswaw/oodviewer: init 2021-03-07 16:57:02 +01:00
app.go hswaw/oodviewer: init 2021-03-07 16:57:02 +01:00
main.go hswaw/oodviewer: init 2021-03-07 16:57:02 +01:00
prod.jsonnet hswaw/oodviewer: init 2021-03-07 16:57:02 +01:00
views.go hswaw/oodviewer: init 2021-03-07 16:57:02 +01:00

README.md

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.