Skip to content
Snippets Groups Projects
Commit 8585cc56 authored by Flissi Areski's avatar Flissi Areski
Browse files

Add spawn-fcgi to allow multi-threads runs

parent a844421e
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ RUN apt-get update && apt-get install -y \
nginx \
php-fpm \
fcgiwrap \
spawn-fcgi \
dialog \
apt-utils \
python3-pip \
......@@ -58,6 +59,7 @@ COPY ./nginx/fastcgi_params /etc/nginx/
COPY ./nginx/fcgiwrap.conf /etc/nginx/
COPY ./nginx/nginx.conf /etc/nginx/
COPY ./nginx/sites-available/pampa /etc/nginx/sites-available/pampa
COPY ./nginx/spawn-fcgi /
RUN sed -i "s/localhost;/localhost $SERVER_NAME;/g" /etc/nginx/sites-available/pampa
......@@ -104,5 +106,5 @@ COPY ./taxonomy_reduced.tsv /tmp/
EXPOSE 80
# Lancer les différents services au démmarrage (nginx, php-fpm, fastcgiwrap)
CMD service php7.4-fpm start && /etc/init.d/fcgiwrap start -f && /etc/init.d/postgresql start && /tmp/create_pampa_db && /usr/bin/python /tmp/fill_taxo.py /tmp/taxonomy_reduced.tsv && /usr/bin/python /tmp/json_taxo.py /var/www/html/pampa && chown www-data:www-data -R /var/run/fcgiwrap.socket && chmod 777 /var/run/fcgiwrap.socket && nginx -g "daemon off;"
CMD service php7.4-fpm start && /spawn-fcgi && /etc/init.d/postgresql start && /tmp/create_pampa_db && /usr/bin/python /tmp/fill_taxo.py /tmp/taxonomy_reduced.tsv && /usr/bin/python /tmp/json_taxo.py /var/www/html/pampa && chown www-data:www-data -R /var/run/fcgiwrap.socket && chmod 777 /var/run/fcgiwrap.socket && nginx -g "daemon off;"
#!/bin/bash
rm /run/fcgiwrap.socket;
/usr/bin/spawn-fcgi -P /var/run/fcgiwrap.pid -F '1' -s '/var/run/fcgiwrap.socket' -M '766' -u 'www-data' -U 'www-data' -g 'www-data' -G 'www-data' -- /usr/sbin/fcgiwrap -c 12 -f
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment