Vous êtes sur la page 1sur 3

BLOODHOUND INSTALLATION

I'm trying to implement a suite of tools for software


development, this one is for bug tracking.
Bloodhound, is a trac based tool. What took my attention is that
it is an Apache incubated project, it's a clearly competitor to
Bugzilla (another Apache backed project), and also it's not even
on it's first version.
Following are the details to its installation on Windows.
Required files:
Apache Bloodhound
(http://bloodhound.apache.org/): Project management and bug
tracking system. Download apache-bloodhound0.7.tar.gz (version 0.7 released on 2013-08-23).
Python

(https://www.python.org/download/): Computer programming


language. Bloodhound instructions say "Python (2.6 >= version
< 3.0)", download Python-2.7.6.msi.
setuptools

(https://pypi.python.org/pypi/setuptools#windows-7-orgraphical-install): Python library designed to facilitate packaging


Python projects. Download ez_setup.py. (version 3.4.3 as seen
on 2014-04-10)
pip

(http://www.pip-installer.org/en/latest/installing.html): Tool for


installing and managing Python packages. Download getpip.py. (version 1.5.4 as seen on 2014-04-10)

psycopg2

(http://www.stickpeople.com/projects/python/winpsycopg/): Python-postgresql database interface.


Download psycopg2-2.5.2.win32-py2.7-pg9.2.6release.exe. (version 2.5.2 for Python 2.7 as seen on 2014-0410)
Create database/user in Postgresql
You need an active Postgresql dbms already running.
Run the following commands to create a bloodhoud user and
database (run this on the bin folder of postgres):

createuser -U postgres -S -D -R -E -P bloodhound


createdb -U postgres -O bloodhound -E UTF-8 bloodhound

Installation steps

Install Python-2.7.6.msi (preferably on a root path)


Install psycopg2-2.5.2.win32-py2.7-pg9.2.6release.exe
Add the Python folder to the PATH variable
(c:\Python27 in my case)
Add the Python scripts folder to the PATH variable
(c:\Python27\Scripts)
Unpack apache-bloodhound0.7.tar.gz to c:\bloodhound
Copy ez_setup.py and getpip.py to c:\bloodhound\installer
Open command prompt on c:\bloodhound\installer
Run python.exe ez_setup.py (this will download and
configure setuptools)
Run python.exe get-pip.py (this will download and
configure pip)
Run virtualenv --system-site-packages bloodhound to
setup a virtual environment

Run bloodhound\Scripts\activate.bat (this will activate


a bloodhound prompt to run bloodhound commands)
Run pip install -r requirements-dev.txt to install
required python packages.

Before the final step of installation, we have to


consider Postgresql pg_dump.exe tool installation:
If pg_dump.exe exist on your current setup and its path is on
the PATH variable you don't have to do anything.
Otherwise you need to
edit c:\bloodhound\installer\bloodhound_setup.py
Edit the following line:
bloodhound.onecmd('upgrade') to
bloodhound.onecmd('upgrade --no-backup')
Why? When doing the bloodhound setup it executes a trac
update that includes a database backup, and it relies on the
pg_dump.exe tool to be present on the system and reachable
through PATH, and if it doesn't exist the setup fails.

Run python.exe bloodhound_setup.py --databasehost=10.0.0.12

As you can see there are parameters that can be passed on the
the setup, to know all the parameters run python.exe
bloodhound_setup.py --help
When running bloodhound_setup.py it asks for install on
postgres, answer Y. Include the information to the postgresql
created username and password and an additional system
admin name and password.
And voila! it's done.
Now run tracd --port=8000
c:\bloodhound\installer\bloodhound\environments\mai
n to start the server

Vous aimerez peut-être aussi