This test project uses the following technologies:
- Java 21
- Spring Boot 3
- Spring Web
- junit5, mockito
- gradle
- jib
- junit5
-
Clone this repository.
-
Install Java 21, for example, using SDKMan:
sdk install java 21.0.2-open
- Build:
./geadlew build
- Local run:
./gradlew bootRun
- Build docker image with jib:
./gradlew jibDockerBuild
- Run docker image as a container:
docker run -p 8080:8080 random:0.0.1-SNAPSHOT
curl http://localhost:8080/random