These three are recommended in the latest MISP diagnostics page, so I decided to
add them to the docker build as well.
Signed-off-by: Coleman Kane <ckane@colemankane.org>
The "bionic" distro is older and includes a version of PHP (7.2) that is older than
what MISP recommends (>=7.4). Additionally, "bionic" is supposed to be EOL later this
year, so updating the project to keep current. Necessary changes to PHP & libpoppler
versions.
Signed-off-by: Coleman Kane <ckane@colemankane.org>
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)
These are the default php packages on Bionic, so we can drop the
7.3 suffix from the installed package names.
We also reduce the work apt has to do by merging the apt install
lines together into one.
Without this fix, you'll get:
```
Running python-dateutil-2.8.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-plD_ft/python-dateutil-2.8.1/egg-dist-tmp-4ws_IO
/tmp/easy_install-plD_ft/python-dateutil-2.8.1/setup.py:20: UserWarning: python_requires requires setuptools version > 24.3
UserWarning)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'use_scm_version'
warnings.warn(msg)
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
warning: install_lib: 'build/lib.linux-x86_64-2.7' does not exist -- no Python modules to install
```
Adding
`apt-get install -u php-mysql`
otherwise on startup you'll get an internal 500 error, with /tmp/logs showing:
```
2019-07-08 11:21:02 Error: [MissingConnectionException] Database connection "Mysql" is missing, or could not be created.
Exception Attributes: array (
'class' => 'Mysql',
'message' => 'Selected driver is not enabled',
'enabled' => false,
)
```
"# FIX COMPOSER" entries have (probably) been copied-pasted twice from a terminal, with one truncated line at (hash_file('sha384', 'composer-setup.php')) that breaks the script