[odrs-web] Install more deps from pip for RHEL 7



commit 908b4299b8c0ddd3a70f33371a61f835ff6b3270
Author: Richard Hughes <richard hughsie com>
Date:   Wed Mar 16 14:38:59 2022 +0000

    Install more deps from pip for RHEL 7

 Dockerfile                | 17 ++---------------
 app_data/requirements.txt | 16 +++++++---------
 2 files changed, 9 insertions(+), 24 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 5595601..40c3009 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,13 +5,7 @@ USER root
 RUN yum install -y gcc make \
     mariadb \
     mariadb-devel \
-    python36-click \
-    python36-cryptography \
-    python36-dateutil \
     python36-devel \
-    python36-jinja2 \
-    python36-markupsafe \
-    python36-pip \
     python36-PyMySQL \
     rh-python36-mod_wsgi \
     uwsgi-plugin-python36
@@ -19,19 +13,12 @@ RUN yum install -y gcc make \
 ENV ODRS_HOME=/opt/app-root/src \
     LANG=C
 
-RUN pip3 install --prefix=/usr \
-    flask-login \
-    flask-migrate \
-    flask-wtf \
-    lxml \
-    mysqlclient \
-    PyMySQL \
-    sqlalchemy
-
 WORKDIR ${ODRS_HOME}
 
 COPY app_data ${ODRS_HOME}
 
+RUN pip3 install --prefix=/usr -r ${ODRS_HOME}/requirements.txt
+
 RUN LANG=en_US.utf8 \
     FLASK_APP=odrs/__init__.py \
     SQLALCHEMY_TRACK_MODIFICATIONS=False \
diff --git a/app_data/requirements.txt b/app_data/requirements.txt
index 4cfb87a..28919ce 100644
--- a/app_data/requirements.txt
+++ b/app_data/requirements.txt
@@ -2,7 +2,6 @@ alembic==1.7.7
 astroid==2.9.3
 attrs==21.4.0
 click==8.0.4
-coverage==6.3.2
 Flask==2.0.3
 Flask-Login==0.5.0
 Flask-Migrate==3.1.0
@@ -11,29 +10,28 @@ Flask-WTF==1.0.0
 greenlet==1.1.2
 iniconfig==1.1.1
 isort==5.10.1
-itsdangerous==2.1.1
+itsdangerous==2.0.1
 Jinja2==3.0.3
 lazy-object-proxy==1.7.1
 lxml==4.8.0
-Mako==1.2.0
-MarkupSafe==2.1.1
+Mako==1.1.6
+MarkupSafe==2.0.1
 mccabe==0.6.1
 more-itertools==8.12.0
 packaging==21.3
-platformdirs==2.5.1
+platformdirs==2.4.0
 pluggy==1.0.0
 py==1.11.0
 pylint==2.12.2
 PyMySQL==1.0.2
 pyparsing==3.0.7
-pytest==7.1.0
-pytest-cov==3.0.0
+pytest==7.0.1
 python-dateutil==2.8.2
 six==1.16.0
 SQLAlchemy==1.4.32
 toml==0.10.2
-tomli==2.0.1
+tomli==1.2.3
 wcwidth==0.2.5
 Werkzeug==2.0.3
 wrapt==1.13.3
-WTForms==3.0.1
+WTForms==3.0.0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]