Blizzard / node-rdkafka

Node.js bindings for librdkafka
MIT License
2.1k stars 391 forks source link

Docker Alpine + Kerberos #980

Open rajeshpatel1993 opened 1 year ago

rajeshpatel1993 commented 1 year ago

I am using this Docker file

FROM node:14-alpine

RUN apk --no-cache add \
      bash \
      g++ \
      ca-certificates \
      lz4-dev \
      musl-dev \
      cyrus-sasl-dev \
      openssl-dev \
      make \
      python3

RUN apk add --no-cache --virtual .build-deps gcc zlib-dev libc-dev bsd-compat-headers py-setuptools bash
ENV KRB5_CONFIG=/usr/local/app/kafkaFiles/svc-bd-nodatomb-dev/krb5.conf
# Create app directory
RUN mkdir -p /usr/local/app

# Move to the app directory
WORKDIR /usr/local/app

COPY . /usr/local/app

RUN npm install
CMD [ "node", "index.js" ]

I am getting this issue Cyrus/libsasl2 is missing a GSSAPI module: make sure the libsasl2-modules-gssapi-mit or cyrus-sasl-gssapi packages are installed .

giovanni-bertoncelli commented 1 year ago

You should install cyrus-sasl-gssapiv2

dileep006 commented 1 year ago

Were you able to connect Kafaka brokers from Node js applictaion using SASL_GSSAPI? If yes , please share the details , we are struggling to get connect from Node js

giovanni-bertoncelli commented 1 year ago

https://github.com/confluentinc/librdkafka/wiki/Using-SASL-with-librdkafka https://github.com/Blizzard/node-rdkafka/issues/528

denzuko commented 6 months ago

missing a GSSAPI module: make sure the ...

The error is directly telling one what to do. Alpine (just as most linux distros) has a package management system. Alpine's is called apk. With this one can type apk search cyrus-sasl-gssapi and find the exact package one needs to add.

One may refer to the fine wiki and pkg repos for more details.