librdkafka fails to load on 2.1-aspnetcore-runtime-alpine
See original GitHub issueDescription
using container 2.1-aspnetcore-runtime works, 2.1-aspnetcore-runtime-alpine fails
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.DllNotFoundException: Failed to load the librdkafka native library.
submission-term-dd1.1.vclyzsukdl49@tcwsddu1 at Confluent.Kafka.Impl.LibRdKafka.Initialize(String userSpecifiedPath)
submission-term-dd1.1.vclyzsukdl49@tcwsddu1 at Confluent.Kafka.Producer…ctor(IEnumerable1 config, Boolean manualPoll, Boolean disableDeliveryReports) submission-term-dd1.1.vclyzsukdl49@tcwsddu1 at Confluent.Kafka.Producer
2…ctor(IEnumerable1 config, ISerializer
1 keySerializer, ISerializer`1 valueSerializer, Boolean manualPoll, Boolean disableDeliveryReports)
How to reproduce
Create a ASP.Net Core 2.1 project with Confluent.Kafka 0.11.5. Include the standard producer. Build the project and deploy in Docker using the official Microsoft Alpine image.
Using the official (stretch) container works fine.
Checklist
Please provide the following information:
- [x ] Confluent.Kafka nuget version: 0.11.5
- Apache Kafka version:
- Client configuration:
- [x ] Operating system: Alpine Linux container
- Provide logs (with “debug” : “…” as necessary in configuration)
- Provide broker log excerpts
- Critical issue
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:36 (12 by maintainers)
Top GitHub Comments
The official Alpine build is a good start but what I need is support in the NuGet package as @mhowlett mentioned. We’re developing on Macs and PCs, and deploying to Docker.
The Alpine image is significantly smaller than the default image (stretch) so it is a big win if we can use it.
thanks @darrenfurr . just wanted to note that we’re tracking this internally (off-the-shelf support for alpine that is). It will be done after 1.0-RC1. i’m not sure if it’ll make into 1.0 (likely not), but likely 1.0.1.