From 542eee6ca745f6535a613c6ef18c2ce5127bca04 Mon Sep 17 00:00:00 2001 From: David Corvoysier Date: Mon, 17 Feb 2025 15:22:36 +0000 Subject: [PATCH] fix(neuron): increase ulimit when building image The base image used to compile the rust components seems to have a low ulimit for opened files, which leads to errors during compilation. --- backends/neuron/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backends/neuron/Makefile b/backends/neuron/Makefile index 4806ac7d..ec65ff40 100644 --- a/backends/neuron/Makefile +++ b/backends/neuron/Makefile @@ -22,7 +22,8 @@ VERSION := $(shell gawk 'match($$0, /^version = "(.*)"/, a) {print a[1]}' ${root image: docker build --rm -f ${root_dir}/Dockerfile.neuron \ - --build-arg VERSION=$(VERSION) \ + --ulimit nofile=100000:100000 \ + --build-arg VERSION=$(VERSION) \ -t text-generation-inference:$(VERSION)-neuron ${root_dir} docker tag text-generation-inference:$(VERSION)-neuron text-generation-inference:latest-neuron