hey-johnnypark / docker-kafka-zookeeper

Docker image for Kafka (0.10.x - 0.11.x - 1.x, 2.x) message broker including Zookeeper
https://hub.docker.com/r/johnnypark/kafka-zookeeper/
53 stars 47 forks source link

Add gcompat to base image to fix missing ld-linux-x86-64.so.2 #4

Closed pmundt closed 3 years ago

pmundt commented 5 years ago

Testing with a simple producer/consumer client presently triggers:

UnsatisfiedLinkError: /tmp/snappy-1.1.4-libsnappyjava.so Error loading shared library ld-linux-x86-64.so.2: No such file or directory ...

Under alpine, ld-linux-x86-64.so.2 can be brought in either by libc6-compat or the more minimal gcompat. In this case, gcompat is used in the interest of keeping the container size to a minimum.

hey-johnnypark commented 4 years ago

Hi @pmundt ,

can you share with me how I can reproduce the error regarding the missing shared library?

Thanks!

jibwa commented 3 years ago

I experienced an issue which required my adding the gcompat library @pmundt used. In order to reproduce you need to configure a producer to use compression type 'snappy' protocol and produce a message to the queue. I confirmed the same problem and adding gcompat to the docker file solved it.

Screenshot from 2020-12-07 16-04-38 Screenshot from 2020-12-07 16-04-05

hey-johnnypark commented 3 years ago

@jibwa @pmundt

I could reproduce it and I merged the request. Also I pushed the change to the latest tag on Dockerhub (2.6.0/latest)

Thanks for contributing. 💪