-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
other buildpacks inheritance and multiarchitecture compatibility #3
Comments
Just adding the If the I'm not opposed to making a multi-architecture buildpack for Am I understanding your issue properly? |
The datadog builpack ist just adding a jar to the native image composite buildpack, so I assume it‘s out of the box multiarch. The jar is used as Java agent for instrumentation and the Graal support in DD buildpack is at the moment being pushed upstream. I really would like to native image musl compilation with datadog instrumentation on arm64 (edge device). Question is if you will inherit the child’s buildpack from native image composite as well |
My understanding is that native images don't support java agents, because there is no JVM to attach to. Also, I've not been able to get musl compilations working with the buildpack yet. It's on my list, but further down the list, after the ARM64 support upstreamed to Paketo. If the datadog is using the exposed actuators, it may work properly. Can you share a link to the datadog buildpack that you are using? |
Hi @dashaun, I am Bruce from @DataDog
GraalVM I recently added the support for native build to the paketo datadog buildpack in this PR paketo-buildpacks/datadog#149 if you would have a look to. |
Hi Dashaun, Regarding the question you asked earlier, Bruce mentioned that it should work as long as your buildpack inherits what he pushed upstream. In addition, the musl compilation worked for me using the maven native profile settings, but I had to run my musl setup script before executing the Maven or Gradle build with a native profile. It might be helpful for you to add a "musl switch" based script execution to your builder image that applies the snippet in that case.
I am currently using a self-built approach to deliver a zip package for Spring Boot on an AWS Lambda custom x86 runtime compiled with musl. Now, I also want to use the AWS arm-based architecture stack and deliver to a serverless IoT device in the same way. I am also hoping that aws also will finally update their base image (eg used on lambda) to some kernel /image which provides current glibc versions. I don't have found out how i could base by cfg on e.g. on bionic even in your repo i found some bionic image hint. Thank you for your contribution to arm so far. I was really happy to have found it, and I can soon start using it in buildpacks without all the obstacles on the build environment setup that my colleagues don't like either. |
That is great information! Would either of you be available to "pair program" on this? My day today (March 10) is pretty flexible. After today, I'll be traveling for 2 weeks, so I won't have much time to work in it. |
I read the other threads. As soon as your PR is merged, I'll create another buildpack, and we can test things out! |
Hint: You can use Liberica as used by spring buildpacks but there is an issue with it when you want to create a musl based (instead of glibc) full static image- see oracle/graal#4645. In that case rather use 22.3.r17-grl or 22.3.r19-grl |
Hi 👋 A quick follow-up. |
@dashaun Any update on the buildpack ? |
I've pushed out a new version pulling all of the latest from upstream! I don't have a way to validate the DataDog buildpack. Could one of you take it for a spin and report back? |
Are in general buildpacks inherited from spring-boot-maven-plugin and "detect" by default as before?
That would also mean if another dep "gcr.io/paketo-buildpacks/datadog" gets added to one being already registered as default like "gcr.io/paketo-buildpacks/java-native-image) it will be active as well.
So i can expect takeover of the datadog support implicitly as soon as it gets part of the native-image buildpack with your builder as well?
See paketo-buildpacks/datadog#149
How to guarantee that those buildpacks available work well with your custom builder ?
The text was updated successfully, but these errors were encountered: