Replies: 4 comments 3 replies
-
I don't know much about how you'd use this, but to get it installed in the web container you just need a .ddev/web-build/Dockerfile with the installation instructions on https://github.com/edenhill/librdkafka The below seems to work. Change amd64 to arm64 if you're on an arm64 machine. ARG BASE_IMAGE
FROM $BASE_IMAGE
RUN wget -qO - https://packages.confluent.io/deb/6.2/archive.key | sudo apt-key add -
RUN echo "deb [arch=amd64] https://packages.confluent.io/deb/6.2 stable main" >/etc/apt/sources.list.d/confluent.list
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests librdkafka-dev |
Beta Was this translation helpful? Give feedback.
-
You set the PHP version in ~/.ddev/config.yaml. |
Beta Was this translation helpful? Give feedback.
-
So all supported versions of PHP are installed inside the container. What is it you want to accomplish? |
Beta Was this translation helpful? Give feedback.
-
So the image is built (build time) long before the PHP version is selected (runtime). So I understand why you want an arg to tell you this, but if you want that you can accomplish the same thing using a post-start hook, but it will slow down every single |
Beta Was this translation helpful? Give feedback.
-
Hi,
i want to use an the kafka client (https://github.com/edenhill/librdkafka) in a ddev container as an extension.
Unfortunately, there is no ddev-contrib.
Is it possible to implement the extension?
Beste regards
3xc3ption
Beta Was this translation helpful? Give feedback.
All reactions