Running Jenkins inside a container
Jenkins can be installed as a service inside the following containers:
- Apache Geronimo 3.0
- Glassfish
- IBM WebSphere
- JBoss
- Jetty
- Jonas
- Liberty profile
- Tomcat
- WebLogic
In the current section, we will see how to install Jenkins on the Apache Tomcat server.
Installing Jenkins as a service on the Apache Tomcat server
Installing Jenkins as a service on the Apache Tomcat server is pretty simple. We can either choose to use Jenkins along with other services already present on the Apache Tomcat server, or we may use the Apache server solely for Jenkins.
Prerequisites
I assume that the Apache Tomcat server is installed on the machine where you intend to run Jenkins. In the following section, we will use the Apache Tomcat server 8.0. Nevertheless, Apache Tomcat server 5.0 or greater is sufficient to use Jenkins. A machine with 1 GB RAM is enough to start with. However, as the number of jobs and builds increase, so should the memory.
We also need Java running on the machine. In this...