This repository has been archived by the owner on Jul 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Coax actuator sample into a native image
- Loading branch information
Showing
10 changed files
with
1,825 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...native-image/org.springframework.experimental/spring-init-library/native-image.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
Args=--initialize-at-build-time\=org.springframework.boot.autoconfigure.web.reactive.RouterFunctionAutoConfigurationInitializer,\ | ||
org.springframework.boot.autoconfigure.web.servlet.RouterFunctionAutoConfigurationInitializer | ||
org.springframework.boot.autoconfigure.web.servlet.RouterFunctionAutoConfigurationInitializer,\ | ||
org.springframework.boot.actuate.autoconfigure.web.servlet.FunctionalServletActuatorEndpointAutoConfigurationInitializer,\ | ||
org.springframework.boot.actuate.autoconfigure.web.reactive.FunctionalReactiveActuatorEndpointAutoConfigurationInitializer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM springci/spring-graalvm-native:master-java8 | ||
|
||
ARG USER | ||
ARG USER_ID | ||
ARG USER_GID | ||
|
||
RUN (groupadd --gid "${USER_GID}" "${USER}" || echo "No groupadd needed") && \ | ||
useradd \ | ||
--uid ${USER_ID} \ | ||
--gid ${USER_GID} \ | ||
--create-home \ | ||
--shell /bin/bash \ | ||
${USER} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"name": "Java", | ||
"dockerFile": "Dockerfile", | ||
"build": { | ||
"args": { | ||
"USER": "${env:USER}", | ||
"USER_ID": 1000, // VSCode adjusts the IDs when it builds | ||
"USER_GID": 1000 | ||
} | ||
}, | ||
"runArgs": [ | ||
"--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined", | ||
|
||
"--mount", "type=bind,source=${env:HOME}/.ssh,target=${env:HOME}/.ssh", | ||
"--mount", "type=bind,source=${env:HOME}/.m2,target=${env:HOME}/.m2" | ||
], | ||
"remoteUser": "${env:USER}", | ||
|
||
// Use 'settings' to set *default* container specific settings.json values on container create. | ||
// You can edit these settings after create using File > Preferences > Settings > Remote. | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"remote.extensionKind": { | ||
"ms-azuretools.vscode-docker": "workspace" | ||
} | ||
}, | ||
|
||
// Uncomment the next line if you want to publish any ports. Or use the Remote Explorer to open | ||
// up ports in a running container. | ||
// "appPort": [8080], | ||
|
||
// Uncomment the next line to run commands after the container is created. | ||
// "postCreateCommand": "java -version", | ||
|
||
// Add the IDs of extensions you want installed when the container is created in the array below. | ||
"extensions": [ | ||
"vscjava.vscode-java-pack", | ||
"ms-vscode.cpptools" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"java.configuration.updateBuildConfiguration": "interactive" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
samples/actuator/src/main/resources/META-INF/native-image/reflect-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[ | ||
{ | ||
"name":"com.fasterxml.jackson.core.JsonGenerator" | ||
}, | ||
{ | ||
"name":"com.fasterxml.jackson.databind.ObjectMapper" | ||
}, | ||
{ | ||
"name":"com.fasterxml.jackson.databind.deser.Deserializers[]" | ||
}, | ||
{ | ||
"name":"com.fasterxml.jackson.databind.deser.KeyDeserializers[]" | ||
}, | ||
{ | ||
"name":"com.fasterxml.jackson.databind.deser.ValueInstantiators[]" | ||
}, | ||
{ | ||
"name":"com.fasterxml.jackson.databind.ser.Serializers[]" | ||
}, | ||
{ | ||
"name":"org.springframework.boot.actuate.endpoint.web.Link", | ||
"allDeclaredFields":true, | ||
"allDeclaredMethods":true, | ||
"allDeclaredConstructors":true | ||
}, | ||
{ | ||
"name":"org.springframework.boot.actuate.health.CompositeHealth", | ||
"allDeclaredFields":true, | ||
"allDeclaredMethods":true | ||
}, | ||
{ | ||
"name":"org.springframework.boot.actuate.health.Health", | ||
"allDeclaredFields":true, | ||
"allDeclaredMethods":true, | ||
"allDeclaredConstructors":true | ||
}, | ||
{ | ||
"name":"org.springframework.boot.actuate.health.HealthComponent", | ||
"allDeclaredFields":true, | ||
"allDeclaredMethods":true, | ||
"allDeclaredConstructors":true | ||
}, | ||
{ | ||
"name":"org.springframework.boot.actuate.health.Status", | ||
"allDeclaredFields":true, | ||
"allDeclaredMethods":true, | ||
"allDeclaredConstructors":true | ||
}, | ||
{ | ||
"name":"org.springframework.boot.actuate.health.SystemHealth", | ||
"allDeclaredFields":true, | ||
"allDeclaredMethods":true, | ||
"allDeclaredConstructors":true | ||
} | ||
] |
Oops, something went wrong.