A Docker image to create Spring Boot based containers in a jiffy.
Although running Spring Boot executable jars under Docker is quite straightforward this image provides with some nice features:
root/dev/urandom instead of /dev/random to fix startup issuesCreating a derived image is a two step process:
DockerfileCreate a minimal Dockerfile for instance:
FROM ggtools/spring-boot
MAINTAINER Your Name <[email protected]>
The base Dockerfile expects the executable jar to be named spring-boot-app.jar and to be located under the spring-boot-app/lib directory. The second step would be to create the directory and copy the executable jar into it.
In addition to the jar the image will also include any file located under the spring-boot-app/config directory. According to Spring Boot documentation on Externalized Configuration the configuration files located in this directory will take precedence over the configuration files in the application jar.
The default behavior can be customized using environment variables:
SB_APP_JAR to change the name of the application jar (default spring-boot-app.jar)SB_ACTIVE_PROFILES to select the active profiles (default docker)The image is distributed under the MIT license.
Content type
Image
Digest
sha256:2b39d85c6…
Size
50.5 MB
Last updated
over 8 years ago
docker pull ggtools/docker-springboot