paketo-buildpacks / libjvm

A library and helper applications that form the basis for building the different Paketo-style JVM-providing buildpacks
Apache License 2.0
18 stars 19 forks source link

Issue 360 debug ipv4 cat #366

Closed anthonydahanne closed 4 months ago

anthonydahanne commented 5 months ago

Another to fix #360, without opening a port

Summary

Use Cases

Checklist

linux-foundation-easycla[bot] commented 5 months ago

CLA Signed

The committers listed above are authorized under a signed CLA.

anthonydahanne commented 5 months ago

To verify it worked fine, I've been using a logalot version of this branch, that you can see for yourself in https://github.com/anthonydahanne/libjvm/releases/tag/v1.44.360-debugcat3

Create a test (composite) buildpack

Then, I built a bellsoft-liberica out of it, but to do so without publishing a new libjvm, I also relocated all modules to github.com/anthonydahanne/libjvm v1.44.360-debugcat3 . The steps involved some:

Then I built a java-lite composite buildpack, the steps involved some:

Test it out

First, I tested it with the samples/java/maven on a machine with IPv6, to check it was not switching to IPv4

Then, I tested it on a machine not providing IPv6 support (via tanzu / kpack though) and I got this startup:

Setting Active Processor Count to 4
cool, setting it to default, /sys/module/ipv6/parameters/disable
entering
value is 1
not enabled, exting false
IPv6 does not seem to be enabled in the container, configuring debug agent with 0.0.0.0
Debugging enabled on address 0.0.0.0:9005

That's about it!

Ready for review!