From 10843c38cd11a633b8cb562b23746ef43109eae1 Mon Sep 17 00:00:00 2001 From: Moshe Malka Date: Thu, 7 Feb 2019 08:54:44 +0000 Subject: [PATCH] using submodules instead of pear install --- web/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/Dockerfile b/web/Dockerfile index 677c39e..10277cf 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -49,6 +49,9 @@ RUN git clone https://github.com/MISP/MISP.git WORKDIR /var/www/MISP RUN git checkout tags/$(git describe --tags `git rev-list --tags --max-count=1`) RUN git config core.filemode false +RUN git submodule update --init --recursive +# Make git ignore filesystem permission differences for submodules +RUN git submodule foreach --recursive git config core.filemode false WORKDIR /var/www/MISP/app/files/scripts RUN git clone https://github.com/CybOXProject/python-cybox.git @@ -94,10 +97,6 @@ RUN echo "postfix postfix/mailname string localhost.localdomain" | debconf-set-s # Redis Setup RUN sed -i 's/^\(daemonize\s*\)yes\s*$/\1no/g' /etc/redis/redis.conf -# Install PEAR packages -RUN pear install Crypt_GPG >>/tmp/install.log -RUN pear install Net_GeoIP >>/tmp/install.log - # Apache Setup RUN cp /var/www/MISP/INSTALL/apache.misp.ubuntu /etc/apache2/sites-available/misp.conf RUN a2dissite 000-default