These are chat archives for arnaud-lb/php-rdkafka

7th
Mar 2017
Paul Dragoonis
@dragoonis
Mar 07 2017 14:29
Hey @edenhill that's me getting closer to the delivery of this big data migration project :)
Prod is using docker with AlpineOS - I assume there isn't any alpine packages for your C lib ? :)
Paul Dragoonis
@dragoonis
Mar 07 2017 15:08
I've put this together
# Kafka Installation
RUN apk update && apk add make g++ python autoconf php5-dev && \
    # librdkafka
    cd /tmp && git clone --depth 1 --branch v0.9.4 https://github.com/edenhill/librdkafka.git && \
    cd /tmp/librdkafka && ./configure && make && make install && rm -rf /tmp/librdkafka && \

    # php-rdkafka
    cd /tmp && git clone --depth 1 --branch 3.0.1 https://github.com/arnaud-lb/php-rdkafka.git && \
    cd /tmp/php-rdkafka && phpize && ./configure && make all -j 5 && make install && \
    echo "extension=rdkafka.so" > /etc/php5/conf.d/rdkafka.ini && \
    rm -rf /tmp/php-rdkafka
Magnus Edenhill
@edenhill
Mar 07 2017 15:12
you can probably use 'set -e' at the start of that thing to avoid all the &&
Paul Dragoonis
@dragoonis
Mar 07 2017 15:22
it's a Dockerfile, not a bash script
If I moved it to a bash script, then indeed I could use -e :) but i'm lazy