Creating Container Images for Spring Boot Applications: Difference between revisions
Jump to navigation
Jump to search
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | |||
* https://spring.io/guides/topicals/spring-boot-docker/ | |||
=Internal= | =Internal= | ||
* [[Spring_Boot#Subjects|Spring Boot]] | * [[Spring_Boot#Subjects|Spring Boot]] | ||
=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. | ||
=Spring Boot Gradle Task= | |||
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> | ||
=<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= | |||
<font color=darkkhaki> | |||
TO PROCESS: | |||
* https://spring.io/guides/gs/spring-boot-docker/ | * https://spring.io/guides/gs/spring-boot-docker/ | ||
* https://spring.io/blog/2020/01/27/creating-docker-images-with-spring-boot-2-3-0-m1 | * https://spring.io/blog/2020/01/27/creating-docker-images-with-spring-boot-2-3-0-m1 | ||
* https://www.baeldung.com/spring-boot-docker-images | * https://www.baeldung.com/spring-boot-docker-images | ||
* https://www.baeldung.com/dockerizing-spring-boot-application | * https://www.baeldung.com/dockerizing-spring-boot-application | ||
</font> |
Latest 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:
Organizatorium
TO PROCESS:
- https://spring.io/guides/gs/spring-boot-docker/
- https://spring.io/blog/2020/01/27/creating-docker-images-with-spring-boot-2-3-0-m1
- https://www.baeldung.com/spring-boot-docker-images
- https://www.baeldung.com/dockerizing-spring-boot-application