gitlab: work around docker host issue

This commit is contained in:
Charlotte Van Petegem 2023-07-27 13:12:32 +02:00
parent 17539728ce
commit 1c7eab46cc
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -13,6 +13,7 @@
services = {
nix = {
registrationConfigFile = config.age.secrets."passwords/services/gitlab-runner/registration".path;
registrationFlags = [ "--docker-host" "tcp://127.0.0.1:2375" ];
dockerImage = "alpine";
dockerVolumes = [
"/nix/store:/nix/store:ro"
@ -47,6 +48,7 @@
};
docker-images = {
registrationConfigFile = config.age.secrets."passwords/services/gitlab-runner/registration".path;
registrationFlags = [ "--docker-host" "tcp://127.0.0.1:2375" ];
dockerImage = "docker:stable";
dockerVolumes = [
"/var/run/docker.sock:/var/run/docker.sock"
@ -56,6 +58,7 @@
};
default = {
registrationConfigFile = config.age.secrets."passwords/services/gitlab-runner/registration".path;
registrationFlags = [ "--docker-host" "tcp://127.0.0.1:2375" ];
dockerImage = "debian:stable";
};
};
@ -63,6 +66,7 @@
virtualisation.docker = {
enable = true;
storageDriver = "zfs";
listenOptions = [ "/run/docker.sock" "127.0.0.1:2375" ];
};
age.secrets."passwords/services/gitlab-runner/registration" = {
file = ../../../secrets/passwords/services/gitlab-runner/registration.age;