File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,15 @@ FROM ubuntu:latest
2
2
3
3
RUN apt-get update
4
4
5
- RUN apt-get install -y openjdk-8-jdk
5
+ RUN apt-get install -y software-properties-common debconf-utils
6
6
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
8
14
9
15
RUN apt-get install -y wget \
10
16
protobuf-compiler \
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ VERSION=${1}
4
4
5
5
cd hadoop-$VERSION -src
6
6
7
- mvn -q -B package -Pdist,native -DskipTests -Dtar
7
+ echo " Building Hadoop $VERSION "
8
+ mvn package -e -X -Pdist,native -DskipTests=true -Dtar
8
9
9
10
if [[ $? -eq 0 ]]; then
10
11
echo -e " \n\nHadoop $VERSION build complete.\n\n"
You can’t perform that action at this time.
0 commit comments