No description
Find a file
William Carroll bacaa0ca8a Add docker/cloud_run.nix
I'm attempting to setup my blog using the following:
- Google Cloud Run: I whitelist a docker image that packages my application and
then Google runs it "statelessly" (i.e. without persistence). The stateless part
should be fine for the time being.
- Nix: Using `<nixpkgs>.dockerTools.buildLayeredImage` to output docker images
from Nix expressions.
- Docker: Upload the output image from the Nix expressions and upload it to
Google Container Registry from which it can be run from Google Cloud Run.

Some helpful commands:

```shell
> sudo gcloud auth login
> nix-build ./docker/cloud_run.nix
> sudo docker image import ./result
> sudo docker tag <name> gcr.io/<google-cloud-project-id>/<name>:<tag>
> sudo docker push gcr.io/<google-cloud-project-id>/<name>:<tag>
```

I'm unsure if Google Cloud Run is my desired end goal, but it may help me
publish a blog faster than setting up a Kubernetes cluster, which is what I'd
ultimately like to do. Cloud Run should be cheaper financially and time-wise.
2020-01-28 00:00:05 +00:00
advent-of-code Upload my 2019 Advent of Code attempts 2020-01-15 14:21:45 +00:00
blog Add index.html with AdSense script to blog 2020-01-26 00:29:34 +00:00
clojure Sketch idea of a buildClojure nix function 2020-01-25 19:41:19 +00:00
crack_the_coding_interview Add "Crack the Coding Interview" examples 2020-01-15 14:23:37 +00:00
data_structures_and_algorithms Add InterviewCake.com examples 2020-01-15 14:25:33 +00:00
deepmind Practice dijkstra's algorithm 2020-01-22 11:07:07 +00:00
docker Add docker/cloud_run.nix 2020-01-28 00:00:05 +00:00
haskell-file Begin tests for Haskell File module 2020-01-18 17:05:32 +00:00
java Support java directory 2020-01-25 19:39:49 +00:00
lisp Start working on f.lisp 2020-01-24 10:55:04 +00:00
third_party/lisp Partially packages package that I partially want to use 2020-01-27 16:52:16 +00:00
.envrc Rename mono -> universe 2020-01-27 16:04:20 +00:00
.gitignore Support java directory 2020-01-25 19:39:49 +00:00
default.nix Prefer home variable rather than hard coded path to readTree 2020-01-27 14:57:47 +00:00
README.md Rename mono -> universe 2020-01-27 16:04:20 +00:00

Universe

This is my mono-repo. Having a personal mono-repo is a new idea for me, so at the time of this writing, the state of this repository is fledgling.

I'm attempting to amass a collection of functions across a variety of languages while minimizing the costs of sharing the code across a projects. Stay tuned for more updates as my definition of the mono-repo becomes more clear, my opinions evolve, and my preferences change.