mirror of
https://code.tvl.fyi/depot.git:/tools/nixery.git
synced 2025-03-14 21:51:52 +00:00
refactor(nixery): expose launch script derivation
Simplifies reusing the launch script in other use-cases than the "official" Nixery image. Relates to nixery#166 Change-Id: Iaf1dff385ce270792253551081c1b2fca6400037 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11046 Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: flokli <flokli@flokli.de> Tested-by: BuildkiteCI
This commit is contained in:
parent
65b4513142
commit
e9f7c1fcc8
12
default.nix
12
default.nix
|
@ -72,11 +72,6 @@ depot.nix.readTree.drvTargets rec {
|
|||
};
|
||||
};
|
||||
|
||||
# Container image containing Nixery and Nix itself. This image can
|
||||
# be run on Kubernetes, published on AppEngine or whatever else is
|
||||
# desired.
|
||||
nixery-image =
|
||||
let
|
||||
# Wrapper script for the wrapper script (meta!) which configures
|
||||
# the container environment appropriately.
|
||||
#
|
||||
|
@ -107,8 +102,11 @@ depot.nix.readTree.drvTargets rec {
|
|||
|
||||
exec ${nixery}/bin/server
|
||||
'';
|
||||
in
|
||||
dockerTools.buildLayeredImage {
|
||||
|
||||
# Container image containing Nixery and Nix itself. This image can
|
||||
# be run on Kubernetes, published on AppEngine or whatever else is
|
||||
# desired.
|
||||
nixery-image = dockerTools.buildLayeredImage {
|
||||
name = "nixery";
|
||||
config.Cmd = [ "${nixery-launch-script}/bin/nixery" ];
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user