Vincent Ambo
640b497950
feat(tools): Add stern, a k8s log watcher
2019-09-02 18:18:28 +01:00
Vincent Ambo
4881a84eaa
chore(infra): Remove NixOS configuration for servers
...
This configuration is no longer in use. The Gemma configuration file
has been moved over to the k8s folder from where it will be templated
into the actual configuration.
2019-09-02 17:19:07 +01:00
Vincent Ambo
4bd6d52800
Merge pull request #1 from tazjin/feat/travis-ci
...
Add Travis CI configuration
2019-09-02 17:17:22 +01:00
Vincent Ambo
86d8c748a7
chore: Catch all Nix results in gitignore
2019-09-02 17:12:06 +01:00
Vincent Ambo
4d94254642
docs: Add crude top-level README
2019-09-02 17:12:06 +01:00
Vincent Ambo
99ee84b477
refactor(blog): Use callPackage to import derivation
2019-09-02 16:53:54 +01:00
Vincent Ambo
6472b2645c
feat: Add Travis CI configuration
...
Adds a configuration that builds all of my own services and pushes the
resulting closures to Cachix.
2019-09-02 16:38:59 +01:00
Vincent Ambo
5e9b91a6d2
chore: Remove leftover Bazel files
2019-09-02 16:24:21 +01:00
Vincent Ambo
4411eea11f
fix(gemma): Fix build process in Nix
2019-09-02 02:14:39 +01:00
Vincent Ambo
b43e5529f7
feat(third_party): Add missing Quicklisp packages for Gemma
...
Gemma depends on cl-prevalence, which isn't in the nixpkgs Quicklisp
snapshot.
This adds the package and its dependencies to the overlay.
2019-09-02 01:24:41 +01:00
Vincent Ambo
a635beabfa
fix: Correct naming of variables in overlay function
2019-09-02 01:24:23 +01:00
Vincent Ambo
a58af3e371
feat(k8s): Configure HTTPS ingress for the blog
...
Uses Google-managed certificates and an Ingress resource to set up an
HTTPS load-balancer.
This probably won't be the final version as the GKE Ingress is very
limited and can not do things like redirect URLs, which I need to
decommission the old setup.
2019-08-27 12:44:37 +01:00
Vincent Ambo
cae99692de
feat(k8s): Add Google managed TLS certificates
...
Introduces certificates for tazj.in & www.tazj.in.
2019-08-27 12:43:55 +01:00
Vincent Ambo
593e96da60
chore(tazblog): Clean up unused dependencies
2019-08-25 23:21:26 +01:00
Vincent Ambo
1247848d76
refactor(tazblog): Implement HLint lints in all files
2019-08-25 23:07:43 +01:00
Vincent Ambo
561ed1fbbb
chore(tazblog): Remove i18n features
...
The blog has been English only for a few years. Old entries that
survived the migration to DNS will still be accessible.
2019-08-25 22:53:38 +01:00
Vincent Ambo
094aafecdd
chore(tazblog): Remove 'read more' feature
2019-08-25 20:22:57 +01:00
Vincent Ambo
6450347bf1
chore(tools): Remove ormolu from tools
...
The Ormolu derivation is too large to be instantiated on-demand. I've
resorted to installing this tool into my profile instead.
2019-08-25 20:17:03 +01:00
Vincent Ambo
1747df418e
chore(tazblog): Format source files with ormolu
...
Ormolu's formatting is quite annoying (it uses a lot of unnecessary
vertical space and doesn't align elements), but I can't be bothered to
do manual formatting - especially because whatever formatting
haskell-mode in Emacs produces seems to depend on an opaque state
machine or something.
2019-08-25 20:15:53 +01:00
Vincent Ambo
2fdc872228
feat(build): Add Terraform from unstable channel
2019-08-25 17:55:08 +01:00
Vincent Ambo
155f17173b
chore(gcp): Enable Cloud DNS service
2019-08-25 17:47:34 +01:00
Vincent Ambo
d3f8dd15f3
fix(gemma): Almost fix Gemma build by porting an old Elm
...
This pulls in an old version of Elm from NixOS 17.09 which can still
build the Elm code in Gemma.
However, the Common Lisp build is now broken in some other way.
2019-08-23 15:28:23 +01:00
Vincent Ambo
31e83b33cc
chore(k8s): More tazblog replicas
2019-08-23 14:13:13 +01:00
Vincent Ambo
be074c6085
refactor(tazblog): Move blog configuration to envvars
...
The port and resource directory are now specified via environment
variables and a wrapper script is created by Nix that sets the
resource path and so on correctly.
2019-08-23 12:03:17 +01:00
Vincent Ambo
fb930e4db7
fix(tazblog): Remove debug trace
2019-08-23 11:42:23 +01:00
Vincent Ambo
4f88851971
fix(blog_cli): Quote JSON output for post dates
2019-08-23 11:24:03 +01:00
Vincent Ambo
57059fec2b
feat(blog_cli): Add flag to set post date and serialise as date only
2019-08-23 10:57:15 +01:00
Vincent Ambo
bd47122afb
chore(blog): Minor changes to integrate DNS based backend
2019-08-22 18:58:11 +01:00
Vincent Ambo
c5ef3e01b2
feat(tazblog): Implement entry fetching from DNS
...
Not all error cases are properly handled yet, stay tuned.
2019-08-22 18:57:49 +01:00
Vincent Ambo
f298bdd183
feat(tazblog): Add a Nix shell expression that includes GHC with deps
2019-08-21 12:17:03 +01:00
Vincent Ambo
008be5c2e1
refactor(tazblog): Directly instantiate Resolver when launching
...
Caching behaviour is tied to the resolver.
2019-08-21 11:07:25 +01:00
Vincent Ambo
bf2efeba2d
chore(tazblog): Introduce dependency on 'dns'
2019-08-21 11:07:09 +01:00
Vincent Ambo
13b0204c03
chore(tazblog): Introduce dependency on 'cache'
2019-08-20 07:09:16 +01:00
Vincent Ambo
b856648127
feat(tools): Introduce ormolu for formatting Haskell code
2019-08-20 00:26:54 +01:00
Vincent Ambo
11fcf62297
chore(tazblog): Replace BlogDB with stubs for DNS-based storage
...
Removes acid-state specific code and the former BlogDB module, in its
stead the new BlogStorage module contains stubs for the functions that
will be filled in with DNS-based storage.
This code is unformatted and will not currently serve a working blog.
2019-08-20 00:17:23 +01:00
Vincent Ambo
1d5b53abf8
chore(tools/blog_cli): Shorten metadata key names
...
Every character counts because I want to keep metadata below 255
bytes.
2019-08-19 19:11:32 +01:00
Vincent Ambo
d5710db900
refactor(tools/blog_cli): More sensible chunk encoding as records
...
Instead of many rrdatas in one record, make many records!
2019-08-19 17:51:29 +01:00
Vincent Ambo
2a16740445
feat(tools): Add a horrifying tool to write blog posts into DNS
2019-08-19 16:59:55 +01:00
Vincent Ambo
28a9c01d36
feat(infra/k8s): Add in-cluster tazblog deployment via Nixery
...
First deployment actually using a Nixery image and `gitHEAD`.
This does not actually serve a working blog for various reasons. The
current storage mechanism (acid-state) isn't really appropriate
anymore and I'll need to change that soon.
2019-08-19 03:10:53 +01:00
Vincent Ambo
a4ef595fef
chore(infra/k8s): Bump Nixery image to Cachix-enabled one
2019-08-19 02:43:42 +01:00
Vincent Ambo
2e688c18a5
feat(third_party): Add nixery with Cachix configuration
2019-08-19 02:40:14 +01:00
Vincent Ambo
cb810687d5
fix(infra/k8s): Always pull a Nixery image
2019-08-16 19:57:10 +01:00
Vincent Ambo
dd35be7add
feat(infra/k8s): Deploy Nixery instance to cluster
2019-08-16 18:20:20 +01:00
Vincent Ambo
ba06317836
feat(infra/gcp): Add Terraform configuration for GKE & friends
...
Sets up Terraform itself, a GKE cluster, a storage bucket and all the
other little things required to get the basics running.
2019-08-16 16:52:06 +01:00
Vincent Ambo
27036e18f5
feat(tools): Add kontemplate
2019-08-16 16:50:50 +01:00
Vincent Ambo
b652ea2f03
feat(tools): Add Terraform 0.12 to local tools
...
This is pre-configured with the GCP provider.
2019-08-15 16:28:42 +01:00
Vincent Ambo
38493b83ea
chore(tools): Remove bazel & ghc
2019-08-15 16:15:59 +01:00
Vincent Ambo
128875b501
chore: Remove remaining Bazel-related files
2019-08-15 16:11:30 +01:00
Vincent Ambo
a20daf8726
chore(nix): Remove overridden GHC
...
We're not going down the Bazel route here, so this is not going to be
necessary.
2019-08-15 16:07:28 +01:00
Vincent Ambo
77f0b5021d
chore(services/gemma): Mark package as broken
2019-08-15 16:07:11 +01:00