Skip to content

Commit a5fd58a

Browse files
committed
Release MISP 2.5 and PHP 8.2
1 parent 26ae2bf commit a5fd58a

File tree

7 files changed

+51
-51
lines changed

7 files changed

+51
-51
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
.env
77
env.hcl
88
rootca.crt
9+
cert.pem

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ Custom root CA certificates can be mounted under `/usr/local/share/ca-certificat
134134
135135
- Make sure you run a fairly recent version of Docker and Docker Compose (if in doubt, update following the steps outlined in https://docs.docker.com/engine/install/ubuntu/)
136136
- Make sure you are not running an old image or container; when in doubt run `docker system prune --volumes` and clone this repository into an empty directory
137+
- If you receive an error that the 'start_interval' does not match any of the regexes, update Docker following the steps outlined in https://docs.docker.com/engine/install/ubuntu/)
137138

138139
## Versioning
139140

core/Dockerfile

Lines changed: 39 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@ FROM "${DOCKER_HUB_PROXY}python:3.12-slim-bookworm" AS php-base
55
ENV DEBIAN_FRONTEND noninteractive
66

77
# Uncomment when building in corporate environments
8-
# COPY ./rootca.crt /usr/local/share/ca-certificates/rootca.pem
9-
# COPY ./rootca.crt /usr/lib/ssl/cert.pem
8+
# COPY ./cert.pem /usr/local/share/ca-certificates/rootca.pem
9+
# COPY ./cert.pem /usr/lib/ssl/cert.pem
1010

1111
RUN apt-get update; apt-get install -y --no-install-recommends \
1212
lsb-release \
1313
ca-certificates \
1414
curl
15-
RUN curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
16-
RUN dpkg -i /tmp/debsuryorg-archive-keyring.deb
17-
RUN echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
18-
RUN apt-get update
1915

2016

2117
FROM php-base AS composer-build
@@ -25,33 +21,27 @@ FROM php-base AS composer-build
2521
ARG CORE_COMMIT
2622

2723
RUN apt-get install -y --no-install-recommends \
28-
php7.4 \
29-
php7.4-apcu \
30-
php7.4-curl \
31-
php7.4-xml \
32-
php7.4-intl \
33-
php7.4-bcmath \
34-
php7.4-mbstring \
35-
php7.4-mysql \
36-
php7.4-redis \
37-
php7.4-gd \
38-
php7.4-fpm \
39-
php7.4-zip \
24+
php8.2 \
25+
php8.2-apcu \
26+
php8.2-curl \
27+
php8.2-xml \
28+
php8.2-intl \
29+
php8.2-bcmath \
30+
php8.2-mbstring \
31+
php8.2-mysql \
32+
php8.2-redis \
33+
php8.2-gd \
34+
php8.2-fpm \
35+
php8.2-zip \
4036
unzip \
4137
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
4238

4339
WORKDIR /tmp
44-
ADD https://raw.githubusercontent.com/MISP/MISP/${CORE_COMMIT:-${CORE_TAG}}/app/composer.json /tmp
40+
RUN curl -o /tmp/composer.json https://raw.githubusercontent.com/MISP/MISP/${CORE_COMMIT:-${CORE_TAG}}/app/composer.json
4541
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
4642
RUN composer config --no-interaction allow-plugins.composer/installers true
4743
RUN composer install
4844
RUN composer require --with-all-dependencies --no-interaction \
49-
supervisorphp/supervisor:^4.0 \
50-
guzzlehttp/guzzle:^7.4.5 \
51-
lstrojny/fxmlrpc \
52-
php-http/message \
53-
php-http/message-factory \
54-
# docker image specific dependencies
5545
elasticsearch/elasticsearch:^8.7.0 \
5646
jakub-onderka/openid-connect-php:^1.0.0 \
5747
aws/aws-sdk-php
@@ -64,10 +54,11 @@ FROM php-base AS php-build
6454
RUN apt-get install -y --no-install-recommends \
6555
gcc \
6656
g++ \
57+
git \
6758
make \
68-
php7.4 \
69-
php7.4-dev \
70-
php7.4-xml \
59+
php8.2 \
60+
php8.2-dev \
61+
php8.2-xml \
7162
php-pear \
7263
libbrotli-dev \
7364
libfuzzy-dev \
@@ -76,18 +67,20 @@ FROM php-base AS php-build
7667
libzstd-dev \
7768
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
7869

79-
RUN update-alternatives --set php /usr/bin/php7.4
80-
RUN update-alternatives --set php-config /usr/bin/php-config7.4
81-
RUN update-alternatives --set phpize /usr/bin/phpize7.4
70+
RUN update-alternatives --set php /usr/bin/php8.2
71+
RUN update-alternatives --set php-config /usr/bin/php-config8.2
72+
RUN update-alternatives --set phpize /usr/bin/phpize8.2
8273

8374
RUN cp "/usr/lib/$(gcc -dumpmachine)"/libfuzzy.* /usr/lib
8475
RUN pecl channel-update pecl.php.net && \
85-
pecl install ssdeep && \
8676
pecl install rdkafka && \
8777
pecl install simdjson && \
8878
pecl install zstd && \
8979
pecl install brotli
9080

81+
# install pect-text-ssdeep 1.2
82+
RUN git clone --recursive --depth=1 https://github.com/JakubOnderka/pecl-text-ssdeep.git /tmp/pecl-text-ssdeep
83+
RUN cd /tmp/pecl-text-ssdeep && phpize && ./configure && make && make install
9184

9285
FROM php-base AS python-build
9386
ENV DEBIAN_FRONTEND noninteractive
@@ -186,19 +179,19 @@ FROM php-base
186179
mariadb-client \
187180
rsync \
188181
# PHP Requirements
189-
php7.4 \
190-
php7.4-apcu \
191-
php7.4-curl \
192-
php7.4-xml \
193-
php7.4-intl \
194-
php7.4-bcmath \
195-
php7.4-mbstring \
196-
php7.4-mysql \
197-
php7.4-redis \
198-
php7.4-gd \
199-
php7.4-fpm \
200-
php7.4-zip \
201-
php7.4-ldap \
182+
php8.2 \
183+
php8.2-apcu \
184+
php8.2-curl \
185+
php8.2-xml \
186+
php8.2-intl \
187+
php8.2-bcmath \
188+
php8.2-mbstring \
189+
php8.2-mysql \
190+
php8.2-redis \
191+
php8.2-gd \
192+
php8.2-fpm \
193+
php8.2-zip \
194+
php8.2-ldap \
202195
libmagic1 \
203196
libldap-common \
204197
librdkafka1 \
@@ -213,7 +206,7 @@ FROM php-base
213206
curl jq \
214207
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
215208

216-
RUN update-alternatives --set php /usr/bin/php7.4
209+
RUN update-alternatives --set php /usr/bin/php8.2
217210

218211
# Install python modules
219212
COPY --from=python-build /wheels /wheels

core/files/entrypoint_fpm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ change_php_vars() {
3333
echo "Configure PHP | Change PHP values ..." && change_php_vars
3434

3535
echo "Configure PHP | Starting PHP FPM"
36-
/usr/sbin/php-fpm7.4 -R -F & master_pid=$!
36+
/usr/sbin/php-fpm8.2 -R -F & master_pid=$!
3737

3838
# Wait for it
3939
wait "$master_pid"

core/files/etc/nginx/includes/misp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ location / {
2424

2525
location ~ ^/[^/]+\.php(/|$) {
2626
include snippets/fastcgi-php.conf;
27-
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
27+
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
2828
fastcgi_read_timeout 300s;
2929
fastcgi_send_timeout 300s;
3030
fastcgi_connect_timeout 300s;

modules/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ FROM "${DOCKER_HUB_PROXY}python:3.12-slim-bookworm" AS python-build
66
ARG MODULES_COMMIT
77
ARG LIBFAUP_COMMIT
88

9+
# Uncomment when building in corporate environments
10+
# COPY ./cert.pem /usr/local/share/ca-certificates/rootca.pem
11+
# COPY ./cert.pem /usr/lib/ssl/cert.pem
12+
913
RUN apt-get update && apt-get install -y --no-install-recommends \
14+
ca-certificates \
1015
cmake \
1116
git \
1217
build-essential \

template.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Build-time variables
33
##
44

5-
CORE_TAG=v2.4.198
5+
CORE_TAG=v2.5.0
66
MODULES_TAG=v2.4.197
7-
PHP_VER=20190902
7+
PHP_VER=20220829
88
LIBFAUP_COMMIT=3a26d0a
99

1010
# PYPY_* vars take precedence over MISP's
@@ -20,7 +20,7 @@ LIBFAUP_COMMIT=3a26d0a
2020
# PYPI_MISP_STIX_VERSION"==2.4.194"
2121

2222
# CORE_COMMIT takes precedence over CORE_TAG
23-
# CORE_COMMIT=c56d537
23+
# CORE_COMMIT=0bba3f5
2424
# MODULES_COMMIT takes precedence over MODULES_TAG
2525
# MODULES_COMMIT=de69ae3
2626

0 commit comments

Comments
 (0)