To execute this project, the following is required:
- Docker installed on your system. You can download it from Docker's website
- 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. 🐳
- Clone this repository to ur local machine:
git clone https://github.com/codediaz/maven-java-app.git
- Navigate to the project directory:
cd maven-java-app
- Build the simple Docker image
docker build -t java-app -f Dockerfile .
- Run the simple Docker container
docker run --name java-app -p 8080:8080 java-app
- Build the MultiStage Docker image
docker build -t java-multi-app -f Dockerfile.multi .
- Run the MultiStage Docker container
docker run --name java-app-multi -p 8081:8080 java-multi-app
- Access the simple application in ur console
curl localhost:8080/actuator/health
- Access the multiStage application in ur console
curl localhost:8081/actuator/health