2015-12-09 14:11:44 +01:00
|
|
|
# Huginn with Vagrant and VirtualBox
|
|
|
|
|
|
|
|
Based on instructions here:
|
|
|
|
|
|
|
|
https://github.com/cantino/huginn/blob/master/doc/manual/installation.md
|
|
|
|
|
2015-12-15 09:25:44 +01:00
|
|
|
**Setup Huginn under VirtualBox, with minimal configuration required.**
|
|
|
|
|
2015-12-15 09:31:26 +01:00
|
|
|
A working VirtualBox installation is a prerequisite, as well as Vagrant
|
|
|
|
(from vagrantup.com).
|
2015-12-15 09:21:26 +01:00
|
|
|
|
2015-12-15 09:35:35 +01:00
|
|
|
## Testing
|
2015-12-15 09:34:43 +01:00
|
|
|
|
|
|
|
This repository is pulled to my server and test-compiled each day, so I hope
|
|
|
|
I will catch any problems due to up-stream changes in the Huginn project
|
|
|
|
itself. Email burns dot sj at gmail dot com if I missed anything or if you
|
|
|
|
find any other problems.
|
|
|
|
|
2015-12-15 09:35:35 +01:00
|
|
|
## Guided Installation
|
2015-12-15 09:34:43 +01:00
|
|
|
|
2015-12-15 09:21:26 +01:00
|
|
|
If you know the settings you will use for your Huginn installation (such
|
|
|
|
as SMTP host, MySQL settings, etc) you can:
|
|
|
|
|
|
|
|
- Clone this repository: `git clone https://github.com/m0nty/huginn-vagrant.git`
|
|
|
|
- Jump straight in with `./setup.sh` and follow the prompts. No attempt
|
2015-12-15 09:25:44 +01:00
|
|
|
is made to validate your input while you do this, but sensible defaults are
|
|
|
|
suggested for usernames, passwords, etc.
|
2015-12-15 09:23:19 +01:00
|
|
|
- Run `vagrant up` to provision your Huginn instance.
|
2015-12-15 09:21:26 +01:00
|
|
|
|
2015-12-15 09:35:35 +01:00
|
|
|
## Manually Editing the Config Files
|
2015-12-15 09:34:43 +01:00
|
|
|
|
|
|
|
You do not need to do this if you successfully ran `./setup.sh` above. But,
|
|
|
|
if you prefer to edit the config files yourself or you need to correct a setting:
|
2015-12-09 14:11:44 +01:00
|
|
|
|
|
|
|
- Clone this repository: `git clone https://github.com/m0nty/huginn-vagrant.git`
|
|
|
|
- Edit the `env` file, which will be copied to `/home/huginn/huginn/.env`
|
|
|
|
(look for the FIXME comments in the file to see what you need to adjust).
|
|
|
|
- Edit `provision.sh` and change the MySQL passwords for the root MySQL user and
|
|
|
|
the Huginn DB user (search for FIXME again).
|
|
|
|
- Edit the `Vagrantfile` if you want to change the virtual machine settings. I've
|
|
|
|
gone with `vb.memory = "1024"` which you might want to increase if you think
|
2015-12-15 09:21:26 +01:00
|
|
|
your Huginn is going to be busier.
|
|
|
|
- You might want to change the line `config.vm.box = "ubuntu/trusty64"` if your
|
2015-12-09 14:11:44 +01:00
|
|
|
PC can't run 64-bit images.
|
|
|
|
- Edit the `huginn` file if you want to change the listening address and port for
|
|
|
|
your Huginn instance.
|
|
|
|
- I don't think you need to change the Procfile, but you may as well check anyway.
|
2015-12-15 09:23:19 +01:00
|
|
|
- After that, run `vagrant up` to provision your Huginn instance.
|
2015-12-09 14:11:44 +01:00
|
|
|
|
|
|
|
Please let me know if I've messed up in any way. I've got my Huginn instance working
|
|
|
|
now, and I'm delighted with it. I just wanted to help out if anyone else is having
|
|
|
|
problems with the other installation methods.
|
|
|
|
|
2015-12-15 09:35:35 +01:00
|
|
|
## To-do
|
2015-12-09 14:11:44 +01:00
|
|
|
|
|
|
|
I'll probably do a Dockerfile sometime, so you can create a docker instance yourself
|
|
|
|
without pulling the Huginn docker image.
|
|
|
|
|