Skip to content

Files and scripts for deploying a Java web app on Tomcat using Docker and Ansible.

Notifications You must be signed in to change notification settings

aruntheja-2/deploy-artifacts-on-tomcat-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy Artifacts on Tomcat Server

Diagram

This repository contains a set of files and scripts to deploy a Java web application on a Tomcat server using Docker and Ansible. The application is comprised of several components:

  • webapp: a Java Servlet application that serves a simple "Hello World" HTML page.
  • server: a Java library that provides a simple greeting message.

Repository Files

The repository includes the following files:

  • Dockerfile: defines the Docker image for the web application.
  • pom.xml: the Maven build file for the web application.
  • regapp-deploy.yml: an Ansible playbook file that deploys the web application on a Tomcat server using Docker.
  • regapp-service.yml: an Ansible playbook file that creates a LoadBalancer service for the web application.

Usage

  1. Clone the repository:
$ git clone https://github.com/SofiaNeogalaxy/deploy-artifacts-on-tomcat-server.git
  1. Build the Docker image:
$ cd deploy-artifacts-on-tomcat-server
$ docker build -t regapp:1.0 .
  1. Deploy the application to a Tomcat server using Ansible:
$ ansible-playbook regapp-deploy.yml
$ ansible-playbook regapp-service.yml
  1. Access the application in a web browser:

Note the IP address and port of the LoadBalancer service, and access the application at http://<ip>:<port>.

About

Files and scripts for deploying a Java web app on Tomcat using Docker and Ansible.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 96.3%
  • Dockerfile 3.7%