mozilla/mig — pull request #25 by netantho (2014-09-27 09:18:51+00:00)
Title: WIP docker config

To launch:
1. Install docker
2. ``sudo make docker-all-build``
3. ``sudo make docker-all-run``
4. [http://mozdef.readthedocs.org/en/latest/installation.html#get-a-terminal-in-the-container](Go inside the container)
5. Inside the container ``service postgresql start && service rabbitmq-server start``, ``/go/src/github.com/mozilla/mig/bin/linux/amd64/mig-scheduler -c /mig-scheduler.cfg.inc``, ``/go/src/github.com/mozilla/mig/bin/linux/amd64/mig-api -c /mig-api.cfg.inc``, ``/go/src/github.com/mozilla/mig/bin/linux/amd64/mig-agent-latest``

Problems:
* [high] the agent fails to init: ``[error] Init failed: 'initAgent() -> daemonize() -> serviceDeploy() -> Unix syslog delivery error'``
* [low] Sometimes (when the agent fails and try to restart?) the agent is already using the stat port: ``[error] Failed to connect stat socket: 'initSocket() -> listen tcp 127.0.0.1:51664: bind: address already in use'``

Questions:
* Where is mig-action-generator looking for GPG keys? It cannot find my key.

Todo:
* [ ] Start binaries with mig-user
* [ ] Use supervisor to start everything
* [ ] Build the image on docker hub
* [ ] Documentation
* [ ] Cache optimization
* [ ] Move config files to ``/etc/mig/``
* [ ] Additional docker configs to have a server container and several agent containers