Commit graph

1663 commits

Author SHA1 Message Date
Vincent Ambo
c0b28fb866 fix(best-tools): Fix broken link anchors 2019-12-20 23:30:13 +00:00
Vincent Ambo
5dcf4c0d45 feat(fun): Add a document with information about the tools I use
Been meaning to publish this for a while and //depot/fun seems like
exactly the right place for it!
2019-12-20 23:25:41 +00:00
Landon Spear
98f8b660e2 docs(cluster-config): Correct term in cluster config doc
Including external variables does not work. You must import them. This
change corrects the External Variables section of the cluster-config
README.

Signed-off-by: Vincent Ambo <tazjin@google.com>
2019-12-20 22:32:06 +00:00
Vincent Ambo
db30770101 fix(kontemplate): Make build compatible with readTree
The kontemplate build will keep using `buildGoPackage` for now until
I've had the time to add tests to //nix/buildGo
2019-12-20 22:19:52 +00:00
Vincent Ambo
a9f5c63707 merge(kontemplate): Integrate kontemplate at //depot/ops/kontemplate 2019-12-20 22:14:40 +00:00
Vincent Ambo
795a974665 chore(kontemplate): Prepare kontemplate for depot-merge
This merge will not yet include moving over to buildGo.nix, as support
for testing and such is not present in that library yet.
2019-12-20 22:13:07 +00:00
Vincent Ambo
9885036eec chore(yants): Move tests into subfolder & add to CI builds 2019-12-20 21:53:19 +00:00
Vincent Ambo
902500c4ea fix(yants): Allow extra import arguments
Required for readTree compatibility.
2019-12-20 21:49:00 +00:00
Vincent Ambo
b98c60ecca merge(yants): Integrate yants into depot at //depot/nix/yants 2019-12-20 21:47:38 +00:00
Vincent Ambo
210893ce09 chore(yants): Prepare for depot-merge
Yants is being integrated at //depot/nix/yants
2019-12-20 21:46:59 +00:00
Vincent Ambo
0e175cbe88 style(fun/logo): Use a much lighter colour for the logo quote
The dark one is quite visually aggressive. This colour is also taken
from Gruber Darker.
2019-12-20 21:34:18 +00:00
Vincent Ambo
004df296ed docs: Update review address to depot@tazj.in 2019-12-20 21:29:16 +00:00
Vincent Ambo
746666a694 style(cgit-taz): Embed repository logo 2019-12-20 21:18:53 +00:00
Vincent Ambo
cf044be96b fix(cgit): Configure mimetype-file correctly 2019-12-20 21:17:51 +00:00
Vincent Ambo
f2784e9346 feat(fun): Add a silly little logo for the depot 2019-12-20 21:14:55 +00:00
Vincent Ambo
495b6481c1 feat(overrides/kontemplate): Automatically use primary-cluster.yaml 2019-12-20 20:55:25 +00:00
Vincent Ambo
49fd50bc8a feat(cgit-taz): Enable some convenience features in cgit
Hopefully file following actually works for directories, too!
2019-12-20 20:47:35 +00:00
Vincent Ambo
a65cb50252 fix: Various minor fixes for new repository layout 2019-12-20 20:44:00 +00:00
Vincent Ambo
61c8ac4338 fix(infra/k8s): Fix Nixery image URLs for moved local projects 2019-12-20 20:39:27 +00:00
Vincent Ambo
8de5d093d8 refactor: Fix a variety of filepaths for repo relayouting
This fixes readTree and the various project builds, as well
as (hopefully) most documentation links inside of the projects.
2019-12-20 20:37:02 +00:00
Vincent Ambo
03bfe08e1d chore: Significantly restructure folder layout
This moves the various projects from "type-based" folders (such as
"services" or "tools") into more appropriate semantic folders (such as
"nix", "ops" or "web").

Deprecated projects (nixcon-demo & gotest) which only existed for
testing/demonstration purposes have been removed.

(Note: *all* builds are broken with this commit)
2019-12-20 20:18:41 +00:00
Vincent Ambo
e52eed3cd4 chore(gitignore): Ignore garbage/ folder
I use this folder locally to collect files that I am not committing to
the repository, but that might become relevant again at some point in
the future.
2019-12-20 20:05:40 +00:00
Vincent Ambo
e900c4279b feat(journaldriver): Add Naersk-based build configuration 2019-12-20 20:03:36 +00:00
Vincent Ambo
c9c27e833c docs: Update CONTRIBUTING file to match depot structure 2019-12-20 19:53:17 +00:00
Vincent Ambo
384ade5e39 merge(journaldriver): Merge journaldriver into tools/journaldriver 2019-12-20 19:44:19 +00:00
Vincent Ambo
5c0f874229 chore(tools/journaldriver): Prepare tree for depot merge 2019-12-20 19:43:50 +00:00
Vincent Ambo
38dc1704d8 chore(infra/k8s): Run 2 copies of the cgit server
It's stateless - yay! Redundancy makes it less likely that downtime
occurs during rollouts.
2019-12-20 19:03:25 +00:00
Vincent Ambo
f133234f78 chore(cgit-taz): Drop unused 'index' link from page top 2019-12-20 18:59:43 +00:00
Vincent Ambo
9675da8ce5 docs: Update README with more interesting information 2019-12-20 18:58:02 +00:00
Vincent Ambo
c3586aa8ba feat(infra/k8s): Rewrite cgit URLs by routing them through nginx
Configures nginx to rewrite all requests to cgit, except for those
retrieving static files, to `/depot/`.

In combination with the previous commits that apply patches to cgit
itself, this effectively means that the depot is rendered on the site
root.

This is pretty cool: It lets people do stuff like `git clone
https://git.tazj.in` and get the depot!
2019-12-20 18:42:56 +00:00
Vincent Ambo
0dee62cd7b feat(cgit-taz): Enable display of remote branches in listing 2019-12-20 18:39:58 +00:00
Vincent Ambo
26a4dbdbe9 feat(cgit-taz): Enable built-in README rendering & syntax highlights
This is currently using a bunch of Python - once I have time this will
be migrated to something saner.
2019-12-20 18:39:01 +00:00
Vincent Ambo
d5c5662c5a fix(cgit-taz): Display personal email on depot 2019-12-20 18:31:34 +00:00
Vincent Ambo
1c9e3c652d fix(cgit-taz): Patch other bits of cgit that handle URLs
Turns out there were a few more things. About page handling also did
something weird, which I've swiftly removed.
2019-12-20 18:30:50 +00:00
Vincent Ambo
de309848eb feat(cgit-taz): Patch cgit to construct monorepo URLs
Effectively dropping /depot/ from all URLs.
2019-12-20 17:28:35 +00:00
Vincent Ambo
b1be226626 fix(cgit-taz): Drop /cgit.cgi prefix from vhost 2019-12-20 16:24:15 +00:00
Vincent Ambo
fbae58987b feat(cgit-taz): Display README.md for repository 2019-12-20 16:11:53 +00:00
Vincent Ambo
2512ea4256 feat(infra/k8s): Add cgit to Ingress load balancer
Apart from the fact that TLS certificate provisioning is very wonky,
it seems to be working now.

AFAICT the L7 LBs still don't support path rewriting, which means that
this is likely not the final configuration and it will move behind
nginx instead.
2019-12-20 16:07:40 +00:00
Vincent Ambo
9653bdcf69 fix(infra/k8s): Workaround for nginx crash on pidfile write
Newer versions of nginx apparently hard-crash if they can't write a
PID file in the current directory.

To work around this, some writeable scratch space is created for the
nginx daemon to write its PID to.
2019-12-20 16:07:31 +00:00
Vincent Ambo
a349d5e914 chore(third_party): Expose nginx 2019-12-20 15:48:22 +00:00
Vincent Ambo
39a0bdf3c1 chore(infra/dns): Update state of root-tazj-in record sets 2019-12-20 14:52:18 +00:00
Vincent Ambo
b520a62e44 feat(infra/k8s): Deploy sync-gcsr container into cgit pod
This actually works - who would have thought!
2019-12-20 14:40:36 +00:00
Vincent Ambo
15076ed228 fix(sync-gcsr): Fix broken log statement 2019-12-20 14:40:21 +00:00
Vincent Ambo
30586a108d fix(buildGo): Use builder directory as fake $HOME
It turns out that the `go` tool writes a bunch of stuff into $HOME, or
rather, tries to - Nixery doesn't let it.
2019-12-20 14:30:36 +00:00
Vincent Ambo
2782a69a72 fix(cgit-taz): Depot checkout is no longer a bare repository
To be compatible with sync-gcsr, the `.git` folder must be referenced
directly as there is an actual worktree on the filesystem now.
2019-12-20 14:23:14 +00:00
Vincent Ambo
ba7a48af75 fix(sync-gcsr): Use local worktree & pull changes into it
Just fetching the remote of a bare repository does not update local
tracking branches, which means that changes do not become visible in
cgit.
2019-12-20 14:17:06 +00:00
Vincent Ambo
7ff4b59342 chore(cgit-taz): Remove git synchronisation from startup script
This will be moved into a sidecar container using sync-gcsr that
updates the repo periodically.
2019-12-20 14:09:34 +00:00
Vincent Ambo
7078bc7a4a feat(services/sync-gcsr): Add git synchronisation helper
Adds a tiny program that keeps a checkout of a remote git repository
in sync with a folder on the local filesystem.

This is going to be used to mirror the GCSR repository onto a local
disk for cgit serving.
2019-12-20 13:16:57 +00:00
Vincent Ambo
43ceaa17e3 feat(infra/k8s): Add git cookie secret for repository sync 2019-12-20 13:15:58 +00:00
Vincent Ambo
7158d56499 fix(tools): Correctly resolve kms_pass->pass
The binary name doesn't match the one inside of the derivation, but
this is intentional.
2019-12-20 13:13:06 +00:00