[docker] Build Python3.6 & Python3.8 Docker Images (#13548)

This commit is contained in:
Ian Rodney
2021-01-28 15:24:50 -08:00
committed by GitHub
parent 0c906a8b93
commit 813a7ab0e2
6 changed files with 173 additions and 89 deletions
+6 -2
View File
@@ -30,6 +30,8 @@ RUN sudo apt-get update -y && sudo apt-get upgrade -y \
git \
wget \
cmake \
g++ \
zlib1g-dev \
$(if [ "$AUTOSCALER" = "autoscaler" ]; then echo \
tmux \
screen \
@@ -52,12 +54,14 @@ RUN sudo apt-get update -y && sudo apt-get upgrade -y \
numpy==1.15.4 \
psutil \
blist \
atari-py \
# blist is needed for numpy (which is re-installed when ray is installed)
# atari-py is built from source for Python 3.8 (requires g++ & zlib1g-dev)
# To avoid the following error on Jenkins:
# AttributeError: 'numpy.ufunc' object has no attribute '__module__'
&& $HOME/anaconda3/bin/pip uninstall -y dask \
# We install cmake temporarily to get psutil
&& sudo apt-get autoremove -y cmake \
# We install cmake temporarily to get psutil, blist & atari-py
&& sudo apt-get autoremove -y cmake g++ zlib1g-dev \
# Either install kubectl or remove wget
&& (if [ "$AUTOSCALER" = "autoscaler" ]; \
then wget -O - -q https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - \