forked from rarias/jungle
Make hydra shut up
This commit is contained in:
parent
ed6cb7e6ea
commit
d7f92a9126
@ -1,7 +1,34 @@
|
|||||||
{ config, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
services.hydra = {
|
services.hydra = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
# Wrap hydra so it puts quiet flag every time... This is dumb and annoying,
|
||||||
|
# but i can't override the systemd ExecStart without running into infinite
|
||||||
|
# recursion.
|
||||||
|
package = pkgs.symlinkJoin {
|
||||||
|
name = "hydra-quiet";
|
||||||
|
paths = [ pkgs.hydra ];
|
||||||
|
postBuild = ''
|
||||||
|
for prog in hydra-queue-runner hydra-evaluator ; do
|
||||||
|
prev=$(realpath $out/bin/$prog)
|
||||||
|
rm $out/bin/$prog
|
||||||
|
cat >$out/bin/$prog <<EOF
|
||||||
|
#!/bin/sh
|
||||||
|
args=()
|
||||||
|
for arg in "\$@"; do
|
||||||
|
if [ "\$arg" != "-v" ]; then
|
||||||
|
args+=("\$arg")
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
exec $prev --quiet "\''${args[@]}"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x $out/bin/$prog
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
hydraURL = "http://localhost:3001"; # externally visible URL
|
hydraURL = "http://localhost:3001"; # externally visible URL
|
||||||
notificationSender = "hydra@jungle.bsc.es"; # e-mail of Hydra service
|
notificationSender = "hydra@jungle.bsc.es"; # e-mail of Hydra service
|
||||||
port = 3001;
|
port = 3001;
|
||||||
@ -12,6 +39,8 @@
|
|||||||
listenHost = "0.0.0.0"; # Force IPv4
|
listenHost = "0.0.0.0"; # Force IPv4
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.hydra-send-stats.enable = lib.mkForce false;
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ config.services.hydra.port ];
|
networking.firewall.allowedTCPPorts = [ config.services.hydra.port ];
|
||||||
|
|
||||||
nix.settings.extra-allowed-uris = [
|
nix.settings.extra-allowed-uris = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user