GithubHelp home page GithubHelp logo

spring-native-image-aot-inst-poc's Introduction

Spring native & AOT instrumentation (POC)

The goal of this project is to try to add ahead-of-time (AOT) instrumentation to a Spring native image.

An alternative approach with programmatic instrumentation is available here.

To test this project

We are going to apply the following transformations:

Spring Boot jar with Spring AOT processing => AOT instrumentation => native image

First, clone this project.

Execute mvn install.

After, you need a Spring Boot 3 application. You can use this one in this project.

Execute cd spring-boot-app-demo and then mvn -Pnative native:compile, that will generate a jar with the Spring ahead-of-time processing applied.

Then, apply ahead-of-time instrumentation. execute this test.

Finally, transform the jar containing the Spring AOT processing and the AOT instrumentation to a native image:

pack build --builder paketobuildpacks/builder:tiny --path target/spring-boot-3-app-instrumented.jar --env BP_NATIVE_IMAGE=true image-native-aot

It will fail with the unlinkat /workspace/META-INF/maven: permission denied error. To do to make it works: add the drwxr-xr-x Unix file attribute for JAR directories and -rw-r--r-- for the JAR files.

spring-native-image-aot-inst-poc's People

Contributors

jeanbisutti avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.