Skip to content

How to install Jenkins Khan

srogier edited this page May 15, 2012 · 6 revisions

How to install Jenkins Khan

Clone project

cd /path/to/your/workspace
git clone git://github.com/pmsipilot/Jenkins-Khan.git
cd Jenkins-Khan

Initialize submodules

git submodule init
git submodule update 

Create a database

 CREATE DATABASE jenkins_khan DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
 GRANT ALL ON jenkins_khan.* TO jenkins_khan@localhost IDENTIFIED BY 'jenkins_khan-sql-password';
 FLUSH PRIVILEGES;

Configure the project

 cp config/databases.yml-dist config/databases.yml
 cp config/propel.ini-dist config/propel.ini
 cp config/properties.ini-dist config/properties.ini

Edit those new files, to configure the database connexion.

Initialize project

 ./symfony jk:init

Configure apache

With public directory : /path/to/your/workspace/Jenkins-Khan/web

Apache configuration file sample :

 Alias /jenkins-khan/packed /path/to/your/workspace/Jenkins-Khan/cache/packed
 Alias /jenkins-khan /path/to/your/workspace/Jenkins-Khan/web
 
 <Directory "/path/to/your/workspace/Jenkins-Khan/web">
     AllowOverride All
     Allow from All
 </Directory>
 
 <Directory "/path/to/your/workspace/Jenkins-Khan/cache/packed">
     Allow from All
     <IfModule mod_deflate.c>
             BrowserMatch ^Mozilla/4 no-gzip
             BrowserMatch \bMSIE\s7 !no-gzip
             BrowserMatch \bMSIE.*SV !no-gzip
             BrowserMatch \bOpera !no-gzip
             SetOutputFilter DEFLATE
             Header append Vary User-Agent env=!dont-vary
     </IfModule>
 </Directory>
 
 <FilesMatch "\.(gif|jpg|jpeg|png|css|js)$">
     FileETag none
     <IfModule mod_expires.c>
             ExpiresActive On
             ExpiresDefault "access plus 11 months"
     </IfModule>
 </FilesMatch>