nur-packages

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

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

Add docker-mbtileserver

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/images/mbtileserver/default.nix | 19+++++++++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -222,6 +222,7 @@ lib.makeScope newScope ( ### IMAGES + docker-mbtileserver = callPackage ./images/mbtileserver { }; docker-quark = callPackage ./images/quark { }; ### MISC diff --git a/pkgs/images/mbtileserver/default.nix b/pkgs/images/mbtileserver/default.nix @@ -0,0 +1,19 @@ +{ dockerTools, mbtileserver }: + +dockerTools.buildImage { + name = "mbtileserver"; + tag = mbtileserver.version; + + contents = [ mbtileserver ]; + runAsRoot = "mkdir -p /tilesets"; + + config = { + Cmd = [ "${mbtileserver}/bin/mbtileserver" "--enable-reload" ]; + Volumes = { + "/tilesets" = { }; + }; + ExposedPorts = { + "8000/tcp" = { }; + }; + }; +}