From a20cc6fecf66905015a460c1b3a872316dff3603 Mon Sep 17 00:00:00 2001 From: Alex Masi Date: Wed, 12 Oct 2022 13:33:26 -0700 Subject: [PATCH] configure inotify (#239) --- cloudbuild/external.pkr.hcl | 2 ++ cloudbuild/internal.pkr.hcl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cloudbuild/external.pkr.hcl b/cloudbuild/external.pkr.hcl index 23d7fa82..6cfeb3d6 100644 --- a/cloudbuild/external.pkr.hcl +++ b/cloudbuild/external.pkr.hcl @@ -68,6 +68,8 @@ build { "sudo apt-get -o DPkg::Lock::Timeout=60 install docker-ce docker-ce-cli containerd.io build-essential -y", "sudo usermod -aG docker $USER", "sudo docker version", + "sudo sysctl fs.inotify.max_user_instances=64000", # configure inotify for cisco containers + "sudo sysctl -p", ] } diff --git a/cloudbuild/internal.pkr.hcl b/cloudbuild/internal.pkr.hcl index ba2c5de5..5ce502aa 100644 --- a/cloudbuild/internal.pkr.hcl +++ b/cloudbuild/internal.pkr.hcl @@ -68,6 +68,8 @@ build { "sudo apt-get -o DPkg::Lock::Timeout=60 install docker-ce docker-ce-cli containerd.io build-essential -y", "sudo usermod -aG docker $USER", "sudo docker version", + "sudo sysctl fs.inotify.max_user_instances=64000", # configure inotify for cisco containers + "sudo sysctl -p", "echo Pulling containers...", "gcloud auth configure-docker us-west1-docker.pkg.dev -q", # configure sudoless docker "sudo gcloud auth configure-docker us-west1-docker.pkg.dev -q", # configure docker with sudo