Install latest cybox and stix versions

The versions pinned by the Dockerfile were too old and failed the
diagnostics test.

We switch to using the latest Github revision. This mirrors the
main MISP repository installation script behaviour (INSTALL/INSTALL.sh)
Chris Halls 2020-01-10 15:10:10 +01:00
parent 74934c755c
commit 5e390d610a
1 changed files with 2 additions and 13 deletions

View File

@ -55,20 +55,9 @@ RUN git checkout tags/$(git describe --tags `git rev-list --tags --max-count=1`)
git submodule update --init --recursive && \
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 && \
git clone https://github.com/STIXProject/python-stix.git
WORKDIR /var/www/MISP/app/files/scripts/python-cybox
RUN git checkout v2.1.0.12
USER root
RUN python setup.py install
USER www-data
WORKDIR /var/www/MISP/app/files/scripts/python-stix
RUN git checkout v1.1.1.4
USER root
RUN python setup.py install
RUN pip3 install git+https://github.com/STIXProject/python-stix.git \
git+https://github.com/CybOXProject/python-cybox.git
USER www-data
WORKDIR /var/www/MISP