Creating Container Images for Spring Boot Applications: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
=Overview= | =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#Overview|Writing a REST Service with Spring Boot]] have been performed already. | 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#Overview|Writing a REST Service with Spring Boot]] have been performed already. | ||
=Quick | =The Quick Way Out= | ||
A Docker image can be created with: | A Docker image can be created with: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
./gradlew bootBuildImage --imageName=ovidiufeodorov/smoke | ./gradlew bootBuildImage --imageName=ovidiufeodorov/smoke | ||
</syntaxhighlight> | </syntaxhighlight> | ||
For more control over various elements of the container build, read on. | |||
=Organizatorium= | =Organizatorium= |
Revision as of 02:04, 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.
The Quick Way Out
A Docker image can be created with:
./gradlew bootBuildImage --imageName=ovidiufeodorov/smoke
For more control over various elements of the container build, read on.