From 2c91fd82415a7b0fcdf91952bda98bea669f1646 Mon Sep 17 00:00:00 2001 From: Allen Wittenauer Date: Mon, 16 May 2016 20:25:40 -0700 Subject: [PATCH] HADOOP-13161. remove JDK7 from Dockerfile (aw) --- dev-support/docker/Dockerfile | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile index eba7df7fe6..f9bf5aa298 100644 --- a/dev-support/docker/Dockerfile +++ b/dev-support/docker/Dockerfile @@ -28,9 +28,11 @@ ENV DEBCONF_TERSE true ###### # Install common dependencies from packages +# +# WARNING: DO NOT PUT JAVA APPS HERE! Otherwise they will install default +# Ubuntu Java. See Java section below! ###### RUN apt-get -q update && apt-get -q install --no-install-recommends -y \ - ant \ build-essential \ bzip2 \ cmake \ @@ -42,17 +44,14 @@ RUN apt-get -q update && apt-get -q install --no-install-recommends -y \ git \ gnupg-agent \ make \ - maven \ libbz2-dev \ libcurl4-openssl-dev \ libfuse-dev \ - libjansson-dev \ libprotobuf-dev \ libprotoc-dev \ libsnappy-dev \ libssl-dev \ libtool \ - openjdk-7-jdk \ pinentry-curses \ pkg-config \ protobuf-compiler \ @@ -63,10 +62,6 @@ RUN apt-get -q update && apt-get -q install --no-install-recommends -y \ snappy \ zlib1g-dev -# Fixing the Apache commons / Maven dependency problem under Ubuntu: -# See http://wiki.apache.org/commons/VfsProblems -RUN cd /usr/share/maven/lib && ln -s ../../java/commons-lang.jar . - ###### # Install ISA-L library ###### @@ -86,14 +81,21 @@ RUN apt-get -q install --no-install-recommends -y software-properties-common RUN add-apt-repository -y ppa:webupd8team/java RUN apt-get -q update -# Auto-accept the Oracle JDK license -RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections -RUN apt-get -q install --no-install-recommends -y oracle-java7-installer - # Auto-accept the Oracle JDK license RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections RUN apt-get -q install --no-install-recommends -y oracle-java8-installer +#### +# 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 +RUN cd /usr/share/maven/lib && ln -s ../../java/commons-lang.jar . + ###### # Install findbugs ######