Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maven java app ☕

⚙️ Requirements

To execute this project, the following is required:

🌱 Features

  • Use Spring Boot to simplify the development and deployment of web apps. ✨
  • The project is configured for easily compilation and Docker image creation for deployment. 🐳

👻 How to use

  1. Clone this repository to ur local machine:
git clone https://github.com/codediaz/maven-java-app.git
  1. Navigate to the project directory:
cd maven-java-app
  1. Build the simple Docker image
docker build -t java-app -f Dockerfile .
  1. Run the simple Docker container
docker run --name java-app -p 8080:8080 java-app
  1. Build the MultiStage Docker image
docker build -t java-multi-app -f Dockerfile.multi .
  1. Run the MultiStage Docker container
docker run --name java-app-multi -p 8081:8080 java-multi-app

🧩 Accesing the Applications

  • Access the simple application in ur console
curl localhost:8080/actuator/health
  • Access the multiStage application in ur console
curl localhost:8081/actuator/health

About

Beginner-friendly Java project, integrating Maven for simple build management and Docker for easy deployment. Perfect for newcomers to Java, it provides a basic yet robust foundation for exploring containerized Java applications.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages