2017-08-29 22:14:47 +02:00
|
|
|
Development environment for MISP
|
|
|
|
================================
|
|
|
|
|
|
|
|
Vagrant is convenient to use in order to setup your development environment.
|
|
|
|
|
|
|
|
This VM uses `synced folders <https://www.vagrantup.com/docs/synced-folders/>`_
|
|
|
|
feature of Vagrant in order to let you work on the MISP source code on your
|
|
|
|
host machine while the softwares (Apache, PHP, MariaDB, etc.) and libraries
|
|
|
|
will be installed on the guest Vagrant machine.
|
2017-07-05 22:54:12 +02:00
|
|
|
|
2018-01-28 17:23:00 +01:00
|
|
|
For a deployment of MISP more ready for a production environment you can use
|
2018-01-28 17:24:44 +01:00
|
|
|
`our packer script <https://github.com/MISP/misp-packer>`_.
|
2018-01-28 17:23:00 +01:00
|
|
|
|
2017-07-06 10:17:45 +02:00
|
|
|
|
2017-07-05 22:54:12 +02:00
|
|
|
Installation of VirtualBox and Vagrant
|
|
|
|
--------------------------------------
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
$ sudo apt-get install virtualbox vagrant
|
|
|
|
|
|
|
|
|
2018-01-12 15:03:54 +01:00
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
|
|
|
|
- Be sure to use a recent version of vagrant >= 1.9.1.
|
|
|
|
|
2017-07-05 22:54:12 +02:00
|
|
|
Deployment of MISP
|
|
|
|
------------------
|
|
|
|
|
2018-01-26 08:00:03 +01:00
|
|
|
MISP will be automatically deployed in an Ubuntu Artful Server.
|
2017-07-05 22:54:12 +02:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2017-08-29 22:14:47 +02:00
|
|
|
$ git clone https://github.com/MISP/MISP.git
|
2017-08-30 09:32:55 +02:00
|
|
|
$ cd MISP/
|
|
|
|
$ git submodule update --init misp-vagrant
|
|
|
|
$ cd misp-vagrant/
|
2017-07-05 22:54:12 +02:00
|
|
|
$ vagrant up
|
|
|
|
|
|
|
|
Once the VM will be configured by Vagrant, go to the address
|
2017-08-29 22:14:47 +02:00
|
|
|
http://127.0.0.1:5000.
|
|
|
|
|
|
|
|
You can now edit the source code with your favorite editor and test it in your
|
|
|
|
browser. The only thing is to not forget to restart Apache in the VM after a
|
|
|
|
modification.
|
2017-08-17 08:30:05 +02:00
|
|
|
|
2017-09-05 21:23:38 +02:00
|
|
|
If you do not want a development environment (and consequently disable synced
|
|
|
|
folders):
|
2017-08-30 08:18:00 +02:00
|
|
|
|
|
|
|
.. code-block:: bash
|
2017-08-29 22:14:47 +02:00
|
|
|
|
|
|
|
$ git clone https://github.com/MISP/misp-vagrant.git
|
|
|
|
$ cd misp-vagrant/
|
2017-08-30 08:01:08 +02:00
|
|
|
$ export MISP_ENV='demo'
|
2017-08-29 22:14:47 +02:00
|
|
|
$ vagrant up
|
2017-08-17 08:30:05 +02:00
|
|
|
|
2017-08-30 08:18:00 +02:00
|
|
|
|
2017-08-17 08:30:05 +02:00
|
|
|
Modules activated by default in the VM:
|
|
|
|
|
2017-08-30 08:18:00 +02:00
|
|
|
* `MISP galaxy <https://github.com/MISP/misp-galaxy>`_
|
|
|
|
* `MISP taxonomies <https://github.com/MISP/misp-taxonomies>`_
|
|
|
|
* `MISP modules <https://github.com/MISP/misp-modules>`_
|