sgerrand / alpine-pkg-glibc

A glibc compatibility layer package for Alpine Linux
2.05k stars 280 forks source link

Compatibility with Kafka #144

Closed dmtrrk closed 2 months ago

dmtrrk commented 3 years ago

I have 2 services that are running in the Alpine docker container.

  1. GCP SDK with gRPC library
  2. Confluent Kafka .net client

I'm using Alpine v3.10 Kafka client v1.2.2

In my container I'm adding glibc as below:

RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
    && wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.32-r0/glibc-2.32-r0.apk \
    && apk add glibc-2.32-r0.apk

Whenever I add alpine-pkg-glibc service 1 works well, but 2 fails with segfault. And vice versa. Is there any chance to make it working for both services?

melbertd commented 3 years ago

Hello,

I also have this issue. are you able to resolve this?

Thanks!

sgerrand commented 2 months ago

I'm so sorry for not responding to this bug report sooner. Without an example Dockerfile it's hard to know what's causing these segmentation faults. If you're still experiencing this problem then would you please reply with an example Dockerfile which reproduces the error.

I suggest that you and any other future readers in a situation like this consider running containers based on Docker images that are based on a GNU C library, rather than trying to run binaries which weren't compiled for musl inside Alpine Linux. As an example, Debian currently provide "slim" Docker images for each of their releases which are ~ 30 MB compressed.