Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-05-17 18:06:32 +01:00
parent 3c09cf9f69
commit bf82f4b52e
10 changed files with 204 additions and 2 deletions

View File

@@ -0,0 +1,38 @@
{ pkgs, ... }:
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 ];
}))
];
pathsToLink = [ "/bin" ];
};
runAsRoot = ''
mkdir -p /tmp
'';
config = {
Entrypoint = [ "/bin/sish" ];
Cmd = [
"--ssh-address=0.0.0.0:2222"
"--http-address=0.0.0.0:80"
"--load-templates=false"
"--private-keys-directory=/etc/sish/keys"
"--authentication-password=\"\""
"--authentication-keys-directory=/etc/sish/pubkeys"
];
ExposedPorts = {
"2222/tcp" = { };
};
Volumes = {
"/etc/sish/keys" = { };
"/etc/sish/pubkeys" = { };
};
};
}