Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
[build] explicitly install JDK8 (#7574)
Browse files Browse the repository at this point in the history
* explicitly install openjdk8

* handle earlier version of ubuntu

* install software-properties-common

* update -y

* update commands
  • Loading branch information
CodingCat authored and yzhliu committed Aug 27, 2017
1 parent 9aa051c commit e051297
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
10 changes: 9 additions & 1 deletion docker/install/scala.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@

# install libraries for mxnet's scala package on ubuntu

apt-get install -y maven default-jdk

apt-get install -y software-properties-common
add-apt-repository -y ppa:webupd8team/java
apt-get update
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections
apt-get install -y oracle-java8-installer
apt-get install -y oracle-java8-set-default

apt-get install -y maven

wget http://downloads.lightbend.com/scala/2.11.8/scala-2.11.8.deb
dpkg -i scala-2.11.8.deb
Expand Down
8 changes: 7 additions & 1 deletion docs/get_started/build_from_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,13 @@ Both JDK and Maven are required to build the Scala package.
<div class="ubuntu">

```bash
sudo apt-get install -y maven default-jdk
apt-get install -y software-properties-common
add-apt-repository -y ppa:webupd8team/java
apt-get update
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections
apt-get install -y oracle-java8-installer
apt-get install -y oracle-java8-set-default
apt-get install -y maven
```

</div>
Expand Down
8 changes: 7 additions & 1 deletion tests/ci_build/Dockerfile.ubuntu1404_cuda75_cudnn5
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ RUN cd /usr/src/gtest && cmake CMakeLists.txt && make && cp *.a /usr/lib
RUN pip install nose cpplint 'pylint==1.4.4' 'astroid==1.3.6'

# MAVEN
RUN apt-get install -y maven default-jdk
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:webupd8team/java -y
RUN apt-get update
RUN echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections
RUN apt-get install -y oracle-java8-installer
RUN apt-get install -y oracle-java8-set-default
RUN apt-get install -y maven

# R
RUN apt-get install -y software-properties-common r-base-core libcurl4-openssl-dev libssl-dev libxml2-dev
Expand Down
9 changes: 7 additions & 2 deletions tests/ci_build/install/ubuntu_install_scala.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@

# install libraries for mxnet's scala package on ubuntu

apt-get update && apt-get install -y \
maven default-jdk
apt-get install -y software-properties-common
add-apt-repository -y ppa:webupd8team/java
apt-get update
echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections
apt-get install -y oracle-java8-installer
apt-get install -y oracle-java8-set-default
apt-get update && apt-get install -y maven

0 comments on commit e051297

Please sign in to comment.