Install librdkafka from source code

apk install librdkafka-dev success,but loading shared library
librdkafka.so.1 failed.

Change-Id: I3bf24002aab3d708d045704214a66f5f47863d5d
Task: 36048
Story: 2006317
This commit is contained in:
zhangjianweibj 2019-08-01 20:07:46 +08:00
parent a6843fdd3b
commit e9efa3be0e
1 changed files with 7 additions and 1 deletions

View File

@ -83,10 +83,16 @@ ONBUILD RUN \
# It will be default in Apline 3.10.
apk add --no-cache --virtual .build-librdkafka \
libressl2.7-libcrypto \
librdkafka-dev \
libressl2.7-libssl \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/main \
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/community && \
# Install librdkafka from source code.
apk add --no-cache curl bash && \
curl https://codeload.github.com/edenhill/librdkafka/tar.gz/v1.1.0 | tar xzf - -C /tmp/ && \
cd /tmp/librdkafka-1.1.0/ && \
./configure && \
make && \
make install && \
# Clone repository and checkout requested version.
# This many steps are needed to support gerrit patch sets.
mkdir -p /app && \