2017-08-23 11:55:44 +02:00
|
|
|
# Build Automated Machine Images for MISP
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
* [VirtualBox](https://www.virtualbox.org)
|
|
|
|
* [Packer](https://www.packer.io)
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2017-08-23 12:03:02 +02:00
|
|
|
In the file *scripts/bootstrap.sh*, set the value of ``MISP_BASEURL`` according
|
|
|
|
to the IP address you will associate to your VM
|
|
|
|
(for example: http://172.16.100.100).
|
|
|
|
|
|
|
|
Launch the generation:
|
|
|
|
|
2017-08-24 08:35:46 +02:00
|
|
|
$ packer build -only=virtualbox-iso misp.json
|
2017-08-23 11:55:44 +02:00
|
|
|
|
|
|
|
A VirtualBox image will be generated and stored in the folder
|
2017-08-23 23:52:00 +02:00
|
|
|
*output-virtualbox-iso*. You can directly import it in VirtualBox.
|
|
|
|
|
2017-08-24 08:39:35 +02:00
|
|
|
If you want to build an image for VMWare you will need to install it and to
|
|
|
|
use the VMWare builder with the command:
|
|
|
|
|
|
|
|
$ packer build -only=vmware-iso misp.json
|
|
|
|
|
|
|
|
You can also launch all builders in parallel.
|
2017-08-23 23:52:00 +02:00
|
|
|
|
|
|
|
### Automatic export to GitHub
|
|
|
|
|
2017-08-25 14:56:01 +02:00
|
|
|
$ GITHUB_AUTH_TOKEN=<your-github-auth-token>
|
|
|
|
$ TAG=v2.4.79
|
|
|
|
$ ./upload.sh github_api_token=$GITHUB_AUTH_TOKEN owner=MISP repo=MISP tag=$TAG filename=./output-virtualbox-iso/MISP_demo.ova
|