Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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