This is just a template repo for Dockerizing a Maven Springboot Application.
Mouthful neh? Okay.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software
Need to know Java SE and what a Maven project is and some Springboot
Ok so you have loaded the application on the IDE, Great Job!
Now all you need to do is build the project jar file by using the mvnw command
./mvnw package
After successful build (Phew ey...), You will find the jar file in the target
directory.
Now time to Docker this stuff. #HappyDance
We need to build the image by executing:
docker build -t springbootapp .
The -t <name>
just gives our image a name, relax
After Docker has build successfully, now we need to run the docker image when doing so it creates a container (meaning its running... gees I suck at explaining but I am trying ey)
So we run the docker image by executing:
docker run -t springbootapp
The application will start now you test in your browser by going to localhost:8080
Whorray you have a spring boot application running with Docker!
- Jet Brains IntelliJ - The IDE used
- Maven - Dependency Management
- Java
- Docker
- Spring Boot
Just fork, clone, crunch the code, commit, push and pull request :P
- William Maphanga - Initial work - UrbanSwati
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- My Mom and Dad
- Spring.io
- Java
- Maven
- Docker
- and others