docs(13): lessons learned fragments in thymeleaf

This commit is contained in:
efim
2023-07-06 06:16:55 +00:00
parent d73c39500b
commit e4a18da5c2
7 changed files with 121 additions and 208 deletions

View File

@@ -26,6 +26,8 @@ let
depsSha256 = "sha256-Y5RktcE3fxUJci4o7LTuNlBEybTdVRqsG551AkVeRPw=";
};
in {
inherit package;
module = { config, pkgs, ... }:
let cfg = config.services.${pname};
in {
@@ -84,7 +86,20 @@ let
};
};
};
in {
package = package;
module = module;
image = pkgs.dockerTools.buildLayeredImage {
name = pname;
tag = "latest";
created = "now";
config = {
Cmd = [
"${pkgs.jdk}/bin/java"
"-jar"
"${package}/bin/${pname}.jar"
"--host"
"0.0.0.0"
];
ExposedPorts = { "8080/tcp" = { }; };
WorkingDir = "${package}/bin";
};
};
}