charlesdccti / restApp

This is just a template repo for Dockerizing a Maven Springboot Application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RestApp

This is just a template repo for Dockerizing a Maven Springboot Application.

Mouthful neh? Okay.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software

Need to know Java SE and what a Maven project is and some Springboot

Running project with Docker

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!

Built With

Contributing

Just fork, clone, crunch the code, commit, push and pull request :P

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • My Mom and Dad
  • Spring.io
  • Java
  • Maven
  • Docker
  • and others

About

This is just a template repo for Dockerizing a Maven Springboot Application.

License:MIT License


Languages

Language:Java 77.2%Language:Dockerfile 22.8%