Starter Spring Boot
Groovy Java Ruby
Latest commit 93ffa50 Jun 13, 2014 @aglover added readme link
Permalink
Failed to load latest commit information.
etc/vagrant added vagrant Jun 12, 2014
gradle/wrapper forced jar Jun 12, 2014
src/main added vagrant Jun 12, 2014
.gitignore added vagrant Jun 12, 2014
README.md added readme link Jun 13, 2014
build.gradle revert Jun 13, 2014
gradlew init commit Jun 12, 2014
gradlew.bat init commit Jun 12, 2014

README.md

Galoshe

Your Dockered Spring Boot example, baby.

For more details, see my blog article entitled Docker Containers With Gradle in 4 Steps.

Running w/o Docker

$ ./gradlew bootRun

Go to localhost:8080 and you'll see a simple message.

Docker'ing it

You'll need to have the docker binary locally w/this particular Gradle Docker plugin.

$ ./gradlew distDocker

This will create a Docker image called aglover/galoshe -- type docker ps after this command finishes and you'll see it.

docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
aglover/galoshe     latest              332e163221bc        3 minutes ago       1.042 GB
dockerfile/java     latest              f9793c257930        3 weeks ago         1.026 GB

Firing it up is as easy as:

$ docker run <image id>

Pretty easy, yeah?