hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-19354 [branch-1] Build using a jdk that is beyond ubuntu trusty's openjdk-151
Date Wed, 29 Nov 2017 21:27:58 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 dce6285c2 -> 36a702996


HBASE-19354 [branch-1] Build using a jdk that is beyond ubuntu trusty's openjdk-151

Amend our DockerFile so it gets jdks from azul repo.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/36a70299
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/36a70299
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/36a70299

Branch: refs/heads/branch-1
Commit: 36a702996184b817d9203f84c04c9f8f4a7baa56
Parents: dce6285
Author: Michael Stack <stack@apache.org>
Authored: Mon Nov 27 15:27:32 2017 -0800
Committer: Michael Stack <stack@apache.org>
Committed: Wed Nov 29 13:27:50 2017 -0800

----------------------------------------------------------------------
 dev-support/docker/Dockerfile | 42 +++++++++++++++++++++++++-------------
 1 file changed, 28 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/36a70299/dev-support/docker/Dockerfile
----------------------------------------------------------------------
diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile
index 2605e2c..f706e4f 100644
--- a/dev-support/docker/Dockerfile
+++ b/dev-support/docker/Dockerfile
@@ -63,29 +63,43 @@ RUN apt-get -q update && apt-get -q install --no-install-recommends
-y \
     rsync \
     snappy \
     zlib1g-dev \
-    wget \
-    openjdk-7-jdk
+    wget
+
+####
+# Apps that require Java.
+# Maven and ant depend on ubuntu trusty's headless jdk7. The install of
+# maven and ant will pull down this jdk even though we don't want it.
+# Do the maven and ant install here rather than later where the jdk7
+# will overwrite the jdk7 we actually want to use. See next section on jdks.
+###
+RUN apt-get -q update && apt-get -q install --no-install-recommends -y \
+    ant \
+    maven
 
 #######
-# OpenJDK 8
+# Install jdk7 and jdk8.
 #######
-
+# The jdks in ubuntu trusty don't work. HDFS hangs on openjdk-7 151.
+# See HBASE-19204. So, we use the azul jdks because they are available, and
+# later versions of openjdk (openjdk-7 161). Below we add the azul repo and
+# then install its jdks. We then move aside the headless jdk7 added above
+# when we added maven and ant and rename the azul jvms as
+# though they were from openjdk (otherwise yetus won't set JAVA_HOME;
+# it does find /usr/lib/jvm/ -name java-* -type d so a symlink to the zulu jvms
+# won't work).
 RUN echo "dot_style = mega" > "/root/.wgetrc"
 RUN echo "quiet = on" >> "/root/.wgetrc"
-
-RUN apt-get -q update && apt-get -q install --no-install-recommends -y software-properties-common
-RUN add-apt-repository -y ppa:openjdk-r/ppa
+RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x219BD9C9
+RUN apt-get -q update && apt-get -q install --no-install-recommends -y software-properties-common
python-software-properties
+RUN apt-add-repository 'deb http://repos.azulsystems.com/ubuntu stable main'
 RUN apt-get -q update
-RUN apt-get -q install --no-install-recommends -y openjdk-8-jdk
+RUN apt-get -q install --no-install-recommends -y zulu-8 zulu-7
 RUN update-alternatives --config java
 RUN update-alternatives --config javac
+RUN mv /usr/lib/jvm/java-7-openjdk-amd64 /usr/lib/jvm/moved.java-7-openjdk-amd64
+RUN mv /usr/lib/jvm/zulu-7-amd64 /usr/lib/jvm/java-7-openjdk-amd64 
+RUN mv /usr/lib/jvm/zulu-8-amd64 /usr/lib/jvm/java-8-openjdk-amd64 
 
-####
-# Apps that require Java
-###
-RUN apt-get -q update && apt-get -q install --no-install-recommends -y \
-    ant \
-    maven
 
 # Fixing the Apache commons / Maven dependency problem under Ubuntu:
 # See http://wiki.apache.org/commons/VfsProblems


Mime
View raw message