From 8ff5dc791245c22ad7db883ed97bdf1995aa30e9 Mon Sep 17 00:00:00 2001 From: Jeremy Barlow Date: Tue, 3 Apr 2018 15:09:59 -0700 Subject: [PATCH] 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. --- container/Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/container/Dockerfile b/container/Dockerfile index a6d1531..391090f 100644 --- a/container/Dockerfile +++ b/container/Dockerfile @@ -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 ; \ sudo chown -R www-data:www-data /var/www/MISP/app/Config ; \ sudo chmod -R 750 /var/www/MISP/app/Config ; \ - sudo pip install --upgrade pip ; \ - sudo pip install pyzmq ; \ - sudo pip install redis ; \ + sudo pip2 install --upgrade pip ; \ + sudo pip2 install pyzmq ; \ + 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 ; \ tar zxvf ssdeep-2.13.tar.gz && cd ssdeep-2.13 && ./configure && make && sudo make install ; \ sudo pecl install ssdeep ; \