nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit d24bb4e7464c614b8a11032c7ccf7834bde34702
parent 88c6b8d9e99a5194cb72c7d1e4645b24686f6120
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Mon, 25 Jan 2021 02:38:39 +0300

Add docker-quark

Diffstat:
Mpkgs/default.nix | 4++++
Apkgs/images/quark/default.nix | 20++++++++++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -220,6 +220,10 @@ lib.makeScope newScope ( md2gemini = callPackage ./gemini/md2gemini { }; shavit = callPackage ./gemini/shavit { }; + ### IMAGES + + docker-quark = callPackage ./images/quark { }; + ### MISC ascii-dash = callPackage ./misc/ascii-dash { }; diff --git a/pkgs/images/quark/default.nix b/pkgs/images/quark/default.nix @@ -0,0 +1,20 @@ +{ dockerTools, quark }: + +dockerTools.buildImage { + name = "quark"; + tag = quark.version; + + contents = [ dockerTools.fakeNss quark ]; + runAsRoot = "mkdir -p /htdocs"; + + config = { + Cmd = [ "${quark}/bin/quark" "-h" "0.0.0.0" "-p" "8080" "-g" "nobody" "-l" ]; + WorkingDir = "/htdocs"; + Volumes = { + "/htdocs" = { }; + }; + ExposedPorts = { + "8080/tcp" = { }; + }; + }; +}