eclipsesource / eclipsesource/J2V8

Alpine Linux compatibility (musl vs glibc)

Open
#252 2 comments 6 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.6k
Forks
387
PR merge metrics
No merged PRs in 30d

Description

Hi,

We recently started replacing Nashorn components in our software with a J2V8 integration. While this all works very well on our development machines, it initially failed on our test server. The reason was, that we containerize our applications with Docker for deployment, and are using no "regular" Linux system but Alpine Linux as an image.

The special thing about Alpine is, that it uses a different C standard lib - musl - instead of glibc. This in turn essentially means that everything has to be recompiled to work with it, as you can't mix the two.

So, after some fiddling around we came up with a [custom docker image](https://github.com/tarent/openjdk-alpine-j2v8) (link also contains some more intel on the problem at hand), which contains a musl compiled version of J2V8s binding file (note we are using the "old" building technique, since your current approach is not stable-released yet) along a prebuild OpenJDK.

While this works for us (and probably for others - thats why we released it publicly) the question remains if it is possible for J2V8 to provide musl support itself, and even if it would be reasonable to do so.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.