Browse Source

ZOOKEEPER-4055: Dockerfile can't build Zookeeper C client library

https://issues.apache.org/jira/browse/ZOOKEEPER-4055

This PR would fix the build by installing `pkg-config` and enabling `PKG_CHECK_MODULES`.
https://github.com/apache/zookeeper/blob/4e82a8be889d91dde46a11b38c8a20e82f3220f2/zookeeper-client/zookeeper-client-c/acinclude.m4#L314-L327

Another approach is to use a maven image with old Debian but it's less reasonable for me.

Author: okumin <git@okumin.com>

Reviewers: Enrico Olivelli <eolivelli@apache.org>, Damien Diederen <ddiederen@apache.org>

Closes #1575 from okumin/ZOOKEEPER-4055

(cherry picked from commit eeb053767c9e931ae72a2d8c59c0940da3da9679)
Signed-off-by: Damien Diederen <ddiederen@apache.org>
okumin 5 years ago
parent
commit
4e1c6d5023
1 changed files with 9 additions and 1 deletions
  1. 9 1
      dev/docker/Dockerfile

+ 9 - 1
dev/docker/Dockerfile

@@ -20,4 +20,12 @@
 FROM maven:3.6.3-jdk-8
 FROM maven:3.6.3-jdk-8
 
 
 RUN apt-get update
 RUN apt-get update
-RUN apt-get install -y g++ cmake autoconf libcppunit-dev libtool openssl libssl-dev
+RUN apt-get install -y \
+  g++ \
+  cmake \
+  autoconf \
+  pkg-config \
+  libcppunit-dev \
+  libtool \
+  openssl \
+  libssl-dev