add mindinsight for CPU version

This commit is contained in:
shenghong96 2021-09-16 16:05:56 +08:00
parent a651891936
commit 9173c5794d
2 changed files with 17 additions and 1 deletions

View File

@ -4,7 +4,7 @@ MAINTAINER leonwanghui <leon.wanghui@huawei.com>
# Set env
ENV PYTHON_ROOT_PATH /usr/local/python-3.7.5
ENV PATH /usr/local/bin:/root/.local/bin:$PATH
ENV PATH ${PYTHON_ROOT_PATH}/bin:/usr/local/bin:/root/.local/bin:$PATH
# Install base tools
RUN apt update \
@ -72,3 +72,6 @@ RUN mkdir -pv /root/.pip \
# Install MindSpore cpu whl package
RUN pip install --no-cache-dir https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.5.0/MindSpore/cpu/x86_64/mindspore-1.5.0-cp37-cp37m-linux_x86_64.whl
# Install MindInsight cpu whl package
RUN pip install --no-cache-dir https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.5.0/MindInsight/any/mindinsight-1.5.0-py3-none-any.whl

View File

@ -79,3 +79,16 @@ RUN cd /tmp \
&& mkdir -p ${CMAKE_ROOT_PATH} \
&& bash ./cmake-3.14.1-Linux-x86_64.sh --prefix=${CMAKE_ROOT_PATH} --exclude-subdir --skip-license \
&& rm -f /tmp/cmake-3.14.1-Linux-x86_64.sh
# Install nodejs
RUN cd /tmp \
&& wget https://mirrors.huaweicloud.com/nodejs/v12.18.4/node-v12.18.4-linux-x64.tar.gz \
&& tar -zxf node-v12.18.4-linux-x64.tar.gz \
&& rm -rf /usr/local/nodejs \
&& mkdir -p /usr/local/nodejs \
&& mv /tmp/node-v12.18.4-linux-x64 /usr/local/nodejs/ \
&& chmod 755 -R /usr/local/nodejs \
&& ln -sf /usr/local/nodejs/node-v12.18.4-linux-x64/bin/node /usr/bin/node \
&& ln -sf /usr/local/nodejs/node-v12.18.4-linux-x64/bin/npm /usr/bin/npm \
&& npm config set registry https://registry.npm.taobao.org/ \
&& rm -f /tmp/node-v12.18.4-linux-x64.tar.gz