Starter Spring Boot
Groovy Java Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
etc/vagrant
gradle/wrapper
src/main
.gitignore
README.md
build.gradle
gradlew
gradlew.bat

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?