aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-07-19 16:00:22 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-07-19 16:00:22 +0200
commitba8042a21a8552f132cac6d0a45cf8e08d885f08 (patch)
treea248f18f48b5d540790cdb67f01af92dba41d1fe
parent158eda06de31a52f15712fa0e5695054d15dfe3a (diff)
downloadguichet-ba8042a21a8552f132cac6d0a45cf8e08d885f08.tar.gz
guichet-ba8042a21a8552f132cac6d0a45cf8e08d885f08.zip
Add docker entry
-rw-r--r--README.md7
-rw-r--r--default.nix9
2 files changed, 13 insertions, 3 deletions
diff --git a/README.md b/README.md
index 9751fab..449017f 100644
--- a/README.md
+++ b/README.md
@@ -40,6 +40,13 @@ nix-build -A pkg # build the binary and add the ressources
nix-build -A docker # build a docker container
```
+Publishing the container:
+
+```bash
+docker load < $(nix-build -A docker)
+docker push ???
+```
+
## Configuration of Guichet
Guichet is configured using a simple JSON config file which is a dictionnary whose keys
diff --git a/default.nix b/default.nix
index cd17475..3cafd8c 100644
--- a/default.nix
+++ b/default.nix
@@ -38,7 +38,10 @@ in rec {
cp -r templates static $out/
'';
};
- /*docker = pkgs.xxx {
-
- };*/
+ docker = pkgs.dockerTools.buildImage {
+ name = "dxflrs/guichet";
+ config = {
+ Cmd = [ "${pkg}/guichet" ];
+ };
+ };
}