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

fgerlits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git

commit 30780fb1bf40e2553ab06732e36091ebd5dfca97
Author: Martin Zink <[email protected]>
AuthorDate: Tue Aug 29 13:36:42 2023 +0200

    MINIFICPP-2197 speed up yum installs inside centos7
    
    Signed-off-by: Ferenc Gerlits <[email protected]>
    This closes #1641
---
 centos.sh                | 2 +-
 docker/centos/Dockerfile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/centos.sh b/centos.sh
index 6d13ad798..63fa62809 100644
--- a/centos.sh
+++ b/centos.sh
@@ -28,7 +28,7 @@ install_pkgs() {
     if [ "$OS_MAJOR" -gt 7 ]; then
         sudo dnf -y install "$@"
     else
-        sudo yum -y install "$@"
+        ulimit -n 1024000 && sudo yum -y install "$@"
     fi
 }
 
diff --git a/docker/centos/Dockerfile b/docker/centos/Dockerfile
index cbea8a309..d76be55b1 100644
--- a/docker/centos/Dockerfile
+++ b/docker/centos/Dockerfile
@@ -43,7 +43,7 @@ RUN mkdir -p $MINIFI_BASE_DIR
 COPY . ${MINIFI_BASE_DIR}
 
 # gpsd-devel and ccache are in EPEL
-RUN yum -y install epel-release && yum -y install sudo git which make 
libarchive ccache ca-certificates perl-IPC-Cmd && \
+RUN ulimit -n 1024000 && yum -y install epel-release && yum -y install sudo 
git which make libarchive ccache ca-certificates perl-IPC-Cmd && \
     if echo "$MINIFI_OPTIONS" | grep -q "ENABLE_GPS=ON"; then yum -y install 
gpsd-devel; fi && \
     if echo "$MINIFI_OPTIONS" | grep -q "ENABLE_JNI=ON"; then yum -y install 
java-1.8.0-openjdk maven; fi && \
     if echo "$MINIFI_OPTIONS" | grep -q "ENABLE_PCAP=ON"; then yum -y install 
libpcap-devel; fi && \

Reply via email to