node-rdkafka
node-rdkafka copied to clipboard
Docker Alpine + Kerberos
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 .
You should install cyrus-sasl-gssapiv2
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
https://github.com/confluentinc/librdkafka/wiki/Using-SASL-with-librdkafka https://github.com/Blizzard/node-rdkafka/issues/528
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.