[odrs-web/oscp] Use the uid as specified on oc describe project and let mod_wsgi run as the same user the container



commit a4fe29c783653e74308e5a40ab4586022d265907
Author: Andrea Veri <averi redhat com>
Date:   Tue Nov 13 10:03:30 2018 +0100

    Use the uid as specified on oc describe project and let mod_wsgi run as the same user the container runs 
with

 Dockerfile          | 3 +--
 odrs.gnome.org.conf | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 65b1764..34dc903 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,8 +17,7 @@ RUN source scl_source enable rh-python36 && pip install -r requirements.txt
 
 COPY odrs.gnome.org.conf /etc/httpd/conf.d/000-default.conf
 
-RUN groupadd -g 1001 odrs
-RUN chown -R 1001:0 ${ODRS_HOME} && \
+RUN chown -R 1000310000:0 ${ODRS_HOME} && \
     chmod -R 664 ${ODRS_HOME} && \
     find ${ODRS_HOME} -type d -exec chmod 775 {} +
 
diff --git a/odrs.gnome.org.conf b/odrs.gnome.org.conf
index fe2e02d..188b899 100644
--- a/odrs.gnome.org.conf
+++ b/odrs.gnome.org.conf
@@ -10,7 +10,7 @@
     Alias /static/ /odrs-web/app/static
     Alias /1.0/reviews/api/ratings /odrs-web/ratings.json
 
-    WSGIDaemonProcess odrs.gnome.org processes=10 threads=15 maximum-requests=100 user=odrs group=odrs
+    WSGIDaemonProcess odrs.gnome.org processes=10 threads=15 maximum-requests=100
     WSGIProcessGroup odrs.gnome.org
 
     WSGIScriptAlias / /odrs-web/odrs.wsgi


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