This small project represents a simple Spring Reactive Web Application, that gets built into a JAR and deployed on a JDK15 Docker image.
This is the Docker image used: openjdk:15-jdk.
Compile the code and build the Docker image:
gradle clean build prepareForDocker generateDockerfile docker
Start a Docker container from the image:
gradle dockerRun
Stop the container:
gradle dockerStop
Use an alias to rebuild the project, recreate the Docker image and start the container.
alias appgo='gradle clean build prepareForDocker generateDockerfile docker dockerRun'
Build the image:
gradle bootBuildImage --imageName=simple-app-image
Run the image using Docker:
docker run -p 8080:8080 -t simple-app-image
Stop the app by using Ctrl+C
For further reference, please consider the following sections:
These additional references should also help you:
-
[Gradle Build Scans – insights for your project’s build](https://scans.gradle.com#gradle)