Nix Piston: dev and prod containers

- Change appEnv to isDev
- Determine the image name in api/default.nix
- Use production image in ./piston test
This commit is contained in:
Omar Brikaa 2022-02-19 20:22:13 +02:00
parent c2bc1ebf94
commit 4578a9d15b
3 changed files with 15 additions and 16 deletions

View file

@ -74,12 +74,12 @@
containers = {
dev = (import ./api {
inherit pkgs nosocket;
appEnv = "dev";
isDev = true;
}).container;
prod = (import ./api {
inherit pkgs nosocket;
appEnv = "prod";
isDev = false;
}).container;
};
};