38
packages/docker/sish/default.nix
Normal file
38
packages/docker/sish/default.nix
Normal 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" = { };
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user