JAGANNATHDEVOPS / docker-spring-boot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is it?

This source code is an Spring Boot web application).

Tested with

  • Docker 19.03
  • Ubuntu 19
  • Java 8 or Java 11
  • Spring Boot 2.2.4.RELEASE
  • Maven

For explanation, please visit this article - Docker and Spring Boot

How to run this?

$ git clone https://github.com/mkyong/docker-java
$ cd docker-spring-boot
$ mvn clean package
$ java -jar target/spring-boot-web.jar

  access http://localhost:8080

//dockerize

// create a docker image
$ sudo docker build -t spring-boot:1.0 .
// run it
$ sudo docker run -d -p 8080:8080 -t spring-boot:1.0

  access http://localhost:8080

About


Languages

Language:Smarty 82.6%Language:HTML 6.5%Language:Java 6.0%Language:Dockerfile 4.2%Language:CSS 0.7%