Improve performance for gitlab-runner

This commit is contained in:
Greg Hellings
2024-04-03 15:31:02 -05:00
parent b16dcc88a3
commit 55408c55ee
2 changed files with 18 additions and 16 deletions
+18 -16
View File
@@ -56,7 +56,7 @@ in
};
gitlab-runner = {
enable = true;
settings.concurrent = 2;
settings.concurrent = 1;
services = {
shell = {
executor = "shell";
@@ -64,6 +64,8 @@ in
registrationConfigFile = config.age.secrets.runner-reg.path;
environmentVariables = {
EFI_DIR = "${pkgs.OVMF.fd}/FV/";
#HTTP_PROXY = "http://10.42.1.4:3128/";
#HTTPS_PROXY = "http://10.42.1.4:3128/";
};
};
};
@@ -95,21 +97,6 @@ in
"network-online.target"
"systemd-resolved.service"
];
path = with pkgs; [
curl
gawk
git
p7zip
packer
pup
gregpy
shellcheck
unzip
xonsh
xorriso
vagrant
wget
];
preStart = builtins.concatStringsSep "\n" [
"${pkgs.kmod}/bin/modprobe vboxdrv"
"${pkgs.kmod}/bin/modprobe vboxnetadp"
@@ -122,6 +109,21 @@ in
DynamicUser = lib.mkForce false;
};
};
environment.systemPackages = with pkgs; [
curl
gawk
git
p7zip
packer
pup
gregpy
shellcheck
unzip
xonsh
xorriso
vagrant
wget
];
networking.firewall.allowedTCPPorts = [ 18083 ]; # Should be interface for vboxweb
}
Binary file not shown.