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
2 changes: 1 addition & 1 deletion ci/docker/Dockerfile.build.ubuntu_gpu_tensorrt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.
#
# Dockerfile to run MXNet on Ubuntu 16.04 for CPU
# Dockerfile to run MXNet on Ubuntu 18.04 for CPU

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

Expand Down
4 changes: 2 additions & 2 deletions ci/docker/Dockerfile.build.ubuntu_nightly_cpu
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
# specific language governing permissions and limitations
# under the License.
#
# Dockerfile to build and run MXNet on Ubuntu 16.04 for CPU
# Dockerfile to build and run MXNet on Ubuntu 18.04 for CPU

FROM ubuntu:16.04
FROM ubuntu:18.04

WORKDIR /work/deps

Expand Down
8 changes: 5 additions & 3 deletions ci/docker/Dockerfile.build.ubuntu_nightly_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
# specific language governing permissions and limitations
# under the License.
#
# Dockerfile to run MXNet on Ubuntu 16.04 for CPU
# Dockerfile to run MXNet on Ubuntu 18.04 for GPU

FROM nvidia/cuda:10.1-devel-ubuntu16.04
FROM nvidia/cuda:10.1-devel-ubuntu18.04

WORKDIR /work/deps

Expand Down Expand Up @@ -67,10 +67,12 @@ RUN /work/ubuntu_tutorials.sh
COPY install/ubuntu_nightly_tests.sh /work/
RUN /work/ubuntu_nightly_tests.sh

ENV CUDNN_VERSION=7.6.0.64
ENV CUDA_VERSION=10.1.105
ENV CUDNN_VERSION=7.6.5.32
COPY install/ubuntu_cudnn.sh /work/
RUN /work/ubuntu_cudnn.sh

# Always last
ARG USER_ID=0
ARG GROUP_ID=0
COPY install/ubuntu_adduser.sh /work/
Expand Down
2 changes: 1 addition & 1 deletion ci/docker/Dockerfile.build.ubuntu_rat
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#
# Dockerfile to run the Apache RAT license check

FROM ubuntu:16.04
FROM ubuntu:18.04

WORKDIR /work/deps

Expand Down
18 changes: 17 additions & 1 deletion ci/docker/install/ubuntu_rat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,23 @@ set -ex

echo "Install dependencies"
apt-get update || true
apt-get install -y subversion maven openjdk-8-jdk openjdk-8-jre
apt-get install -y curl subversion openjdk-8-jdk openjdk-8-jre software-properties-common
apt-add-repository ppa:webupd8team/java
apt-get update

# Installing maven 3.6.3 because default maven 3.7.x requires maven compiler >= 1.6
url="https://mirror.olnevhost.net/pub/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz"
install_dir="/opt/maven"
mkdir ${install_dir}
curl -fsSL ${url} | tar zx --strip-components=1 -C ${install_dir}
cat << EOF > /etc/profile.d/maven.sh
#!/bin/sh
export M2_HOME=${install_dir}
export MAVEN_HOME=${install_dir}
export PATH=${install_dir}/bin:${PATH}
EOF
source /etc/profile.d/maven.sh
cat /etc/profile.d/maven.sh

echo "download RAT"
#svn co http://svn.apache.org/repos/asf/creadur/rat/trunk/
Expand Down
14 changes: 5 additions & 9 deletions cpp-package/example/get_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,12 @@ download () {

# MNIST dataset from: http://yann.lecun.com/exdb/mnist/
FILES=(
"http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz"
"http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz"
"http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz"
"http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz"
"https://web.archive.org/web/20160828233817/http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz"
"https://web.archive.org/web/20160828233817/http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz"
"https://web.archive.org/web/20160828233817/http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz"
"https://web.archive.org/web/20160828233817/http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz"
"http://data.mxnet.io/data/mnist_train.csv.gz")

for FILE in ${FILES[@]}; do
if curl --output /dev/null --silent --head --fail "$FILE"; then
download ${FILE}
else
download "https://web.archive.org/web/20160828233817/$FILE"
fi
download ${FILE}
done