Add a nixos module for running the xanthous server in a docker container, and install it on mugwump including a prometheus scrape config. Change-Id: Ifeb315845b7eef2ee33af98fa3f71acdd3d9fe6b Reviewed-on: https://cl.tvl.fyi/c/depot/+/3812 Reviewed-by: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			430 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			430 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ depot ? import ../../../.. {}
 | 
						|
, pkgs ? depot.third_party.nixpkgs
 | 
						|
, ...
 | 
						|
}:
 | 
						|
 | 
						|
let
 | 
						|
  inherit (depot.users.grfn) xanthous;
 | 
						|
  xanthous-server = xanthous.server;
 | 
						|
in pkgs.dockerTools.buildLayeredImage {
 | 
						|
  name = "xanthous-server";
 | 
						|
  tag = "latest";
 | 
						|
  contents = [ xanthous xanthous-server ];
 | 
						|
  config = {
 | 
						|
    Cmd = [
 | 
						|
      "${xanthous-server}/bin/xanthous-server"
 | 
						|
      "--xanthous-binary-path" "${xanthous}/bin/xanthous"
 | 
						|
    ];
 | 
						|
  };
 | 
						|
}
 |