Skip to content

Commit

Permalink
Use dumb-init in gitlab runner
Browse files Browse the repository at this point in the history
Should hopefully stop the zombie processes from appearing
  • Loading branch information
simonswine committed Dec 23, 2024
1 parent 506de31 commit f15c9e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/gitlab-runner/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ let
in
dockerTools.buildImage {
name = "simonswine/gitlab-ci-runner";
tag = "0.4.0";
tag = "0.5.0";

copyToRoot = buildEnv {
name = "image-root";
paths = [
pkgsStatic.busybox
pkgsStatic.dumb-init
cacert
gitlab-runner
docker-machine
Expand All @@ -64,7 +65,7 @@ dockerTools.buildImage {

config = {
User = "nobody";
Entrypoint = [ "gitlab-runner" ];
Entrypoint = [ "dumb-init" "gitlab-runner" ];
WorkingDir = "/data";
Volumes = {
"/data" = { };
Expand Down

0 comments on commit f15c9e0

Please sign in to comment.