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.
non-live will make it live again if the container restarts. That seems
better than the default which is that MISP is non-live on container restart.
Ideally live/non-live would be persisted in the database but that's a change
in MISP.
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
- update from php7.2 to php7.3
- includes fix for #20https://github.com/MISP/misp-docker/issues/20
- rewrites the REQUIREMENTS file to remove explicit versioning as they are for python2 packages, not python3
Modification of the file database.php to be able to give the possibility to a MISP to connect to a database with another user.
Addition to download the GPG key on the MISP homepage.