提交 9d25700d 编写于 作者: L leonwanghui 提交者: 高东海

Update some required system packages in dockerfile

Signed-off-by: Nleonwanghui <leon.wanghui@huawei.com>
上级 51ca769d
...@@ -12,20 +12,22 @@ RUN apt update \ ...@@ -12,20 +12,22 @@ RUN apt update \
&& DEBIAN_FRONTEND=noninteractive apt install -y \ && DEBIAN_FRONTEND=noninteractive apt install -y \
vim \ vim \
wget \ wget \
curl \
xz-utils \ xz-utils \
net-tools \ net-tools \
openssh-client \ openssh-client \
git \ git \
subversion \
ntpdate \ ntpdate \
tzdata \ tzdata \
tcl \ tcl \
sudo sudo \
bash-completion
# Install compile tools # Install compile tools
RUN DEBIAN_FRONTEND=noninteractive apt install -y \ RUN DEBIAN_FRONTEND=noninteractive apt install -y \
gcc \ gcc \
g++ \ g++ \
zlibc \
make \ make \
libgmp-dev \ libgmp-dev \
patch \ patch \
...@@ -39,7 +41,8 @@ RUN echo "dash dash/sh boolean false" | debconf-set-selections ...@@ -39,7 +41,8 @@ RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
# Install python (v3.7.5) # Install python (v3.7.5)
RUN apt install -y --no-install-recommends libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev libgdbm-dev liblzma-dev libreadline-dev \ RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libsqlite3-dev \
&& cd /tmp \ && cd /tmp \
&& wget https://github.com/python/cpython/archive/v3.7.5.tar.gz \ && wget https://github.com/python/cpython/archive/v3.7.5.tar.gz \
&& tar -xvf v3.7.5.tar.gz \ && tar -xvf v3.7.5.tar.gz \
...@@ -62,12 +65,12 @@ RUN mkdir -pv /root/.pip \ ...@@ -62,12 +65,12 @@ RUN mkdir -pv /root/.pip \
&& echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf && echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf
# Install pip package # Install pip package
RUN pip install numpy \ RUN pip install --no-cache-dir \
&& pip install wheel \ numpy \
&& pip install nose \ wheel \
&& pip install pytest \ nose \
&& pip install pytest-xdist \ pytest \
&& pip list pytest-xdist
# Install cmake (v3.14.1) # Install cmake (v3.14.1)
RUN cd /tmp \ RUN cd /tmp \
...@@ -77,4 +80,4 @@ RUN cd /tmp \ ...@@ -77,4 +80,4 @@ RUN cd /tmp \
&& rm -f /tmp/cmake-3.14.1-Linux-x86_64.sh && rm -f /tmp/cmake-3.14.1-Linux-x86_64.sh
# Install MindSpore cpu whl package # Install MindSpore cpu whl package
RUN pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/0.1.0-alpha/MindSpore/cpu/ubuntu-x86/mindspore-0.1.0-cp37-cp37m-linux_x86_64.whl RUN pip install --no-cache-dir https://ms-release.obs.cn-north-4.myhuaweicloud.com/0.1.0-alpha/MindSpore/cpu/ubuntu-x86/mindspore-0.1.0-cp37-cp37m-linux_x86_64.whl
...@@ -12,20 +12,22 @@ RUN apt update \ ...@@ -12,20 +12,22 @@ RUN apt update \
&& DEBIAN_FRONTEND=noninteractive apt install -y \ && DEBIAN_FRONTEND=noninteractive apt install -y \
vim \ vim \
wget \ wget \
curl \
xz-utils \ xz-utils \
net-tools \ net-tools \
openssh-client \ openssh-client \
git \ git \
subversion \
ntpdate \ ntpdate \
tzdata \ tzdata \
tcl \ tcl \
sudo sudo \
bash-completion
# Install compile tools # Install compile tools
RUN DEBIAN_FRONTEND=noninteractive apt install -y \ RUN DEBIAN_FRONTEND=noninteractive apt install -y \
gcc \ gcc \
g++ \ g++ \
zlibc \
make \ make \
libgmp-dev \ libgmp-dev \
patch \ patch \
...@@ -39,7 +41,8 @@ RUN echo "dash dash/sh boolean false" | debconf-set-selections ...@@ -39,7 +41,8 @@ RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
# Install python (v3.7.5) # Install python (v3.7.5)
RUN apt install -y --no-install-recommends libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev libgdbm-dev liblzma-dev libreadline-dev \ RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libsqlite3-dev \
&& cd /tmp \ && cd /tmp \
&& wget https://github.com/python/cpython/archive/v3.7.5.tar.gz \ && wget https://github.com/python/cpython/archive/v3.7.5.tar.gz \
&& tar -xvf v3.7.5.tar.gz \ && tar -xvf v3.7.5.tar.gz \
...@@ -62,12 +65,12 @@ RUN mkdir -pv /root/.pip \ ...@@ -62,12 +65,12 @@ RUN mkdir -pv /root/.pip \
&& echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf && echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf
# Install pip package # Install pip package
RUN pip install numpy \ RUN pip install --no-cache-dir \
&& pip install wheel \ numpy \
&& pip install nose \ wheel \
&& pip install pytest \ nose \
&& pip install pytest-xdist \ pytest \
&& pip list pytest-xdist
# Install cmake (v3.14.1) # Install cmake (v3.14.1)
RUN cd /tmp \ RUN cd /tmp \
...@@ -77,4 +80,4 @@ RUN cd /tmp \ ...@@ -77,4 +80,4 @@ RUN cd /tmp \
&& rm -f /tmp/cmake-3.14.1-Linux-x86_64.sh && rm -f /tmp/cmake-3.14.1-Linux-x86_64.sh
# Install MindSpore cuda-10.1 whl package # Install MindSpore cuda-10.1 whl package
RUN pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/0.1.0-alpha/MindSpore/gpu/cuda-10.1/mindspore-0.1.0-cp37-cp37m-linux_x86_64.whl RUN pip install --no-cache-dir https://ms-release.obs.cn-north-4.myhuaweicloud.com/0.1.0-alpha/MindSpore/gpu/cuda-10.1/mindspore-0.1.0-cp37-cp37m-linux_x86_64.whl
...@@ -12,20 +12,22 @@ RUN apt update \ ...@@ -12,20 +12,22 @@ RUN apt update \
&& DEBIAN_FRONTEND=noninteractive apt install -y \ && DEBIAN_FRONTEND=noninteractive apt install -y \
vim \ vim \
wget \ wget \
curl \
xz-utils \ xz-utils \
net-tools \ net-tools \
openssh-client \ openssh-client \
git \ git \
subversion \
ntpdate \ ntpdate \
tzdata \ tzdata \
tcl \ tcl \
sudo sudo \
bash-completion
# Install compile tools # Install compile tools
RUN DEBIAN_FRONTEND=noninteractive apt install -y \ RUN DEBIAN_FRONTEND=noninteractive apt install -y \
gcc \ gcc \
g++ \ g++ \
zlibc \
make \ make \
libgmp-dev \ libgmp-dev \
patch \ patch \
...@@ -39,7 +41,8 @@ RUN echo "dash dash/sh boolean false" | debconf-set-selections ...@@ -39,7 +41,8 @@ RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
# Install python (v3.7.5) # Install python (v3.7.5)
RUN apt install -y --no-install-recommends libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev libgdbm-dev liblzma-dev libreadline-dev \ RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libsqlite3-dev \
&& cd /tmp \ && cd /tmp \
&& wget https://github.com/python/cpython/archive/v3.7.5.tar.gz \ && wget https://github.com/python/cpython/archive/v3.7.5.tar.gz \
&& tar -xvf v3.7.5.tar.gz \ && tar -xvf v3.7.5.tar.gz \
...@@ -62,12 +65,12 @@ RUN mkdir -pv /root/.pip \ ...@@ -62,12 +65,12 @@ RUN mkdir -pv /root/.pip \
&& echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf && echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf
# Install pip package # Install pip package
RUN pip install numpy \ RUN pip install --no-cache-dir \
&& pip install wheel \ numpy \
&& pip install nose \ wheel \
&& pip install pytest \ nose \
&& pip install pytest-xdist \ pytest \
&& pip list pytest-xdist
# Install cmake (v3.14.1) # Install cmake (v3.14.1)
RUN cd /tmp \ RUN cd /tmp \
...@@ -77,4 +80,4 @@ RUN cd /tmp \ ...@@ -77,4 +80,4 @@ RUN cd /tmp \
&& rm -f /tmp/cmake-3.14.1-Linux-x86_64.sh && rm -f /tmp/cmake-3.14.1-Linux-x86_64.sh
# Install MindSpore cuda-9.2 whl package # Install MindSpore cuda-9.2 whl package
RUN pip install https://ms-release.obs.cn-north-4.myhuaweicloud.com/0.1.0-alpha/MindSpore/gpu/cuda-9.2/mindspore-0.1.0-cp37-cp37m-linux_x86_64.whl RUN pip install --no-cache-dir https://ms-release.obs.cn-north-4.myhuaweicloud.com/0.1.0-alpha/MindSpore/gpu/cuda-9.2/mindspore-0.1.0-cp37-cp37m-linux_x86_64.whl
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册