Brno University of Technology - Faculty of Information Technology
Bachelor's Thesis - Implementation
2017/2018
Bot is working under Linux only!
Bot is customized to MY account credentials!
To change it on yours, please see the customization section.
- GitHub personal access token
- full access if possible to avoid unsolicited access problems
- Github organization
- to be a member
- Organization's repository
- the bot is set to check this repository (pull requests / builds / etc.)
- Your own forked repository from the organization's repository
- to create a pull request which will be inspected by the bot (bot reacts to the PR's comments)
- Gitter personal access token
- do not forget to sign in
- Gitter room
Rewrite my informations by yours in:
- initializing script
miqbot_init.sh
- occurrence of
xtest123/testrepo
to yoursorganization/repository
- occurrence of
- resetting script
miqbot_reset.sh
- occurrence of
xtest123/testrepo
to yoursorganization/repository
- occurrence of
- configuration file
~/miq_bot/config/settings/development.local.yml
- github_credentials → username
- github_credentials → password
- occurrence of
xtest123/testrepo
to yoursorganization/repository
- Download and install Oracle VM VirtualBox
- Download CentOS 7
- Set up the virtual machine - follow the instructions in VM_SETUP.md
- Execute the following commands in the following order from top to bottom:
cd /root
yum install -y git
git clone https://github.com/europ/VUTBR-FIT-BT-IMPL.git
cd VUTBR-FIT-BT-IMPL
./install.sh
./rbenv.sh
./miqbot_init.sh
cd ~/miq_bot
- Start the bot (
git checkout master
- to check that everything works correctly):- Start all Sidekiq workers together
bundle exec foreman start
- Start Sidekiq workers separately (open 3 shells)
bundle exec rails s
bundle exec sidekiq -q miq_bot
bundle exec sidekiq -q miq_bot_glacial
- Start all Sidekiq workers together
NOTE
-
If you would like to access the Sidekiq idle (dashboard) from your outer browser (not in virtual machine) then you have to launch the
bundle exec rails s
on address0.0.0.0
inside of the virtual machine and on some port e.g.3000
. After this you will be able to access the Sidekiq idle viahttp://<VM_IP>:<PORT>
e.g.http://192.168.56.12:3000
.service firewalld stop
bundle exec rails s -b 0.0.0.0 -p 3000
-
At bot termination via SIGINT it is possible to get him into unstable state. Besides that, you may also face an "actor crashed" error too. This could be solved by reseting the bot which also require to launch him firstly on master branch.
~/VUTBR-FIT-BT-IMPL/miqbot_reset.sh
cd ~/miq_bot && git checkout master
- Launch
To check the pull request functionality you have to git checkout
the pertaining branch of the pull request which can be found in the footnotes of the thesis.
The original setup of the ManageIQ bot can be found here.
Bachelor's Thesis is available here.