diff options
author | William Carroll <wpcarro@gmail.com> | 2020-01-31T16·29+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-01-31T16·29+0000 |
commit | 4e0b18506fd2d30af0006d2f3525a9d6d7b45424 (patch) | |
tree | f2a99cdb17a61890920b414f7d91065d6b6ebe7e /deploy/cloud_run.nix | |
parent | 265d2029088a1f49c5716bcb3d96f71dd0845d7e (diff) |
Rename docker -> deploy
I think the name deploy is more representative of the purpose of this directory since docker is just one of a few tools that I'm using to deploy software.
Diffstat (limited to 'deploy/cloud_run.nix')
-rw-r--r-- | deploy/cloud_run.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/deploy/cloud_run.nix b/deploy/cloud_run.nix new file mode 100644 index 000000000000..70be4040c36b --- /dev/null +++ b/deploy/cloud_run.nix @@ -0,0 +1,18 @@ +{ + pkgs ? import <nixpkgs> {}, + depot ? import <depot> {}, + ... +}: + +pkgs.dockerTools.buildLayeredImage { + name = "gemma"; + tag = "latest"; + config.ExposedPorts = { + "4242" = {}; + }; + config.Env = [ + "GEMMA_CONFIG=${./config.lisp}" + ]; + config.Cmd = [ "${depot.fun.gemma}/bin/gemma" ]; + maxLayers = 120; +} |