Skip to content

Commit d11308c

Browse files
committed
use oracle java
1 parent 50d89b2 commit d11308c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ FROM ubuntu:latest
22

33
RUN apt-get update
44

5-
RUN apt-get install -y openjdk-8-jdk
5+
RUN apt-get install -y software-properties-common debconf-utils
66

7-
RUN apt-cache madison libprotobuf-dev
7+
RUN add-apt-repository -y ppa:webupd8team/java
8+
9+
RUN apt-get update
10+
11+
RUN echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections
12+
13+
RUN apt-get install -y oracle-java8-installer
814

915
RUN apt-get install -y wget \
1016
protobuf-compiler \

build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ VERSION=${1}
44

55
cd hadoop-$VERSION-src
66

7-
mvn -q -B package -Pdist,native -DskipTests -Dtar
7+
echo "Building Hadoop $VERSION"
8+
mvn package -e -X -Pdist,native -DskipTests=true -Dtar
89

910
if [[ $? -eq 0 ]]; then
1011
echo -e "\n\nHadoop $VERSION build complete.\n\n"

0 commit comments

Comments
 (0)