perkeep/pkg/serverinit
Brad Fitzpatrick e86d90dd42 GCE: expose host's systemd journal to camlistored; add /var/logs handler
The machine now boots with a new pair of cooperating systemd units:

1) cam-journal-gatewayd.service: a copy of the systemd-journal-gatewayd service,
   which runs an HTTP interface to the systemd journal.
2) cam-journal-gatewayd.socket: a unix socket listener listening on unix
   socket /run/camjournald.sock. Incoming connections will forward to 1).

Then the camlistored.service unit running camlistored under Docker now
passes -v /run/camjournald.sock:/run/camjournald.sock to make that unix socket
available to the Docker container.

Then in camlistored, a new handler at /debug/logs (wrapped in auth
checks) then opens that socket and makes an HTTP request to it,
copying its response (of log lines) back to the browser.

This will ease debugging, letting people only use their browser to
debug (or send logs to the Camlistore developers more likely), rather
than sshing in to CoreOS and learning CoreOS and systemd arcana.

Change-Id: Icd5967ae7e9946d36229bdbc5d37644a11ee5e9f
2014-08-18 15:20:59 -07:00
..
testdata serverinit: clean up and simplify the high-to-low-level config generator 2014-08-07 18:47:42 -07:00
devmode.go Fixed calls to formatting functions 2014-07-21 22:06:53 +00:00
env.go serverinit: in the GCE env, set the BaseURL based on the IP address for now. 2014-08-15 22:06:13 -07:00
export_test.go rename pkg/serverconfig to pkg/serverinit 2014-01-23 17:18:46 +01:00
genconfig.go serverinit: break WriteDefaultConfigFile up, pull out getOrMakeKeyring 2014-08-15 20:49:26 -07:00
genconfig_test.go serverinit: allow specifying port numbers in user@server:port:pass 2014-08-06 15:07:43 -07:00
serverinit.go GCE: expose host's systemd journal to camlistored; add /var/logs handler 2014-08-18 15:20:59 -07:00
serverinit_test.go serverinit: clean up and simplify the high-to-low-level config generator 2014-08-07 18:47:42 -07:00