Skip to content

aniketgh5/Hotstar_Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hotstar Application (Java WAR + Docker)

This project is a Java Web Application (WAR) built using Maven and deployed on Apache Tomcat.
The application is containerized using Docker and can be run locally with port exposure.


πŸ› οΈ Tech Stack

  • Java (JDK 17)
  • Maven
  • Apache Tomcat 9
  • Docker
  • Linux (Ubuntu / WSL)

πŸ“ Project Structure

Hotstar-App/ β”œβ”€β”€ src/ β”‚ └── main/ β”‚ β”œβ”€β”€ java/ β”‚ └── webapp/ β”œβ”€β”€ target/ β”‚ └── myapp.war β”œβ”€β”€ Dockerfile β”œβ”€β”€ pom.xml └── README.md

🧱 Build the Application (WAR) mvn clean install On successful build, the WAR file will be generated at: target/myapp.war

🐳 Dockerfile Used FROM tomcat:9.0-jdk17 RUN rm -rf /usr/local/tomcat/webapps/* COPY target/myapp.war /usr/local/tomcat/webapps/ROOT.war EXPOSE 8080 CMD ["catalina.sh", "run"]

πŸ“¦ Build Docker Image docker build -t hotstar:v1.0 . Verify docker images

▢️ Run Docker Container

docker run -itd
--name hotstarcontainer
-p 8080:8080
hotstar:v1.0

Check running container: docker ps

🌐 Access Application

http://localhost:8080

🧹 Stop & Remove Container

docker stop hotstarcontainer docker rm hotstarcontainer

πŸ—‘οΈ Remove Docker Image (Optional)

docker rmi hotstar:v1.0

About

A Java web application packaged as a WAR using Maven and deployed on Apache Tomcat 9, containerized with Docker for consistent local and cloud-ready execution.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors