BitNami Jenkins for VMware

Jenkins-installer Jenkins-buildstatus Jenkins-dashboard

Download PDF Manual

What is the BitNami Application Library for VMware

The BitNami Application Library for VMware is a collection of popular open source applications that are prepackaged as application blueprints and ready to use with VMware vFabric™ Application Director. The library includes wikis, content and document management systems, portals, development tools, customer relationship management (CRM) systems and many other types of applications. You can learn more about them at http://bitnami.com/vmware

BitNami’s library for VMware consists of BitNami’s application components within reusable blueprints using industry’s leading Cloud-enabled application provisioning solution, VMware vFabric™ Application Director. The product takes a model-driven open approach to drastically simplify and automate application deployment topologies of portable multi-tier applications in private, public and hybrid clouds. These application topologies are called application blueprints. With the joint integration of BitNami application packages with VMware vFabric™ Application Director, users can rapidly deploy and customize applications across clouds per their enterprise IT policies.

The BitNami Application Library hooks up to existing services like Apache and MySQL, making it easy to deploy and manage your favorite applications.

Supported Platforms

The BitNami Application Library currently supports the following OS platforms:

  • CentOS 5.6

Support for RHEL and Ubuntu is planned.

Introduction to Jenkins

Jenkins, previously known as Hudson, is an open source continuous integration server. Built with Java, it provides over 400 plugins to support building and testing virtually any project. It supports SCM tools including CVS, Subversion, Git, Mercurial, Perforce and Clearcase, and can execute Apache Ant and Apache Maven based projects as well as arbitrary shell scripts and Windows batch commands. It also can monitor executions of remote tasks.

You can learn more about Jenkins at (http://jenkins-ci.org/)

The following sections will explain how to launch and manage Jenkins with VMware vFabric™ Application Director.

Identifying BitNami Services

Go to "Administration" in the Catalog section. Then in "Tags" create a new tag for BitNami. This will make easier to identify the BitNami services later when creating new Blueprints.

  • Name: BitNami

  • Description: Deployment of web applications

BitNami Tag
Figure 1: BitNami Tag

Creating a BitNami Jenkins Service

Use an Application Director wizard to create a new service.

  • Service details:

Jenkins Service Details
Figure 2: Jenkins Service Details
  • Service properties:

Jenkins Service Properties
Figure 3: Jenkins Service Properties
Jenkins Service Scripts
Figure 4: Jenkins Service Scripts

Building Blueprints using the BitNami Jenkins Service

Once you have created the BitNami Jenkins service in your catalog, you can use it as a building block when you create your own Blueprints. To use BitNami Jenkins in your own BluePrints, complete the following steps:

  • Add an OS Template supported by the service.

  • Add the BitNami Jenkins service.

Jenkins Blueprint
Figure 5: Jenkins Blueprint

Launching BitNami Jenkins as a Blueprint

The BitNami Jenkins Blueprint provides a server specification that includes:

  • A ready to run version of Jenkins.

Blueprints make it easy to launch servers that share a well-defined, repeatable configuration. To launch a server based on a Blueprint, go to the Applications section in the vFabric UI and select one of the BitNami Jenkins Blueprints available in the system.

You need to specify a value for the jenkins_password property for the BitNami Jenkins service. This is the password that will be used to log into the application.

Optionally, you can specify the following parameters:

  • jenkins_user: The username that will be used to log in into the application. The default value is user.

  • jenkins_user_name: Full name for the Jenkins administrator user. The default value is User Name.

  • jenkins_mail: Jenkins administrator email address. The default value is mail@example.com.

Accessing your Jenkins application

Once you have launched BitNami Jenkins, you can view the details for the running machines in your deployment, including the IP of the server where Jenkins is running. Pointing your browser to http://<ip>:8080/jenkins will take you to the main screen of your application. You will be presented with a login screen:

Login Screen
Figure 6: Login Screen

You can now enter the username and password provided at launch time to access the application.

Filesystem Layout

The installation of all BitNami applications is standardized. This section provides an overview of where each component is located in the event that you need to log in to your server, which you can do using the VMware console.

The standard location for the BitNami Library Application files is under /opt/bitnami. The following top-level folders are available:

  • apache-tomcat/: Contains configuration files related to Tomcat. Tomcat binaries and libraries are bundled with BitNami for VMware deployments.

  • apache-tomcat/webapps/jenkins: Web files for BitNami Jenkins.

  • scripts/: Control scripts internal to BitNami.

  • apps/: The directory containing the BitNami applications that have been installed.

And, inside apps/jenkins folder:

  • You will find the application files for BitNami Jenkins under apps/jenkins/.

At the top level of the installation you will find the following additional files:

  • properties.ini: This file is readable only for the user that the installation was performed as. It includes information related to installation paths and configuration settings for the installed applications and associated services.

  • ctlscript.sh: Management script that allows you to start / stop different services. It provides a consistent interface across operating systems and services. You can find more information by typing /opt/bitnami/ctlscript.sh restart

The reason that all configuration and application files are located inside /opt/bitnami is to remain consistent with other BitNami application packages such as native installers and VMs that can be downloaded from (http://bitnami.com). Maintaining a common filesystem layout across operating systems and delivery mechanisms helps in many scenarios, such as moving from local laptop development environment to a vCloud production environment.

Additional resources

You can find additional information about BitNami Applications for VMware at http://bitnami.com/vmware

The BitNami VMware library is part of the BitNami platform. If you are an enterprise customer or service provider and are interested in running BitNami applications on your infrastructure, please contact us.