You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2015/12/18 00:10:42 UTC

mesos git commit: Jenkins: Updated docker build script for centos 7.

Repository: mesos
Updated Branches:
  refs/heads/master acb3a1b59 -> 42f746937


Jenkins: Updated docker build script for centos 7.

Jenkins builds are consistently failing for centos 7, with the
failure:

checking value of Java system property 'java.home'...
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-3.b17.el7.x86_64/jre
configure: error: could not guess JAVA_HOME

They also fail early on during 'bootstrap' with a missing 'which'
command.

The solution is to update support/docker_build.sh to install 'which' as
well as make sure the proper versions of java are installed during the
installation process.

The problem with java is that we install maven BEFORE installing
java-1.7.0-openjdk-devel, causing maven to pull in a dependency on
java-1.8.0-openjdk. This causes problems with finding the proper
java.home in our mesos/configure script because of the mismatch between
the most up to date jre (1.8.0) and the most up to date development
tools (1.7.0). We can either update the script to pull in the 1.8 devel
tools or move our dependence on maven until AFTER our installation of
java-1.7.0-openjdk-devel.

This commit takes the approach of updating to explicitly install the
java-1.8.0 tools.

Review: https://reviews.apache.org/r/41475/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/42f74693
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/42f74693
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/42f74693

Branch: refs/heads/master
Commit: 42f746937233349660c687ea7a66cc0a78871663
Parents: acb3a1b
Author: Kevin Klues <kl...@gmail.com>
Authored: Thu Dec 17 15:07:44 2015 -0800
Committer: Joris Van Remoortere <jo...@gmail.com>
Committed: Thu Dec 17 15:08:04 2015 -0800

----------------------------------------------------------------------
 support/docker_build.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/42f74693/support/docker_build.sh
----------------------------------------------------------------------
diff --git a/support/docker_build.sh b/support/docker_build.sh
index c14370d..7882bd2 100755
--- a/support/docker_build.sh
+++ b/support/docker_build.sh
@@ -37,10 +37,11 @@ case $OS in
 
     # Install dependencies.
 
+    append_dockerfile "RUN yum install -y which"
     append_dockerfile "RUN yum groupinstall -y 'Development Tools'"
     append_dockerfile "RUN yum install -y epel-release" # Needed for clang.
     append_dockerfile "RUN yum install -y clang git maven"
-    append_dockerfile "RUN yum install -y java-1.7.0-openjdk-devel python-devel zlib-devel libcurl-devel openssl-devel cyrus-sasl-devel cyrus-sasl-md5 apr-devel subversion-devel apr-utils-devel libevent-devel libev-devel"
+    append_dockerfile "RUN yum install -y java-1.8.0-openjdk-devel python-devel zlib-devel libcurl-devel openssl-devel cyrus-sasl-devel cyrus-sasl-md5 apr-devel subversion-devel apr-utils-devel libevent-devel libev-devel"
 
     # Add an unprivileged user.
     append_dockerfile "RUN adduser mesos"