Add outline

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-05-18 19:45:21 +01:00
parent bf82f4b52e
commit 52e3183244
8 changed files with 204 additions and 10 deletions

View File

@@ -22,4 +22,8 @@ pkgs.dockerTools.buildImage {
"/usr"
];
};
runAsRoot = ''
mkdir -p /tmp
'';
}

View File

@@ -0,0 +1,25 @@
{ pkgs, ... }:
pkgs.dockerTools.buildImage {
name = "outline";
fromImage = import ../base { inherit pkgs; };
copyToRoot = pkgs.buildEnv {
name = "root";
paths = with pkgs; [ outline ];
pathsToLink = [
"/bin"
"/share"
];
};
config = {
Entrypoint = [ "/bin/outline-server" ];
ExposedPorts = {
"3000/tcp" = { };
};
Volumes = {
"/var/lib/outline/data" = { };
};
WorkingDir = "${pkgs.outline}/share/outline";
};
}

View File

@@ -1,22 +1,19 @@
{ pkgs, ... }:
let
sish = pkgs.sish.overrideAttrs (oldAttrs: {
patches = oldAttrs.patches or [ ] ++ [ ./proxy-ssl-termination.patch ];
});
in
pkgs.dockerTools.buildImage {
name = "sish";
fromImage = import ../base { inherit pkgs; };
copyToRoot = pkgs.buildEnv {
name = "root";
paths = with pkgs; [
(sish.overrideAttrs (oldAttrs: {
patches = oldAttrs.patches or [ ] ++ [ ./proxy-ssl-termination.patch ];
}))
];
paths = [ sish ];
pathsToLink = [ "/bin" ];
};
runAsRoot = ''
mkdir -p /tmp
'';
config = {
Entrypoint = [ "/bin/sish" ];
Cmd = [