You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/08/31 11:39:16 UTC

[airflow-ci-infra] 01/02: Add inotify_resources

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-ci-infra.git

commit 2533732fb2b83dcca3bf79664b92a8cd065cc83b
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Wed Aug 31 11:13:32 2022 +0200

    Add inotify_resources
---
 .../packer/files/increase_inotify_resources.sh      | 21 +++++++++++++++++++++
 github-runner-ami/packer/ubuntu2004.pkr.hcl         |  1 +
 2 files changed, 22 insertions(+)

diff --git a/github-runner-ami/packer/files/increase_inotify_resources.sh b/github-runner-ami/packer/files/increase_inotify_resources.sh
new file mode 100644
index 0000000..ae97a8b
--- /dev/null
+++ b/github-runner-ami/packer/files/increase_inotify_resources.sh
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# Needed to run multiple kind instances
+cat >>/etc/sysctl.conf <<EOF
+fs.inotify.max_user_watches = 524288
+fs.inotify.max_user_instances = 512
+EOF
diff --git a/github-runner-ami/packer/ubuntu2004.pkr.hcl b/github-runner-ami/packer/ubuntu2004.pkr.hcl
index 9d643d0..0c54f88 100644
--- a/github-runner-ami/packer/ubuntu2004.pkr.hcl
+++ b/github-runner-ami/packer/ubuntu2004.pkr.hcl
@@ -140,6 +140,7 @@ build {
       "./files/install-nodejs.sh",
       "./files/install-github-cli.sh",
       "./files/docker-compose.sh",
+      "./files/increase_inotify_resources.sh",
       "./files/git.sh",
       "./files/runner_bootstrap.sh",
       "./files/create-hostedtools-cache.sh",