Skip to content

seaninryan/test-spring-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Source https://spring.io/guides/gs/spring-boot-docker/

To build it from directory /src/main/docker (uses symlink)

docker build -t test-spring-boot

To run it

docker run -p 8080:8080 -d test-spring-boot

To run it with a profile

docker run -p 8080:8080 -d -e "SPRING_PROFILES_ACTIVE=PRO" e52768fd064f

To look at the log output

docker logs <container-id>

To find the ip address it's running on (mac only)

docker-machine ls

Build docker image with maven

mvn package docker:build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages