@@ -102,6 +102,7 @@ FROM php-base AS python-build
102
102
ARG PYPI_MIXBOX_VERSION
103
103
ARG PYPI_CYBOX_VERSION
104
104
ARG PYPI_PYMISP_VERSION
105
+ ARG PYPI_MISP_STIX_VERSION
105
106
106
107
RUN apt-get install -y --no-install-recommends \
107
108
git \
129
130
# 2. If missing, add it (with optional version from env (defaults to empty string))
130
131
# 3. If present, replace with our specified version if it exists, otherwise leave
131
132
# the upstream version alone.
132
- set -- "redis" "lief" "pydeep2" "python-magic" "misp-lib-stix2" "maec" "mixbox" "cybox" "pymisp"
133
+ set -- "redis" "lief" "pydeep2" "python-magic" "misp-lib-stix2" "maec" "mixbox" "cybox" "pymisp" "misp-stix"
133
134
for mod in "$@" ; do
134
135
mod_version_var=$(echo "PYPI_${mod}_VERSION" | tr '[:lower:]' '[:upper:]' | tr '-' '_' )
135
136
mod_version=$(eval "echo \"\$ $mod_version_var\" " )
@@ -151,11 +152,18 @@ EOF
151
152
pip wheel --no-cache-dir -w /wheels/ -r /var/www/MISP/requirements.txt
152
153
153
154
# Remove files we do not care for
154
- rm -r /var/www/MISP/PyMISP
155
155
find /var/www/MISP/INSTALL/* ! -name 'MYSQL.sql' -type f -exec rm {} +
156
156
find /var/www/MISP/INSTALL/* ! -name 'MYSQL.sql' -type l -exec rm {} +
157
157
# Remove most files in .git - we do not use git functionality in docker
158
158
find /var/www/MISP/.git/* ! -name HEAD -exec rm -rf {} +
159
+ # Remove libraries' submodules
160
+ rm -r /var/www/MISP/PyMISP
161
+ rm -r /var/www/MISP/app/files/scripts/cti-python-stix2
162
+ rm -r /var/www/MISP/app/files/scripts/misp-stix
163
+ rm -r /var/www/MISP/app/files/scripts/mixbox
164
+ rm -r /var/www/MISP/app/files/scripts/python-cybox
165
+ rm -r /var/www/MISP/app/files/scripts/python-maec
166
+ rm -r /var/www/MISP/app/files/scripts/python-stix
159
167
EOF
160
168
161
169
0 commit comments