From c3991c37987e606212cdfe5e6aaef14f378a2703 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 16 May 2019 20:51:21 -0400 Subject: [PATCH] Add conditional install of psutil for ARM CPUs Signed-off-by: Roberto Rosario --- docker/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 584a445b46..14ae97ed69 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -110,6 +110,11 @@ RUN python -m virtualenv "${PROJECT_INSTALL_DIR}" \ mysql-python==1.2.5 \ psycopg2==2.7.3.2 \ redis==2.10.6 \ +# psutil is needed by ARM builds otherwise gevent and gunicorn fail to start +&& UNAME=`uname -m` && if [ "${UNAME#*arm}" != $UNAME ]; then \ + pip install --no-cache-dir --no-use-pep517 \ + psutil==5.6.2 \ +; fi \ # Install the Python packages needed to build Mayan EDMS && pip install --no-cache-dir --no-use-pep517 -r /src/requirements/build.txt \ # Build Mayan EDMS