amatas / vagrant-jenkins-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vagrant Jenkins Tests

Installation

You will need Vagrant and Virtualbox installed on your system. Also you will need to clone this repository and get all the roles:

git clone https://github.com/amatas/vagrant-jenkins-test
cd vagrant-jenkins-test
ansible-galaxy install -r requirements.yml -p provisioning/roles/

The Vagranfile is also compatible with vagrant-libvirt

Steps recreated on this environment

By default the [Vagrantfile] will create 3 VMs, one master and two slaves. Each VM will use 1G of RAM, so at least 3G of free ram is required.

The following steps are performed when the VMs are provisioned:

On master:

  1. Setup Jenkins master service (ansible-jenkins-master)
  2. Configure Jenkins' users (ansible-jenkins-master)
  3. Configure Jenkins' credentials (ansible-jenkins-master)
  4. Download and install plugins (ansible-jenkins-master)
  5. Install Jenkins-job-builder and configure the API user (ansible-jenkins-master)
  6. Install a reverse proxy http://10.0.0.10/ (ansible-nginx-reverse)
  7. Install docker-registry (ansible-docker-registry)
  8. Register a Jenkins job

On slaves:

  1. Setup Jenkins node and register at the server
  2. Install docker daemon (ansible-docker)
  3. Install certificates to stablis TLS connection to the docker-registry

After provision you can access to the Jenkins Dashboard (u: admin, p: root) and trigger the build.

About