xerial / snappy-java

Snappy compressor/decompressor for Java
Apache License 2.0
1.02k stars 232 forks source link

Linux x86_64 builds for musl libc #239

Open marshallpierce opened 4 years ago

marshallpierce commented 4 years ago

Is there any interest in shipping a libsnappyjava.so for musl so it can be used on Alpine, etc? The dockerfile needed to build is trivial:

FROM alpine:3.10

RUN apk add make g++ perl bash

WORKDIR /work

That, plus a little makefile prodding, is enough to end up with a Linux/x86_64-musl/libsnappy.so.

However, there are multiple ways of approaching how to select this .so in the jar at runtime. Perhaps the most straightforward would be to add an override system property that chooses the path in the jar specifically, ignoring OS detection. Thoughts?

lbergelson commented 4 years ago

I would also be interested in running something with a snappy dependency on alpine as well. It would be great it if worked out of the box.

xerial commented 4 years ago

Enabling pure-java mode would help for supporting alpine https://github.com/xerial/snappy-java#using-pure-java-snappy-implementation. This is available since 1.1.7.6

coderzc commented 1 month ago

Is there some way we can make snappy-java run on Alpine now? since pure-java has been removed.