From 48c571a537b4dd85fe3e1961541be39aaa6deca5 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Sun, 20 Apr 2025 15:06:56 +0300 Subject: [PATCH] Dockerfile: Increase vm.max_map_count Fix the resource exhaustion problem on the build infrastructure. Suggested-by: Stu Westerman @stu-spp Signed-off-by: Leon Anavi --- .github/workflows/docker-images/yocto-builder/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docker-images/yocto-builder/Dockerfile b/.github/workflows/docker-images/yocto-builder/Dockerfile index 4035608..e06e02a 100644 --- a/.github/workflows/docker-images/yocto-builder/Dockerfile +++ b/.github/workflows/docker-images/yocto-builder/Dockerfile @@ -30,6 +30,9 @@ RUN eatmydata apt-get clean && rm -rf /var/lib/apt/lists/* RUN echo "dash dash/sh boolean false" | debconf-set-selections \ && dpkg-reconfigure dash +# Fix the resource exhaustion problem on the build infrastructure +RUN echo 'vm.max_map_count = 4048576' >> /etc/sysctl.conf + # Run under normal user called 'ci' RUN useradd --create-home --uid 1000 --shell /usr/bin/bash ci USER ci