Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.28 KB

README.md

File metadata and controls

30 lines (20 loc) · 1.28 KB

Spring Doge - Such Boot!

cf push -p target/demo-0.0.1-SNAPSHOT.jar  -b  https://github.com/cloudfoundry/java-buildpack.git  doge

http://www.java-allandsundry.com/2014/08/deploying-spring-boot-application-to.html

Interesting introduction to deploying Spring Boot applications using Spring Cloud https://gist.github.com/relaxdiego/7539911

https://github.com/pivotal-cf/java-8-buildpack/blob/master/docs/example-java_main.md

Building and running with Docker

You can use STS or a locally installation of maven to build spring-doge. However, if you need to build that on a new machine where you don't have all your development environment setup, you can build it with the maven Docker container.

docker run -v ~/.m2:/root/.m2 -v "$PWD":/usr/src -w /usr/src maven:3-jdk-8 mvn install

This will create the spring-doge jar file in target. Then, you can build a container for the app and run the app and a Mongodb database in containers with the following commands:

docker build -t chanezon/spring-doge .
docker-compose up

Change chanezon to your docker hub username (change it also in the docker-compose.yml file) if you want to push a modification to this image to your repository in Docker hub.