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:15 UTC
[airflow-ci-infra] branch main updated (d6efe63 -> b306100)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-ci-infra.git
from d6efe63 Increase memory needed for source code
new 2533732 Add inotify_resources
new b306100 Increase default root partition size to 16GB
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../packer/files/increase_inotify_resources.sh | 9 +++++----
github-runner-ami/packer/ubuntu2004.pkr.hcl | 9 ++++++++-
2 files changed, 13 insertions(+), 5 deletions(-)
copy .flake8 => github-runner-ami/packer/files/increase_inotify_resources.sh (84%)
[airflow-ci-infra] 01/02: Add inotify_resources
Posted by po...@apache.org.
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",
[airflow-ci-infra] 02/02: Increase default root partition size to 16GB
Posted by po...@apache.org.
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 b3061001df8481a5da13f47d0d41a9d3c2d688cd
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Wed Aug 31 13:38:03 2022 +0200
Increase default root partition size to 16GB
---
github-runner-ami/packer/ubuntu2004.pkr.hcl | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/github-runner-ami/packer/ubuntu2004.pkr.hcl b/github-runner-ami/packer/ubuntu2004.pkr.hcl
index 0c54f88..7dabf8a 100644
--- a/github-runner-ami/packer/ubuntu2004.pkr.hcl
+++ b/github-runner-ami/packer/ubuntu2004.pkr.hcl
@@ -38,7 +38,7 @@ source "amazon-ebs" "runner_builder" {
#access_key = ""
#secret_key = ""
region = var.aws_regions[0]
- ami_name = "${var.ami_name}-${var.runner_version}-v8"
+ ami_name = "${var.ami_name}-${var.runner_version}-v10"
ami_regions = var.aws_regions
tag {
key = "Name"
@@ -68,6 +68,12 @@ source "amazon-ebs" "runner_builder" {
owners = ["099720109477"]
most_recent = true
}
+ launch_block_device_mappings {
+ device_name = "/dev/sda1"
+ volume_size = 16
+ volume_type = "gp3"
+ delete_on_termination = true
+ }
}
build {