[CentOS-devel] Getting started with CentOS Community Container Pipeline on Vagrant

Mon Apr 18 12:03:26 UTC 2016
Ratnadeep Debnath <rtnpro at gmail.com>

Hi all,

We have come up with scripts[1] to deploy CentOS Community Container
Pipeline(CCCP, in short). A typical CCCP setup comprises of 3 nodes:
Jenkins master, Jenkins slave, Openshift server. To ease the setup of
this multi node environment, we have created a Vagrantfile[2] to get
you started with your CCCP setup in no time.

Special thanks to Dharmit Shah and Praveen Kumar to help me out with
testing and improving these deployment scripts.

Below is the set of instructions to get you started with CCCP. You can
also find the latest and updated set of instructions here[3].

Setup
=====

sudo yum install -y epel-release git
# We are installing Ansible from pip because there's a bug in Ansible
Docker module in EPEL
sudo yum install -y python-pip
sudo pip install ansible
sudo yum install centos-release-scl qemu-kvm libvirt
sudo yum -y install sclo-vagrant1
sudo yum install python2-jenkins-job-builder

# start libvirtd
sudo systemctl start libvirtd; sudo systemctl enable libvirtd

# enable bash on vagrant scl
sudo scl enable sclo-vagrant1 bash


Deploy
=====

git clone https://github.com/rtnpro/centos-cccp-ansible
cd centos-cccp-ansible
vagrant plugin install vagrant-hostmanager
vagrant up --no-provision
vagrant provision


Configure Jenkins Job Builder
======================

Create file /etc/jenkins_jobs/jenkins_jobs.ini with content similar to:

[jenkins]
user=admin
password=admin
url=http://cccp-master.example.com:8080/


Push jobs to jenkins
===============

Clone the repos in the same directory:

git clone https://github.com/bamachrn/cccp-service.git
git clone https://github.com/kbsingh/cccp-index.git

Then do:

cd cccp-service/jenkinsbuilder
python cccp_index_reader.py ../../cccp-index/index.yml

And wait for the jobs for the projects in the index to be pushed to Jenkins.


Please share your feedback with us. Let us know if you have any query.

[1]: https://github.com/rtnpro/centos-cccp-ansible
[2]: https://github.com/rtnpro/centos-cccp-ansible/blob/master/Vagrantfile
[3]: https://gist.github.com/rtnpro/e903918b78ba57634b8890996739d0b7

Thanks,
rtnpro
-- 
Ratnadeep Debnath,
https://www.waartaa.com
GPG Fingerprint: 033C 8041 A0E9 CDBA 2E02  B785 2119 5486 F245 DFD6