I am trying to create a docker image with my go application. The application (which was developed on MacOS) depends on
confluent-kafka-go which in turn depends on
librdkafka-dev which I install in the Docker image like so:
FROM golang:1.1 RUN apt-get update RUN apt-get -y install librdkafka-dev VOLUME /workspace WORKDIR /workspace/src/my/app/folder ENTRYPOINT ["/bin/sh", "-c"]
I am getting the following error:
my/app/folder/vendor/github.com/confluentinc/confluent-kafka-go/kafka ../folder/vendor/github.com/confluentinc/confluent-kafka-go/kafka/00version.go:44:2: error: #error "confluent-kafka-go requires librdkafka v0.11.5 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
As far as I understand the latest version is installed. How can I fix it?