A hubot based chat bot for Capgemini Digital.
- Git
- Vagrant
- Vagrant lxc
- nfsd
Clone the git repo.
Grab the submodules:
git submodule init && git submodule update
Set the proxy to use (if any) in vagrant/config.yml.
Start vagrant.
cd vagrant && vagrant up --provider lxc
Install the node dependencies:
cd /opt/hubot npm install
Copy hubot/example.env to hubot/.env and edit it to match your environment details.
Start foreman:
cd /opt/hubot foreman start
The pip --proxy option seems to be broken so for now you'll need to install this package manually if you're behind a proxy.
If you're behind a proxy and want to configure Skype to use it before the first login, press Ctrl+O at the login screen to open the options dialog.
Jenkins notifications are created by using the jenkins-notifier.coffee script [1]. In order for Jenkins to be able to hit the web server we need to establish a reverse ssh tunnel to the jenkins server.
Make sure you can access the jenkins server from your host machine via ssh key. We use agent forwarding to share your keys with the deanbot container.
Connect to the jump server in the container:
ssh rmg.jenkins
And add the host keys for the jump server and jenkins server to your trusted list.
Finally use autossh to establish a permanent tunnel:
autossh -f -N -R 5000:localhost:5000 rmg.jenkins
N.B. The jenkins jobs will also need to be configured to call out to deanbot. See the script doc block for details on how to configure this.
[1] | https://github.com/github/hubot-scripts/blob/master/src/scripts/jenkins-notifier.coffee |