Add radarr, sonarr

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-07-09 21:36:43 +01:00
parent cb187f3518
commit 384f1b222f
22 changed files with 750 additions and 298 deletions

View File

@@ -0,0 +1,43 @@
{ pkgs, ... }:
let
entrypoint = pkgs.writeTextFile {
name = "entrypoint";
executable = true;
destination = "/bin/entrypoint";
text = builtins.readFile ./entrypoint.sh;
};
in
pkgs.dockerTools.buildImage {
name = "sonarr";
fromImage = import ../base { inherit pkgs; };
copyToRoot = pkgs.buildEnv {
name = "root";
paths = with pkgs; [
entrypoint
sonarr
xmlstarlet
curl
jq
];
pathsToLink = [
"/bin"
"/lib"
];
};
runAsRoot = ''
${pkgs.dockerTools.shadowSetup}
'';
config = {
Entrypoint = [ "entrypoint" ];
ExposedPorts = {
"8989/tcp" = { };
};
WorkingDir = "/var/lib/sonarr";
Volumes = {
"/var/lib/sonarr" = { };
};
};
}