Support building on Alpine Linux musl #620
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Description of changes:
NULL_STACKTRACE
)#include <execinfo.h>
under ifdef#include <execinfo.h>
from null_backtraceBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Additional context:
I'm working on Apache Pulsar's Pulsar IO Kinesis Sink connector. In Pulsar, we have applied the glibc workaround in an Alpine image and have run into stability issues. To address this, I'm fixing this by compiling the
kinesis_producer
binary and embedding this in Pulsar's docker image which is used to run Pulsar IO connectors. Since the Amazon Kinesis Producer library has a way to configure to use a customkinesis_producer
binary, that's how I'm planning to use it in Pulsar. It would be useful for other Alpine users if AWS could provide Alpine support directly out-of-the-box for the amazon-kinesis-producer library. I haven't yet fully tested the Alpine Linux support with the compiled binary since that's currently work-in-progress. I'll update this PR if I find out other incompatibilities in compilation. I'll also share more details later how to compile the binary in Docker with Alpine Linux.