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

Commit

Permalink
Add apt update to all docker install scripts (#13287)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoabreu authored Nov 15, 2018
1 parent c1327f3 commit 19c5016
Show file tree
Hide file tree
Showing 16 changed files with 21 additions and 10 deletions.
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_caffe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# under the License.
set -ex

apt-get update || true
apt-get install -y \
libgflags-dev \
libgoogle-glog-dev \
Expand Down
2 changes: 1 addition & 1 deletion ci/docker/install/ubuntu_clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@

set -ex
# Install clang 3.9 (the same version as in XCode 8.*) and 6.0 (latest major release)
apt-get update || true
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-3.9 main" && \
apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main" && \
apt-get update && \
apt-get install -y clang-3.9 clang-6.0 && \
clang-3.9 --version && \
clang-6.0 --version
2 changes: 1 addition & 1 deletion ci/docker/install/ubuntu_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# the whole docker cache for the image

set -ex
apt-get update
apt-get update || true
apt-get install -y \
apt-transport-https \
build-essential \
Expand Down
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
set -ex
# Install dependencies
echo 'Installing dependencies...'
apt-get update || true
apt-get install -y \
doxygen \
pandoc
Expand Down
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_emscripten.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

set -ex

apt-get update || true
apt-get -y install nodejs

git clone -b 1.38.6 https://github.com/kripken/emscripten.git
Expand Down
3 changes: 2 additions & 1 deletion ci/docker/install/ubuntu_llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ echo deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main\
>> /etc/apt/sources.list.d/llvm.list

wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
apt-get update && apt-get install -y --force-yes llvm-5.0
apt-get update || true
apt-get install -y --force-yes llvm-5.0
2 changes: 1 addition & 1 deletion ci/docker/install/ubuntu_nightly_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ set -ex
# Adding ppas frequently fails due to busy gpg servers, retry 5 times with 5 minute delays.
for i in 1 2 3 4 5; do add-apt-repository -y ppa:ubuntu-toolchain-r/test && break || sleep 300; done

apt-get update
apt-get update || true
apt-get -y install time

# Install for RAT License Check Nightly Test
Expand Down
2 changes: 1 addition & 1 deletion ci/docker/install/ubuntu_npm_blc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

set -ex
echo 'Installing npm...'
apt-get update
apt-get update || true
apt-get install -y npm

echo "Obtaining NodeJS version 8.x"
Expand Down
3 changes: 2 additions & 1 deletion ci/docker/install/ubuntu_nvidia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
# under the License.

set -ex
apt-get update || true
apt install -y software-properties-common

# Adding ppas frequently fails due to busy gpg servers, retry 5 times with 5 minute delays.
for i in 1 2 3 4 5; do add-apt-repository -y ppa:graphics-drivers && break || sleep 300; done

# Retrieve ppa:graphics-drivers and install nvidia-drivers.
# Note: DEBIAN_FRONTEND required to skip the interactive setup steps
apt update
apt-get update || true
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends cuda-9-1
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_onnx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ set -e
set -x

echo "Installing libprotobuf-dev and protobuf-compiler ..."
apt-get update || true
apt-get install -y libprotobuf-dev protobuf-compiler

echo "Installing pytest, pytest-cov, protobuf, Pillow, ONNX and tabulate ..."
Expand Down
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_perl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@

set -ex
# install libraries for mxnet's perl package on ubuntu
apt-get update || true
apt-get install -y libmouse-perl pdl cpanminus swig libgraphviz-perl
cpanm -q Function::Parameters Hash::Ordered PDL::CCS
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

set -ex
# install libraries for mxnet's python package on ubuntu
apt-get update || true
apt-get install -y python-dev python3-dev virtualenv

# the version of the pip shipped with ubuntu may be too lower, install a recent version here
Expand Down
2 changes: 1 addition & 1 deletion ci/docker/install/ubuntu_r.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ apt-key add r.gpg
# Installing the latest version (3.3+) that is compatible with MXNet
add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'

apt-get update
apt-get update || true
apt-get install -y --allow-unauthenticated \
libcairo2-dev \
libssl-dev \
Expand Down
2 changes: 1 addition & 1 deletion ci/docker/install/ubuntu_rat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
set -ex

echo "Install dependencies"
apt-get update
apt-get update || true
apt-get install -y subversion maven openjdk-8-jdk openjdk-8-jre

echo "download RAT"
Expand Down
6 changes: 4 additions & 2 deletions ci/docker/install/ubuntu_scala.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ set -ex
cd "$(dirname "$0")"
# install libraries for mxnet's scala package on ubuntu
echo 'Installing Scala...'
apt-get update || true
apt-get install -y software-properties-common
apt-get update
apt-get update || true
apt-get install -y openjdk-8-jdk
apt-get install -y openjdk-8-jre

Expand All @@ -34,7 +35,8 @@ echo "deb https://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/
#apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
#apt-key adv --keyserver keys.gnupg.net --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
apt-key add sbt.gpg
apt-get update && apt-get install -y \
apt-get update || true
apt-get install -y \
maven \
sbt \
scala
1 change: 1 addition & 0 deletions ci/docker/install/ubuntu_tutorials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# the whole docker cache for the image

set -ex
apt-get update || true
apt-get install graphviz python-opencv
pip2 install jupyter matplotlib Pillow opencv-python scikit-learn graphviz tqdm
pip3 install jupyter matplotlib Pillow opencv-python scikit-learn graphviz tqdm

0 comments on commit 19c5016

Please sign in to comment.