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

Commit 1fdebfd

Browse files
author
Rohit Kumar Srivastava
committed
Set maven version to 3.6.x for ubuntu 18 to fix rat license checker
1 parent 72bb587 commit 1fdebfd

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

ci/docker/Dockerfile.build.ubuntu_gpu_tensorrt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
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

2121
FROM nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04
2222

ci/docker/install/ubuntu_rat.sh

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,25 @@ set -ex
2121

2222
echo "Install dependencies"
2323
apt-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

2644
echo "download RAT"
2745
#svn co http://svn.apache.org/repos/asf/creadur/rat/trunk/

0 commit comments

Comments
 (0)