Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4055

Dockerfile can't build Zookeeper C client library

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      `dev/docker/Dockerfile` is based on `maven:3.6.3-jdk-8` and the maven image is now based on Debian buster. The libcppunit-dev 1.14.0 shipped with Debian buster doesn't have `AM_PATH_CPPUNIT`.

       

      And also `PKG_CHECK_MODULES`, the fallback macro, is not linked in the docker image.

      https://github.com/apache/zookeeper/blob/4e82a8be889d91dde46a11b38c8a20e82f3220f2/zookeeper-client/zookeeper-client-c/acinclude.m4#L314-L327

      As a result, the current Docker image is not capable of building `zookeeper-client-c`.

      $ docker build -t zookeeper/dev -f dev/docker/Dockerfile dev/docker
      $ docker run --rm -it -w /root/zk -v "$PWD:/root/zk" zookeeper/dev mvn clean install -Pfull-build -DskipTests
      
      [INFO] --- exec-maven-plugin:1.6.0:exec (autoreconf) @ zookeeper-client-c ---
      acinclude.m4:315: warning: macro 'AM_PATH_CPPUNIT' not found in library
      configure.ac:38: error: Missing AM_PATH_CPPUNIT or PKG_CHECK_MODULES m4 macro.
      acinclude.m4:317: CHECK_CPPUNIT is expanded from...
      configure.ac:38: the top level
      autom4te: /usr/bin/m4 failed with exit status: 1
      aclocal: error: echo failed with exit status: 1
      autoreconf: aclocal failed with exit status: 1
      [ERROR] Command execution failed.
      org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
          at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404)
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            okumin Shohei Okumiya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m

                Slack

                  Issue deployment