gitlab: work around docker host issue
This commit is contained in:
parent
17539728ce
commit
1c7eab46cc
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
services = {
|
services = {
|
||||||
nix = {
|
nix = {
|
||||||
registrationConfigFile = config.age.secrets."passwords/services/gitlab-runner/registration".path;
|
registrationConfigFile = config.age.secrets."passwords/services/gitlab-runner/registration".path;
|
||||||
|
registrationFlags = [ "--docker-host" "tcp://127.0.0.1:2375" ];
|
||||||
dockerImage = "alpine";
|
dockerImage = "alpine";
|
||||||
dockerVolumes = [
|
dockerVolumes = [
|
||||||
"/nix/store:/nix/store:ro"
|
"/nix/store:/nix/store:ro"
|
||||||
|
@ -47,6 +48,7 @@
|
||||||
};
|
};
|
||||||
docker-images = {
|
docker-images = {
|
||||||
registrationConfigFile = config.age.secrets."passwords/services/gitlab-runner/registration".path;
|
registrationConfigFile = config.age.secrets."passwords/services/gitlab-runner/registration".path;
|
||||||
|
registrationFlags = [ "--docker-host" "tcp://127.0.0.1:2375" ];
|
||||||
dockerImage = "docker:stable";
|
dockerImage = "docker:stable";
|
||||||
dockerVolumes = [
|
dockerVolumes = [
|
||||||
"/var/run/docker.sock:/var/run/docker.sock"
|
"/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
@ -56,6 +58,7 @@
|
||||||
};
|
};
|
||||||
default = {
|
default = {
|
||||||
registrationConfigFile = config.age.secrets."passwords/services/gitlab-runner/registration".path;
|
registrationConfigFile = config.age.secrets."passwords/services/gitlab-runner/registration".path;
|
||||||
|
registrationFlags = [ "--docker-host" "tcp://127.0.0.1:2375" ];
|
||||||
dockerImage = "debian:stable";
|
dockerImage = "debian:stable";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -63,6 +66,7 @@
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
storageDriver = "zfs";
|
storageDriver = "zfs";
|
||||||
|
listenOptions = [ "/run/docker.sock" "127.0.0.1:2375" ];
|
||||||
};
|
};
|
||||||
age.secrets."passwords/services/gitlab-runner/registration" = {
|
age.secrets."passwords/services/gitlab-runner/registration" = {
|
||||||
file = ../../../secrets/passwords/services/gitlab-runner/registration.age;
|
file = ../../../secrets/passwords/services/gitlab-runner/registration.age;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue