This repository was archived by the owner on Nov 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 1616# specific language governing permissions and limitations
1717# under the License.
1818#
19- # Dockerfile to run MXNet on Ubuntu 16 .04 for CPU
19+ # Dockerfile to run MXNet on Ubuntu 18 .04 for CPU
2020
2121FROM nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04
2222
Original file line number Diff line number Diff line change @@ -21,7 +21,25 @@ set -ex
2121
2222echo " Install dependencies"
2323apt-get update || true
24- apt-get install -y subversion maven openjdk-8-jdk openjdk-8-jre
24+ apt-get install -y curl nano subversion openjdk-8-jdk openjdk-8-jre software-properties-common
25+ apt-add-repository ppa:webupd8team/java
26+ apt-get update
27+
28+ # Installing maven 3.6.3 because default maven 3.7.x requires maven compiler >= 1.6
29+ url=" https://mirror.olnevhost.net/pub/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz"
30+ install_dir=" /opt/maven"
31+ mkdir ${install_dir}
32+ curl -fsSL ${url} | tar zx --strip-components=1 -C ${install_dir}
33+ cat << EOF > /etc/profile.d/maven.sh
34+ #!/bin/sh
35+ export M2_HOME=${install_dir}
36+ export MAVEN_HOME=${install_dir}
37+ export PATH=${install_dir} /bin:${PATH}
38+ EOF
39+ source /etc/profile.d/maven.sh
40+ cat /etc/profile.d/maven.sh
41+ rm -rf maven
42+ mvn --version
2543
2644echo " download RAT"
2745# svn co http://svn.apache.org/repos/asf/creadur/rat/trunk/
You can’t perform that action at this time.
0 commit comments