Ensure pyzmq and redis also installed with pip2 for Python 2

Previously, pyzmq and redis were pip installed using the default pip,
which was for Python 3. This resulted in the pyzmq and redis packages
not being found when the MISP server spawned the mispzmq script using
the default python, which is version 2. With this commit, pyzmq and
redis would be installed for both Python 2 (via pip2) and Python 3
(via pip3), which should allow the packages to be available to scripts
which use it from different Python versions.
pull/4/head
Jeremy Barlow 2018-04-03 15:09:59 -07:00
parent 91b928e31f
commit 8ff5dc7912
1 changed files with 6 additions and 3 deletions

View File

@ -119,9 +119,12 @@ RUN sed -i -e 's/db login/misp/g' /var/www/MISP/app/Config/database.php ; \
sed -i -e "s/email@address.com/${MISP_EMAIL}/" /var/www/MISP/app/Config/config.php ; \ sed -i -e "s/email@address.com/${MISP_EMAIL}/" /var/www/MISP/app/Config/config.php ; \
sudo chown -R www-data:www-data /var/www/MISP/app/Config ; \ sudo chown -R www-data:www-data /var/www/MISP/app/Config ; \
sudo chmod -R 750 /var/www/MISP/app/Config ; \ sudo chmod -R 750 /var/www/MISP/app/Config ; \
sudo pip install --upgrade pip ; \ sudo pip2 install --upgrade pip ; \
sudo pip install pyzmq ; \ sudo pip2 install pyzmq ; \
sudo pip install redis ; \ sudo pip2 install redis ; \
sudo pip3 install --upgrade pip ; \
sudo pip3 install pyzmq ; \
sudo pip3 install redis ; \
sudo -u www-data -H wget http://downloads.sourceforge.net/project/ssdeep/ssdeep-2.13/ssdeep-2.13.tar.gz ; \ sudo -u www-data -H wget http://downloads.sourceforge.net/project/ssdeep/ssdeep-2.13/ssdeep-2.13.tar.gz ; \
tar zxvf ssdeep-2.13.tar.gz && cd ssdeep-2.13 && ./configure && make && sudo make install ; \ tar zxvf ssdeep-2.13.tar.gz && cd ssdeep-2.13 && ./configure && make && sudo make install ; \
sudo pecl install ssdeep ; \ sudo pecl install ssdeep ; \