Integrating Jenkins Container with Tomcat Container
docker-compose up -d
Prepare you jenkins server and then tomcat server
Jenkins | Tomcat |
---|---|
* Maven Integration | * Create user with required access |
* GitHub Plugin | * Tomcat Should run on port 8080 |
* Create Credentials | |
* Project URL (git) |
For Installing Tomcat on Ubuntu-18.04
apt-get update && apt-get install -y tomcat9 tomcat9-docs tomcat9-examples tomcat9-admin
For Installing Jenkins on Ubuntu-18.04
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
Then add the following entry in your /etc/apt/sources.list:
deb https://pkg.jenkins.io/debian binary/ sudo apt-get update sudo apt-get install jenkins
Note: Make sure Java 8 or Java 11 installed