using submodules instead of pear install

Moshe Malka 2019-02-07 08:54:44 +00:00
parent 252e1eb7af
commit 10843c38cd
1 changed files with 3 additions and 4 deletions

View File

@ -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