Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 45f723d

Browse files
committed
Use Maven plugin and Paketo buildpack in actuator-webflux sample
Closes gh-165
1 parent 590ceb7 commit 45f723d

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
# actuator-webflux
1+
Spring Boot project with Spring WebFlux and Spring Boot actuators.
22

3+
To build and run the native application packaged in a lightweight container:
4+
```
5+
./gradlew bootBuildImage
6+
docker-compose up
7+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: '3.1'
2+
services:
3+
actuator-webflux:
4+
image: actuator-webflux:0.0.1-SNAPSHOT
5+
ports:
6+
- "8080:8080"

spring-graalvm-native-samples/actuator-webflux/pom.xml

+8
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@
5656
<plugin>
5757
<groupId>org.springframework.boot</groupId>
5858
<artifactId>spring-boot-maven-plugin</artifactId>
59+
<configuration>
60+
<image>
61+
<builder>nebhale/native-image-builder:defer-to-application</builder>
62+
<env>
63+
<BP_BOOT_NATIVE_IMAGE>1</BP_BOOT_NATIVE_IMAGE>
64+
</env>
65+
</image>
66+
</configuration>
5967
</plugin>
6068
</plugins>
6169
</build>

0 commit comments

Comments
 (0)