Creating Container Images for Spring Boot Applications: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:
./gradlew bootBuildImage --imageName=ovidiufeodorov/smoke
./gradlew bootBuildImage --imageName=ovidiufeodorov/smoke
</syntaxhighlight>
</syntaxhighlight>
For more control over various elements of the container build, read on.
=<tt>com.palantir.docker</tt> Gradle Plugin=
For more control over various elements of the container image being built, see: {{Internal|Com.palantir.docker#Overview|<tt>com.palantir.docker</tt> Gradle Plugin}}


=Organizatorium=
=Organizatorium=

Revision as of 05:31, 8 February 2022

External

Internal

Overview

This article describes the steps required to create a Docker container image for a Spring Bool application. It assumes that required steps from Writing a REST Service with Spring Boot have been performed already.

Spring Boot Gradle Task

A Docker image can be created with:

./gradlew bootBuildImage --imageName=ovidiufeodorov/smoke

com.palantir.docker Gradle Plugin

For more control over various elements of the container image being built, see:

com.palantir.docker Gradle Plugin

Organizatorium