Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ensure all required Python packages are installed for TAXII push #107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ RUN bash /usr/local/bin/misp_enable_epel.sh && \
dnf install --setopt=tsflags=nodocs --setopt=install_weak_deps=False -y $(grep -vE "^\s*#" /tmp/packages | tr "\n" " ") && \
alternatives --set python3 /usr/bin/python3.11 && \
alternatives --set python /usr/bin/python3.11 && \
pip3 --no-cache-dir install --disable-pip-version-check -r /tmp/requirements.txt && \
rm -rf /var/cache/dnf /tmp/packages

COPY --from=builder /usr/local/bin/su-exec /usr/local/bin/
Expand Down
3 changes: 3 additions & 0 deletions bin/misp_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ su-exec apache git config core.filemode false
cd /var/www/MISP/app/files/
su-exec apache git submodule update --depth 1 --init --recursive .

# Install Python dependencies
pip3 --no-cache-dir install --disable-pip-version-check -r /tmp/requirements.txt

# Install MISP composer dependencies
cd /var/www/MISP/app
# require exact version of `symfony/polyfill-php80` to keep compatibility, because later version replaces Attribute class :/
Expand Down
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ pytz
pydeep2
simplejson
stix2-patterns>=1.2.0
taxii2-client
cryptography
/var/www/MISP/app/files/scripts/cti-python-stix2
/var/www/MISP/app/files/scripts/misp-stix
/var/www/MISP/app/files/scripts/mixbox
/var/www/MISP/app/files/scripts/python-stix