mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
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 <leon.anavi@konsulko.com>
This commit is contained in:
parent
dcf586cb7b
commit
48c571a537
|
@ -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 \
|
RUN echo "dash dash/sh boolean false" | debconf-set-selections \
|
||||||
&& dpkg-reconfigure dash
|
&& 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 under normal user called 'ci'
|
||||||
RUN useradd --create-home --uid 1000 --shell /usr/bin/bash ci
|
RUN useradd --create-home --uid 1000 --shell /usr/bin/bash ci
|
||||||
USER ci
|
USER ci
|
||||||
|
|
Loading…
Reference in New Issue
Block a user