MindX DL Sample主要应用于企业的数据中心或超算中心机房中,针对不同的应用场景为客户提供AI深度学习端到端解决方案。

传统行业:用户无自建深度学习平台,希望能够提供简单易用、软硬件一体化的深度学习平台。

互联网和安防行业:用户有自建深度学习平台,希望提供适配客户深度学习平台的开源插件,快速上线昇腾系列AI处理器的深度学习。

超算中心和公有云行业:用户无AI深度学习集群,希望提供大规模AI深度学习集群、支持超高密部署、整柜交付,缩短项目交付周期,加速业务上线,节省安装部署及调测成本。

说明:此文档需要先将基础kubernetes环境下的DL搭建完成,参考《华为 A800-9000 服务器 离线安装MindX DL》

一、 修改ansible配置文件

  1. root@ubuntu:/etc/ansible# vim hosts
  2. root@ubuntu:/etc/ansible#
  3. root@ubuntu:/etc/ansible#
  4. root@ubuntu:/etc/ansible#
  5. root@ubuntu:/etc/ansible# cat /etc/ansible/hosts
  6. [all:vars]
  7. # NFS service IP
  8. nfs_service_ip=192.168.1.99
  9. # Master IP
  10. master_ip=192.168.1.99
  11. [workers]
  12. localnode ansible_host=192.168.1.99 ansible_ssh_user=root ansible_ssh_pass=123123
  13. root@ubuntu:/etc/ansible#
  14. root@ubuntu:/etc/ansible#
  15. root@ubuntu:/etc/ansible#
  16. root@ubuntu:/etc/ansible# vi /etc/ansible/ansible.cfg
  17. # 取消以下两行内容的注释并更改deprecation_warnings为“False”。
  18. host_key_checking = False
  19. deprecation_warnings = False

二、下载基础镜像

  1. root@ubuntu:/etc/ansible# docker pull redis:5.0.8
  2. 5.0.8: Pulling from library/redis
  3. 3d48095d71a3: Pull complete
  4. 773882920678: Pull complete
  5. b04905edf724: Pull complete
  6. 90e236b4682b: Pull complete
  7. fb7d8181d1c6: Pull complete
  8. 532c81fe8c61: Pull complete
  9. Digest: sha256:96bdb5e2984b15e3cf4de74077f650c911cb26ec0981e0772df35a1a5cb19798
  10. Status: Downloaded newer image for redis:5.0.8
  11. root@ubuntu:/etc/ansible#
  12. root@ubuntu:/etc/ansible# docker pull prom/prometheus:v2.10.0
  13. v2.10.0: Pulling from prom/prometheus
  14. 596fa44d463e: Pull complete
  15. ae7a0e9c5457: Pull complete
  16. 3e3e880277a4: Pull complete
  17. d884b32e16d7: Pull complete
  18. 6f45dfbc8251: Pull complete
  19. e7275b596775: Pull complete
  20. d3c1f1d7d1d1: Pull complete
  21. f040a278aa08: Pull complete
  22. 403fefd2b7ea: Pull complete
  23. Digest: sha256:b89e9c7ffbfbc8efebd6d8ff89b33175625bb2c7ae2751fbcd89f0884cfbdcab
  24. Status: Downloaded newer image for prom/prometheus:v2.10.0
  25. root@ubuntu:/etc/ansible#
  26. root@ubuntu:/etc/ansible# docker pull mysql/mysql-server:8.0.13
  27. 8.0.13: Pulling from mysql/mysql-server
  28. 5530262403b2: Pull complete
  29. 01c05f6b9ab3: Pull complete
  30. f521094e248f: Pull complete
  31. 495eb6103d23: Pull complete
  32. Digest: sha256:59a5854dca16488305aee60c8dea4d88b68d816aee627de022b19d9bead48d04
  33. Status: Downloaded newer image for mysql/mysql-server:8.0.13
  34. root@ubuntu:/etc/ansible#
  35. root@ubuntu:/etc/ansible# docker pull grafana/grafana:7.0.2
  36. 7.0.2: Pulling from grafana/grafana
  37. 29e5d40040c1: Pull complete
  38. c33923c8c811: Pull complete
  39. 3fd85f7a4ab6: Pull complete
  40. 987cf1afe976: Pull complete
  41. a27d86f46de8: Pull complete
  42. 285316502f38: Pull complete
  43. Digest: sha256:5b9c9e18a8279a818144d90431ac0631bc17f520aa5c2fd6dd70bf767b48e632
  44. Status: Downloaded newer image for grafana/grafana:7.0.2
  45. root@ubuntu:/etc/ansible#
  46. root@ubuntu:/etc/ansible# docker pull python:3.7.5
  47. 3.7.5: Pulling from library/python
  48. af4800279257: Pull complete
  49. 8fae2ec46cd5: Pull complete
  50. 8a8718b9412e: Pull complete
  51. 4908f8b44725: Pull complete
  52. 54e0fac9e6c6: Pull complete
  53. 2b1da11f97bb: Pull complete
  54. d93a637093d0: Pull complete
  55. c79746565cc4: Pull complete
  56. 3dfacccebd97: Pull complete
  57. Digest: sha256:88d11783cbbfa06f1c12ca50c73c340b0bff34bf599c6e1dd27fb836a8de506d
  58. Status: Downloaded newer image for python:3.7.5
  59. root@ubuntu:/etc/ansible#
  60. root@ubuntu:/etc/ansible# docker pull ubuntu:18.04
  61. 18.04: Pulling from library/ubuntu
  62. fda1cca7a3cc: Pull complete
  63. Digest: sha256:7bd7a9ca99f868bf69c4b6212f64f2af8e243f97ba13abb3e641e03a7ceb59e8
  64. Status: Downloaded newer image for ubuntu:18.04
  65. root@ubuntu:/etc/ansible#

三、配置NGINX镜像配置

  1. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/src/nginx# vim Dockerfile
  2. FROM ubuntu:18.04
  3. #(可选Part1)如用户环境需要配置代理连接网络,此处需要按如下示例配置代理,可直接取消注释并填写相应字段(大括号不保留)。
  4. # ENV http_proxy http://{username}:{password}@{IP}:{port}
  5. # ENV https_proxy http://{username}:{password}@{IP}:{port}
  6. #(可选Part2)如用户环境需要配置代理连接网络,此处需要按如下示例配置代理,可直接取消注释并填写相应字段(大括号不保留)。
  7. # RUN echo 'Acquire::http::Proxy "http://{username}:{password}@{IP}:{port}"; Acquire::https::Proxy "http://{username}:{password}@{IP}:{port}";' > /etc/apt/apt.conf.d/80proxy
  8. ##(可选Part3)配置apt源,ARM环境示例,请根据环境架构在Part3和Part4中二选一
  9. #RUN echo 'deb http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse \n\
  10. #deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse \n\
  11. #deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse \n\
  12. #deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse \n\
  13. #deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse \n\
  14. #deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse \n\
  15. #deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse \n\
  16. #deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse \n\
  17. #deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse \n\
  18. #deb-src http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse' > /etc/apt/sources.list
  19. ##(可选Part4)配置apt源,x86环境示例,请根据环境架构在Part3和Part4中二选一
  20. #RUN echo 'deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse \n\
  21. #deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse \n\
  22. #deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse \n\
  23. #deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse \n\
  24. #deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse \n\
  25. #deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse \n\
  26. #deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse \n\
  27. #deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse \n\
  28. #deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse \n\
  29. #deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse' > /etc/apt/sources.list
  30. RUN echo 'deb http://cn.ports.ubuntu.com/ubuntu-ports/ bionic main restricted \n\
  31. deb http://cn.ports.ubuntu.com/ubuntu-ports/ bionic-updates main restricted \n\
  32. deb http://cn.ports.ubuntu.com/ubuntu-ports/ bionic universe \n\
  33. deb http://cn.ports.ubuntu.com/ubuntu-ports/ bionic-updates universe \n\
  34. deb http://cn.ports.ubuntu.com/ubuntu-ports/ bionic multiverse \n\
  35. deb http://cn.ports.ubuntu.com/ubuntu-ports/ bionic-updates multiverse \n\
  36. deb http://cn.ports.ubuntu.com/ubuntu-ports/ bionic-backports main restricted universe multiverse \n\
  37. deb http://ports.ubuntu.com/ubuntu-ports bionic-security main restricted \n\
  38. deb http://ports.ubuntu.com/ubuntu-ports bionic-security universe \n\
  39. deb http://ports.ubuntu.com/ubuntu-ports bionic-security multiverse' > /etc/apt/sources.list
  40. RUN apt-get update && \
  41. apt-get install -y build-essential && \
  42. apt-get install -y libtool && \
  43. apt-get install -y libpcre3 libpcre3-dev && \
  44. apt-get install -y zlib1g-dev && \
  45. apt-get install -y openssl && \
  46. apt-get install libssl-dev && \
  47. apt-get install -y wget && \
  48. apt-get install -y git
  49. RUN export GIT_SSL_NO_VERIFY=1 && \
  50. git clone https://github.com/masterzen/nginx-upload-progress-module.git && \
  51. git clone https://github.com/fdintino/nginx-upload-module.git && \
  52. wget --no-check-certificate http://nginx.org/download/nginx-1.17.3.tar.gz && \
  53. tar -zxvf nginx-1.17.3.tar.gz && \
  54. cd nginx-1.17.3 && \
  55. ./configure --add-module=../nginx-upload-module/ --add-module=../nginx-upload-progress-module/ --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-g -O2 -fdebug-prefix-map=/tmp/tmp.UI0oSlj34i/nginx-1.17.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie' && \
  56. make && make install && ln -s /usr/local/nginx/sbin/nginx /usr/bin/nginx && \
  57. mkdir -pv /var/cache/nginx/client_temp && \
  58. cd ..
  59. #RUN rm /etc/apt/apt.conf.d/80proxy /etc/apt/sources.list && \
  60. # rm nginx-1.17.3.tar.gz && \
  61. # rm -rf nginx-1.17.3 nginx-upload-module nginx-upload-progress-module
  62. #(可选Part5)如在Part1中配置了代理,需要取消下面两行注释取消对应代理配置。
  63. #ENV http_proxy ""
  64. #ENV https_proxy ""
  65. #(可选Part6)如在Part2中配置了代理,需要取消下面一行注释取消对应代理配置。
  66. #RUN echo "" > /etc/apt/apt.conf.d/80proxy
  67. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/src/nginx# docker build -t nginx-upload:v1 .
  68. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/src/nginx# docker images | grep ng
  69. nginx-upload v1 15bbdc3677d7 4 minutes ago 372MB

四、安装前端所需工具,并编译前端代码

  1. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/src/webgui# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
  2. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/src/webgui# nvm install node
  3. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/src/webgui# apt install -y npm
  4. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/src/webgui# apt install -y node
  5. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/src/webgui# wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
  6. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/src/webgui# nvm install node
  7. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/src/webgui# npm config set registry http://r.cnpmjs.org/;
  8. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/src/webgui# npm install --global vue-cli;
  9. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/src/webgui# npm install webpack -g;

五、修改TJM配置文件

  1. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/yamls# vim tjm.yaml
  2. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/yamls#
  3. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/yamls#
  4. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/yamls#
  5. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/yamls# cat tjm.yaml
  6. apiVersion: apps/v1
  7. kind: Deployment
  8. metadata:
  9. name: tjm
  10. namespace: default
  11. labels:
  12. app: tjm
  13. spec:
  14. replicas: 1
  15. selector:
  16. matchLabels:
  17. app: tjm
  18. template:
  19. metadata:
  20. labels:
  21. app: tjm
  22. spec:
  23. nodeSelector:
  24. masterselector: dls-master-node
  25. containers:
  26. - image: tjm:v0.0.1
  27. name: tjm-core
  28. imagePullPolicy: IfNotPresent
  29. command:
  30. - "/bin/bash"
  31. - "-c"
  32. - "/bin/bash /tjm/start.sh"
  33. env:
  34. # The following env variables set up basic auth twith the default admin user and admin password.
  35. - name: NFS_IP
  36. value: 192.168.1.99
  37. - name: NFS_ROOT_DIR
  38. value: "/data/atlas_dls"
  39. - name: INCLUSTER_FLAG
  40. value: "TRUE"
  41. - name: SERVICE_DOMAIN_NAME
  42. value: 192.168.1.99
  43. - name: CONTAINER_ROOT_DIR
  44. value: "/datanfs"
  45. - name: TENSORBOARD_IMAGE
  46. value: "tensorboard:latest"
  47. - name: TENSORBOARD_CPU
  48. value: "190"
  49. - name: TENSORBOARD_MEMORY
  50. value: "200Mi"
  51. - name: MINDINSIGHT_IMAGE
  52. value: "mindinsight:latest"
  53. - name: MINDINSIGHT_CPU
  54. value: "190"
  55. - name: MINDINSIGHT_MEMORY
  56. value: "2048Mi"
  57. - name: TIMEZONE
  58. value: "8"
  59. volumeMounts:
  60. - name: dls-data
  61. mountPath: /datanfs
  62. - name: localtime
  63. mountPath: /etc/localtime
  64. - name: dls-log
  65. mountPath: /var/log/atlas_dls/tjm
  66. resources:
  67. requests:
  68. cpu: "500m"
  69. memory: "100Mi"
  70. limits:
  71. cpu: "5000m"
  72. memory: "50000Mi"
  73. volumes:
  74. - name: dls-data
  75. nfs:
  76. server: 192.168.1.99
  77. path: /data/atlas_dls
  78. - name: localtime
  79. hostPath:
  80. path: /etc/localtime
  81. - name: dls-log
  82. hostPath:
  83. path: /var/log/atlas_dls/tjm
  84. ---
  85. kind: Service
  86. apiVersion: v1
  87. metadata:
  88. labels:
  89. app: tjm
  90. name: tjm
  91. namespace: default
  92. spec:
  93. ports:
  94. - port: 5003
  95. targetPort: 5003
  96. selector:
  97. app: tjm
  98. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/yamls#
  99. tjm.yaml
  100. 修改env字段中以下参数配置:
  101. - name: TENSORBOARD_IMAGE
  102. value: "tensorboard:latest" #Tensorboard镜像名和版本。
  103. - name: TENSORBOARD_CPU
  104. value: "1" #Tensorboard任务运行所需CPU,建议≥1。
  105. - name: TENSORBOARD_MEMORY
  106. value: "200Mi" #Tensorboard任务运行所需内存,建议≥100Mi。
  107. - name: MINDINSIGHT_IMAGE
  108. value: "mindinsight:latest" #Mindinsight镜像名和版本。
  109. - name: MINDINSIGHT_CPU
  110. value: "4" #Mindinsight任务运行所需CPU,建议≥4。
  111. - name: MINDINSIGHT_MEMORY
  112. value: "2048Mi" #Mindinsight任务运行所需内存,建议≥2048Mi。
  113. - name: TIMEZONE
  114. value: "8" #默认为8(东八区),根据实际配置时区。

六、修改MMS配置文件

  1. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/yamls# vim mms.yaml
  2. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/yamls# cat mms.yaml
  3. apiVersion: apps/v1
  4. kind: Deployment
  5. metadata:
  6. name: dls-mms-deploy
  7. namespace: default
  8. spec:
  9. replicas: 1
  10. selector:
  11. matchLabels:
  12. app: dls-mms
  13. template:
  14. metadata:
  15. labels:
  16. app: dls-mms
  17. spec:
  18. nodeSelector:
  19. masterselector: dls-master-node
  20. containers:
  21. - name: dls-mms
  22. image: mms:v0.0.1
  23. imagePullPolicy: IfNotPresent
  24. command: [ "/bin/bash", "-c", "--" ]
  25. args: [ "chmod 550 /data/mms/start.sh;/data/mms/start.sh" ]
  26. ports:
  27. - containerPort: 5000
  28. env:
  29. - name: NFS_IP
  30. value: 192.168.1.99
  31. - name: NFS_ROOT_DIR
  32. value: "/data/atlas_dls"
  33. - name: INCLUSTER_FLAG
  34. value: "TRUE"
  35. - name: CONTAINER_ROOT_DIR
  36. value: "/datanfs"
  37. - name: MODEL_CONVERT_IMAGE
  38. value: "tf-c73:b033-with-atc"
  39. volumeMounts:
  40. - name: dls-data
  41. mountPath: /datanfs
  42. - name: dls-log
  43. mountPath: /var/log/atlas_dls/mms
  44. - name: localtime
  45. mountPath: /etc/localtime
  46. resources:
  47. requests:
  48. cpu: "500m"
  49. memory: "100Mi"
  50. limits:
  51. cpu: "5000m"
  52. memory: "50000Mi"
  53. volumes:
  54. - name: dls-data
  55. nfs:
  56. server: 192.168.1.99
  57. path: "/data/atlas_dls"
  58. - name: dls-log
  59. hostPath:
  60. path: /var/log/atlas_dls/mms
  61. - name: localtime
  62. hostPath:
  63. path: /etc/localtime
  64. ---
  65. apiVersion: v1
  66. kind: Service
  67. metadata:
  68. name: dls-mms
  69. namespace: default
  70. labels:
  71. app: atlas-dls
  72. spec:
  73. ports:
  74. - name: dls-mms
  75. port: 5002
  76. protocol: TCP
  77. targetPort: 5002
  78. selector:
  79. app: dls-mms
  80. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/yamls#
  81. mms.yaml
  82. 修改env字段中以下参数配置:
  83. - name: MODEL_CONVERT_IMAGE
  84. value: "tf-c73:b033-with-atc" #模型转换镜像名

七、自动化安装,SHELL回显略

  1. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/playbooks# ansible-playbook deploy.yaml

八、拉去训练镜像

https://ascendhub.huawei.com/#/index

  1. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/playbooks# docker login -u 15648907522 -p tDYqC45NFQ2VVb1Wk48C0AK4PC02SBjBpoUDOjo7oqIpdjBSaPzZyR112lzbzBWve ascendhub.huawei.com
  2. WARNING! Using --password via the CLI is insecure. Use --password-stdin.
  3. WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
  4. Configure a credential helper to remove this warning. See
  5. https://docs.docker.com/engine/reference/commandline/login/#credentials-store
  6. Login Succeeded
  7. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/playbooks# docker pull ascendhub.huawei.com/public-ascendhub/ascend-mindspore-arm:21.0.1.spc001
  8. 21.0.1.spc001: Pulling from public-ascendhub/ascend-mindspore-arm
  9. fda1cca7a3cc: Already exists
  10. 11c90fde7ae4: Pull complete
  11. 7253b5e27781: Pull complete
  12. bbd60ae31b0e: Pull complete
  13. 5ff0775b62ee: Pull complete
  14. 4bd7bd3ffee1: Pull complete
  15. 8f7e244558aa: Pull complete
  16. 2782e4575e5b: Pull complete
  17. 6082e54e59ee: Pull complete
  18. bd1b2e5f115e: Pull complete
  19. 53142cd42310: Pull complete
  20. d746749ab006: Pull complete
  21. 691a8a68558b: Pull complete
  22. ecbb81572dc3: Pull complete
  23. 65d85230814c: Pull complete
  24. Digest: sha256:29069b29542554d5ac8f79c2be3ba78ace77751546bfad24b480acf782e39fa7
  25. Status: Downloaded newer image for ascendhub.huawei.com/public-ascendhub/ascend-mindspore-arm:21.0.1.spc001
  26. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/playbooks# docker pull ascendhub.huawei.com/public-ascendhub/ascend-tensorflow-arm:21.0.1
  27. 21.0.1: Pulling from public-ascendhub/ascend-tensorflow-arm
  28. 04da93b342eb: Pull complete
  29. b235194751de: Pull complete
  30. 606a67bb8db9: Pull complete
  31. 4af9b0a6671e: Pull complete
  32. aa86c517c858: Pull complete
  33. 7d232de65c7f: Pull complete
  34. 396a8ab7f029: Pull complete
  35. bc0d0369a1f9: Pull complete
  36. 86f265d63edf: Pull complete
  37. 0cef5083e917: Pull complete
  38. 360419151a16: Pull complete
  39. 06436a96fc81: Pull complete
  40. 13611bc87943: Pull complete
  41. 2127513261ef: Pull complete
  42. Digest: sha256:0e6fac7ec1cb09bb57bbd076d6b6054f44f91afe6dfadfca2270a51ba2fc53e0
  43. Status: Downloaded newer image for ascendhub.huawei.com/public-ascendhub/ascend-tensorflow-arm:21.0.1
  44. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/playbooks# docker pull ascendhub.huawei.com/public-ascendhub/ascend-pytorch-arm:21.0.1
  45. 21.0.1: Pulling from public-ascendhub/ascend-pytorch-arm
  46. 04da93b342eb: Already exists
  47. b235194751de: Already exists
  48. 606a67bb8db9: Already exists
  49. e93c757bff45: Pull complete
  50. 3cf04b2262e0: Pull complete
  51. b747b6b075df: Pull complete
  52. 9d1ca426ec5d: Pull complete
  53. 6709e46dffeb: Pull complete
  54. c9a5fa495f7c: Pull complete
  55. 88232903df71: Pull complete
  56. ef57b6fb083b: Pull complete
  57. ea40e63aedc6: Pull complete
  58. fb00b3f33bf9: Pull complete
  59. 7fa0e069227a: Pull complete
  60. c875eb36de84: Pull complete
  61. Digest: sha256:57f724d4b938753102d09d0ffbab5b0c0697cf3e37b1e8ac948bb8a8df356958
  62. Status: Downloaded newer image for ascendhub.huawei.com/public-ascendhub/ascend-pytorch-arm:21.0.1
  63. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/playbooks#
  64. root@ubuntu:~/123/mindxdl-sample-20210715-V2.0.2/deploy/playbooks#

九、构建jupyter-notebook镜像

  1. root@ubuntu:~/123# mkdir jupyter-notebook
  2. root@ubuntu:~/123#
  3. root@ubuntu:~/123# cd jupyter-notebook/
  4. root@ubuntu:~/123/jupyter-notebook# ls
  5. root@ubuntu:~/123/jupyter-notebook#
  6. root@ubuntu:~/123/jupyter-notebook#
  7. root@ubuntu:~/123/jupyter-notebook# vi Dockerfile
  8. root@ubuntu:~/123/jupyter-notebook#
  9. root@ubuntu:~/123/jupyter-notebook#
  10. root@ubuntu:~/123/jupyter-notebook# docker build -t notebook .^C
  11. root@ubuntu:~/123/jupyter-notebook#
  12. root@ubuntu:~/123/jupyter-notebook#
  13. root@ubuntu:~/123/jupyter-notebook#
  14. root@ubuntu:~/123/jupyter-notebook# cat Dockerfile
  15. From python:3.7.5
  16. # -------------------------(Optional) Configure the proxy and source.-----------------------
  17. #ENV http_proxy http://<user>:<password>@ip:port
  18. #ENV https_proxy http://<user>:<password>@ip:port
  19. #ENV ftp_proxy ftp://<user>:<password>@ip:port
  20. RUN mkdir -p ~/.pip \
  21. && echo '[global] \n\
  22. index-url=https://pypi.doubanio.com/simple/\n\
  23. trusted-host=pypi.doubanio.com' >> ~/.pip/pip.conf
  24. RUN pip install jupyter \
  25. && jupyter notebook --generate-config \
  26. && echo "c.NotebookApp.ip='0.0.0.0' \n\
  27. c.NotebookApp.open_browser = False \n\
  28. c.NotebookApp.token = '' \n\
  29. c.NotebookApp.port =8888" >> ~/.jupyter/jupyter_notebook_config.py
  30. RUN apt-get update \
  31. && apt-get install -y openssh-server
  32. RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config \
  33. && sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
  34. ENV http_proxy ''
  35. ENV https_proxy ''
  36. ENV ftp_proxy ''
  37. RUN useradd -d /home/hwMindX -u 9000 -m -s /bin/bash hwMindX && \
  38. useradd -d /home/HwHiAiUser -u 1000 -m -s /bin/bash HwHiAiUser && \
  39. usermod -a -G HwHiAiUser hwMindX
  40. RUN echo root:123123 | chpasswd
  41. USER hwMindX
  42. ENTRYPOINT jupyter notebook --allow-root
  43. root@ubuntu:~/123/jupyter-notebook# docker build -t notebook .
  44. Sending build context to Docker daemon 3.072kB
  45. Step 1/12 : From python:3.7.5
  46. ---> a4356c370cda
  47. Step 2/12 : RUN mkdir -p ~/.pip && echo '[global] \nindex-url=https://pypi.doubanio.com/simple/\ntrusted-host=pypi.doubanio.com' >> ~/.pip/pip.conf
  48. ---> Running in 841fef0bfec2
  49. Removing intermediate container 841fef0bfec2
  50. ---> 2e9619b95f3c
  51. Step 3/12 : RUN pip install jupyter && jupyter notebook --generate-config && echo "c.NotebookApp.ip='0.0.0.0' \nc.NotebookApp.open_browser = False \nc.NotebookApp.token = '' \nc.NotebookApp.port =8888" >> ~/.jupyter/jupyter_notebook_config.py
  52. ---> Running in e8a384542bf2
  53. Looking in indexes: https://pypi.doubanio.com/simple/
  54. Collecting jupyter
  55. Downloading https://pypi.doubanio.com/packages/83/df/0f5dd132200728a86190397e1ea87cd76244e42d39ec5e88efd25b2abd7e/jupyter-1.0.0-py2.py3-none-any.whl
  56. Collecting nbconvert
  57. Downloading https://pypi.doubanio.com/packages/fd/12/7b225ea00a5fe32df30b2c303dcc8c21c8db533ea7c0e38b4ac5a41bd8f0/nbconvert-6.1.0-py3-none-any.whl (551kB)
  58. Collecting qtconsole
  59. Downloading https://pypi.doubanio.com/packages/3a/57/c8fc1fc6fb6bc03caca20ace9cd0ac0e16cc052b51cbe3acbeeb53abcb18/qtconsole-5.1.1-py3-none-any.whl (119kB)
  60. Collecting ipykernel
  61. Downloading https://pypi.doubanio.com/packages/d4/9a/59010716573b2aae10ccf88ea275c9a50943a7f8d4a123ad3c6f385a6c94/ipykernel-6.2.0-py3-none-any.whl (122kB)
  62. Collecting ipywidgets
  63. Downloading https://pypi.doubanio.com/packages/11/53/084940a83a8158364e630a664a30b03068c25ab75243224d6b488800d43a/ipywidgets-7.6.3-py2.py3-none-any.whl (121kB)
  64. Collecting notebook
  65. Downloading https://pypi.doubanio.com/packages/3c/0e/9883ebfa204c7328fab473e04bda8066b00960fadc6698972afa62ddf0ce/notebook-6.4.3-py3-none-any.whl (9.9MB)
  66. Collecting jupyter-console
  67. Downloading https://pypi.doubanio.com/packages/59/cd/aa2670ffc99eb3e5bbe2294c71e4bf46a9804af4f378d09d7a8950996c9b/jupyter_console-6.4.0-py3-none-any.whl
  68. Collecting nbformat>=4.4
  69. Downloading https://pypi.doubanio.com/packages/e7/c7/dd50978c637a7af8234909277c4e7ec1b71310c13fb3135f3c8f5b6e045f/nbformat-5.1.3-py3-none-any.whl (178kB)
  70. Collecting testpath
  71. Downloading https://pypi.doubanio.com/packages/ac/87/5422f6d056bfbded920ccf380a65de3713a3b95a95ba2255be2a3fb4f464/testpath-0.5.0-py3-none-any.whl (84kB)
  72. Collecting traitlets>=5.0
  73. Downloading https://pypi.doubanio.com/packages/f6/7d/3ecb0ebd0ce8dcdfa7bd47ab85c1d4a521e6770ef283d0824f5804994dfe/traitlets-5.0.5-py3-none-any.whl (100kB)
  74. Collecting mistune<2,>=0.8.1
  75. Downloading https://pypi.doubanio.com/packages/09/ec/4b43dae793655b7d8a25f76119624350b4d65eb663459eb9603d7f1f0345/mistune-0.8.4-py2.py3-none-any.whl
  76. Collecting defusedxml
  77. Downloading https://pypi.doubanio.com/packages/07/6c/aa3f2f849e01cb6a001cd8554a88d4c77c5c1a31c95bdf1cf9301e6d9ef4/defusedxml-0.7.1-py2.py3-none-any.whl
  78. Collecting bleach
  79. Downloading https://pypi.doubanio.com/packages/b6/23/d06c0bddcef0df58dd2c9ac02f8639533a6671bed0ef3e236888bb3b0a3c/bleach-4.0.0-py2.py3-none-any.whl (146kB)
  80. Collecting pandocfilters>=1.4.1
  81. Downloading https://pypi.doubanio.com/packages/28/78/bd59a9adb72fa139b1c9c186e6f65aebee52375a747e4b6a6dcf0880956f/pandocfilters-1.4.3.tar.gz
  82. Collecting entrypoints>=0.2.2
  83. Downloading https://pypi.doubanio.com/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl
  84. Collecting jupyter-core
  85. Downloading https://pypi.doubanio.com/packages/53/40/5af36bffa0af3ac71d3a6fc6709de10e4f6ff7c01745b8bc4715372189c9/jupyter_core-4.7.1-py3-none-any.whl (82kB)
  86. Collecting pygments>=2.4.1
  87. Downloading https://pypi.doubanio.com/packages/78/c8/8d9be2f72d8f465461f22b5f199c04f7ada933add4dae6e2468133c17471/Pygments-2.10.0-py3-none-any.whl (1.0MB)
  88. Collecting jupyterlab-pygments
  89. Downloading https://pypi.doubanio.com/packages/a8/6f/c34288766797193b512c6508f5994b830fb06134fdc4ca8214daba0aa443/jupyterlab_pygments-0.1.2-py2.py3-none-any.whl
  90. Collecting nbclient<0.6.0,>=0.5.0
  91. Downloading https://pypi.doubanio.com/packages/a7/ed/b764fa931614cb7ed9bebbc42532daecef405d6bef660eeda882f6c23b98/nbclient-0.5.4-py3-none-any.whl (66kB)
  92. Collecting jinja2>=2.4
  93. Downloading https://pypi.doubanio.com/packages/80/21/ae597efc7ed8caaa43fb35062288baaf99a7d43ff0cf66452ddf47604ee6/Jinja2-3.0.1-py3-none-any.whl (133kB)
  94. Collecting ipython-genutils
  95. Downloading https://pypi.doubanio.com/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl
  96. Collecting pyzmq>=17.1
  97. Downloading https://pypi.doubanio.com/packages/61/48/308d03af40bf44c86ef826d942b12bdab5fbae6282e858bdff8bd55b0818/pyzmq-22.2.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.8MB)
  98. Collecting jupyter-client>=4.1
  99. Downloading https://pypi.doubanio.com/packages/b0/21/2104133f07e34f58712c87f0feaacdd38b5baff1ddb6ab72bb4baf16fc4a/jupyter_client-7.0.1-py3-none-any.whl (122kB)
  100. Collecting qtpy
  101. Downloading https://pypi.doubanio.com/packages/21/0d/1cc56aa1df049d9f989520ee8214a6ccfd236095d56060967afdb0b8f0d8/QtPy-1.10.0-py2.py3-none-any.whl (54kB)
  102. Collecting tornado<7.0,>=4.2
  103. Downloading https://pypi.doubanio.com/packages/27/27/95912ec1ecbd5f3cc1ce76a8d62cb63d62ebee575acf02116814d42ea5eb/tornado-6.1-cp37-cp37m-manylinux2014_aarch64.whl (428kB)
  104. Collecting importlib-metadata<5; python_version < "3.8.0"
  105. Downloading https://pypi.doubanio.com/packages/c0/72/4512a88e402d4dc3bab49a845130d95ac48936ef3a9469b55cc79a60d84d/importlib_metadata-4.6.4-py3-none-any.whl
  106. Collecting ipython<8.0,>=7.23.1
  107. Downloading https://pypi.doubanio.com/packages/25/a0/e0b850415984ac29f14775b075efc54d73b38f0d50c6ebdea7820ffb1c12/ipython-7.26.0-py3-none-any.whl (786kB)
  108. Collecting argcomplete>=1.12.3; python_version < "3.8.0"
  109. Downloading https://pypi.doubanio.com/packages/b7/9e/9dc74d330c07866d72f62d553fe8bdbe32786ff247a14e68b5659963e6bd/argcomplete-1.12.3-py2.py3-none-any.whl
  110. Collecting debugpy<2.0,>=1.0.0
  111. Downloading https://pypi.doubanio.com/packages/c5/2d/876b1140b1544fe2187235ae9f52cdcd1e77d2bad641ea2aef413e882751/debugpy-1.4.1-py2.py3-none-any.whl (4.2MB)
  112. Collecting matplotlib-inline<0.2.0,>=0.1.0
  113. Downloading https://pypi.doubanio.com/packages/7f/de/6c111d687335729cf8c156394c8d119b0dc3c34b6966ff2a2f7fe4aa79cf/matplotlib_inline-0.1.2-py3-none-any.whl
  114. Collecting jupyterlab-widgets>=1.0.0; python_version >= "3.6"
  115. Downloading https://pypi.doubanio.com/packages/18/b5/3473d275e3b2359efdf5768e9df95537308b93a31ad94fa92814ac565826/jupyterlab_widgets-1.0.0-py3-none-any.whl (243kB)
  116. Collecting widgetsnbextension~=3.5.0
  117. Downloading https://pypi.doubanio.com/packages/6c/7b/7ac231c20d2d33c445eaacf8a433f4e22c60677eb9776c7c5262d7ddee2d/widgetsnbextension-3.5.1-py2.py3-none-any.whl (2.2MB)
  118. Collecting argon2-cffi
  119. Downloading https://pypi.doubanio.com/packages/74/fd/d78e003a79c453e8454197092fce9d1c6099445b7e7da0b04eb4fe1dbab7/argon2-cffi-20.1.0.tar.gz (1.8MB)
  120. Installing build dependencies: started
  121. Installing build dependencies: finished with status 'done'
  122. Getting requirements to build wheel: started
  123. Getting requirements to build wheel: finished with status 'done'
  124. Preparing wheel metadata: started
  125. Preparing wheel metadata: finished with status 'done'
  126. Collecting terminado>=0.8.3
  127. Downloading https://pypi.doubanio.com/packages/5b/a8/0c428a9a2432b611566b0309d1a50a051f4ec965ce274528c4ba6b6c0205/terminado-0.11.1-py3-none-any.whl
  128. Collecting Send2Trash>=1.5.0
  129. Downloading https://pypi.doubanio.com/packages/47/26/3435896d757335ea53dce5abf8d658ca80757a7a06258451b358f10232be/Send2Trash-1.8.0-py3-none-any.whl
  130. Collecting prometheus-client
  131. Downloading https://pypi.doubanio.com/packages/09/da/4e8471ff825769581593b5b84769d32f58e5373b59fccaf355d3529ad530/prometheus_client-0.11.0-py2.py3-none-any.whl (56kB)
  132. Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
  133. Downloading https://pypi.doubanio.com/packages/c6/37/ec72228971dbaf191243b8ee383c6a3834b5cde23daab066dfbfbbd5438b/prompt_toolkit-3.0.20-py3-none-any.whl (370kB)
  134. Collecting jsonschema!=2.5.0,>=2.4
  135. Downloading https://pypi.doubanio.com/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl (56kB)
  136. Collecting webencodings
  137. Downloading https://pypi.doubanio.com/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl
  138. Collecting packaging
  139. Downloading https://pypi.doubanio.com/packages/3c/77/e2362b676dc5008d81be423070dd9577fa03be5da2ba1105811900fda546/packaging-21.0-py3-none-any.whl (40kB)
  140. Collecting six>=1.9.0
  141. Downloading https://pypi.doubanio.com/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
  142. Collecting nest-asyncio
  143. Downloading https://pypi.doubanio.com/packages/52/e2/9b37da54e6e9094d2f558ae643d1954a0fa8215dfee4fa261f31c5439796/nest_asyncio-1.5.1-py3-none-any.whl
  144. Collecting MarkupSafe>=2.0
  145. Downloading https://pypi.doubanio.com/packages/a3/01/8d5fd91ccc1a61b7a9e2803819b8b60c3bac37290bbbd3df33d8d548f9c1/MarkupSafe-2.0.1-cp37-cp37m-manylinux2014_aarch64.whl
  146. Collecting python-dateutil>=2.1
  147. Downloading https://pypi.doubanio.com/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247kB)
  148. Collecting zipp>=0.5
  149. Downloading https://pypi.doubanio.com/packages/92/d9/89f433969fb8dc5b9cbdd4b4deb587720ec1aeb59a020cf15002b9593eef/zipp-3.5.0-py3-none-any.whl
  150. Collecting typing-extensions>=3.6.4; python_version < "3.8"
  151. Downloading https://pypi.doubanio.com/packages/2e/35/6c4fff5ab443b57116cb1aad46421fb719bed2825664e8fe77d66d99bcbc/typing_extensions-3.10.0.0-py3-none-any.whl
  152. Collecting backcall
  153. Downloading https://pypi.doubanio.com/packages/4c/1c/ff6546b6c12603d8dd1070aa3c3d273ad4c07f5771689a7b69a550e8c951/backcall-0.2.0-py2.py3-none-any.whl
  154. Collecting pexpect>4.3; sys_platform != "win32"
  155. Downloading https://pypi.doubanio.com/packages/39/7b/88dbb785881c28a102619d46423cb853b46dbccc70d3ac362d99773a78ce/pexpect-4.8.0-py2.py3-none-any.whl (59kB)
  156. Collecting jedi>=0.16
  157. Downloading https://pypi.doubanio.com/packages/f9/36/7aa67ae2663025b49e8426ead0bad983fee1b73f472536e9790655da0277/jedi-0.18.0-py2.py3-none-any.whl (1.4MB)
  158. Requirement already satisfied: setuptools>=18.5 in /usr/local/lib/python3.7/site-packages (from ipython<8.0,>=7.23.1->ipykernel->jupyter) (41.6.0)
  159. Collecting pickleshare
  160. Downloading https://pypi.doubanio.com/packages/9a/41/220f49aaea88bc6fa6cba8d05ecf24676326156c23b991e80b3f2fc24c77/pickleshare-0.7.5-py2.py3-none-any.whl
  161. Collecting decorator
  162. Downloading https://pypi.doubanio.com/packages/6a/36/b1b9bfdf28690ae01d9ca0aa5b0d07cb4448ac65fb91dc7e2d094e3d992f/decorator-5.0.9-py3-none-any.whl
  163. Collecting cffi>=1.0.0
  164. Downloading https://pypi.doubanio.com/packages/7c/d7/027b40eab051119083fa64be7f86c40fc96643c627fd5068462b88f72111/cffi-1.14.6-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (206kB)
  165. Collecting ptyprocess; os_name != "nt"
  166. Downloading https://pypi.doubanio.com/packages/22/a6/858897256d0deac81a172289110f31629fc4cee19b6f01283303e18c8db3/ptyprocess-0.7.0-py2.py3-none-any.whl
  167. Collecting wcwidth
  168. Downloading https://pypi.doubanio.com/packages/59/7c/e39aca596badaf1b78e8f547c807b04dae603a433d3e7a7e04d67f2ef3e5/wcwidth-0.2.5-py2.py3-none-any.whl
  169. Collecting pyrsistent>=0.14.0
  170. Downloading https://pypi.doubanio.com/packages/f4/d7/0fa558c4fb00f15aabc6d42d365fcca7a15fcc1091cd0f5784a14f390b7f/pyrsistent-0.18.0.tar.gz (104kB)
  171. Installing build dependencies: started
  172. Installing build dependencies: finished with status 'done'
  173. Getting requirements to build wheel: started
  174. Getting requirements to build wheel: finished with status 'done'
  175. Preparing wheel metadata: started
  176. Preparing wheel metadata: finished with status 'done'
  177. Collecting attrs>=17.4.0
  178. Downloading https://pypi.doubanio.com/packages/20/a9/ba6f1cd1a1517ff022b35acd6a7e4246371dfab08b8e42b829b6d07913cc/attrs-21.2.0-py2.py3-none-any.whl (53kB)
  179. Collecting pyparsing>=2.0.2
  180. Downloading https://pypi.doubanio.com/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67kB)
  181. Collecting parso<0.9.0,>=0.8.0
  182. Downloading https://pypi.doubanio.com/packages/a9/c4/d5476373088c120ffed82f34c74b266ccae31a68d665b837354d4d8dc8be/parso-0.8.2-py2.py3-none-any.whl (94kB)
  183. Collecting pycparser
  184. Downloading https://pypi.doubanio.com/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl (112kB)
  185. Building wheels for collected packages: argon2-cffi, pyrsistent
  186. Building wheel for argon2-cffi (PEP 517): started
  187. Building wheel for argon2-cffi (PEP 517): finished with status 'done'
  188. Created wheel for argon2-cffi: filename=argon2_cffi-20.1.0-cp37-abi3-linux_aarch64.whl size=94330 sha256=a7e904c263450da07cbc3a73891e049bab3035c37841778963599e544d3df91c
  189. Stored in directory: /root/.cache/pip/wheels/bd/00/bf/afb81816e42f4cd82890c552262451d2683fce154d72a2a7f2
  190. Building wheel for pyrsistent (PEP 517): started
  191. Building wheel for pyrsistent (PEP 517): finished with status 'done'
  192. Created wheel for pyrsistent: filename=pyrsistent-0.18.0-cp37-cp37m-linux_aarch64.whl size=124391 sha256=4aa68debe7bd18cef92085f61bcff6ca4a308e7a0c3baa6d5e9b79d011a0860b
  193. Stored in directory: /root/.cache/pip/wheels/41/82/79/02feba19913ccf53c135a504fd28677aeecf1980d76c1bfad5
  194. Successfully built argon2-cffi pyrsistent
  195. Building wheels for collected packages: pandocfilters
  196. Building wheel for pandocfilters (setup.py): started
  197. Building wheel for pandocfilters (setup.py): finished with status 'done'
  198. Created wheel for pandocfilters: filename=pandocfilters-1.4.3-cp37-none-any.whl size=7991 sha256=74eac0d992a7841f6066709dcd1dcabfa4fa58eb171649fbaef06b141bcd033c
  199. Stored in directory: /root/.cache/pip/wheels/f3/b7/38/9a1fac073c6eb0cc2524036dfcef319b829ce237c80c31c044
  200. Successfully built pandocfilters
  201. Installing collected packages: ipython-genutils, traitlets, jupyter-core, pyrsistent, six, attrs, zipp, typing-extensions, importlib-metadata, jsonschema, nbformat, testpath, mistune, defusedxml, webencodings, pyparsing, packaging, bleach, pandocfilters, entrypoints, pygments, jupyterlab-pygments, nest-asyncio, pyzmq, python-dateutil, tornado, jupyter-client, nbclient, MarkupSafe, jinja2, nbconvert, backcall, ptyprocess, pexpect, parso, jedi, matplotlib-inline, pickleshare, decorator, wcwidth, prompt-toolkit, ipython, argcomplete, debugpy, ipykernel, qtpy, qtconsole, jupyterlab-widgets, pycparser, cffi, argon2-cffi, terminado, Send2Trash, prometheus-client, notebook, widgetsnbextension, ipywidgets, jupyter-console, jupyter
  202. Successfully installed MarkupSafe-2.0.1 Send2Trash-1.8.0 argcomplete-1.12.3 argon2-cffi-20.1.0 attrs-21.2.0 backcall-0.2.0 bleach-4.0.0 cffi-1.14.6 debugpy-1.4.1 decorator-5.0.9 defusedxml-0.7.1 entrypoints-0.3 importlib-metadata-4.6.4 ipykernel-6.2.0 ipython-7.26.0 ipython-genutils-0.2.0 ipywidgets-7.6.3 jedi-0.18.0 jinja2-3.0.1 jsonschema-3.2.0 jupyter-1.0.0 jupyter-client-7.0.1 jupyter-console-6.4.0 jupyter-core-4.7.1 jupyterlab-pygments-0.1.2 jupyterlab-widgets-1.0.0 matplotlib-inline-0.1.2 mistune-0.8.4 nbclient-0.5.4 nbconvert-6.1.0 nbformat-5.1.3 nest-asyncio-1.5.1 notebook-6.4.3 packaging-21.0 pandocfilters-1.4.3 parso-0.8.2 pexpect-4.8.0 pickleshare-0.7.5 prometheus-client-0.11.0 prompt-toolkit-3.0.20 ptyprocess-0.7.0 pycparser-2.20 pygments-2.10.0 pyparsing-2.4.7 pyrsistent-0.18.0 python-dateutil-2.8.2 pyzmq-22.2.1 qtconsole-5.1.1 qtpy-1.10.0 six-1.16.0 terminado-0.11.1 testpath-0.5.0 tornado-6.1 traitlets-5.0.5 typing-extensions-3.10.0.0 wcwidth-0.2.5 webencodings-0.5.1 widgetsnbextension-3.5.1 zipp-3.5.0
  203. WARNING: You are using pip version 19.3.1; however, version 21.2.4 is available.
  204. You should consider upgrading via the 'pip install --upgrade pip' command.
  205. Writing default config to: /root/.jupyter/jupyter_notebook_config.py
  206. Removing intermediate container e8a384542bf2
  207. ---> cc59b531125b
  208. Step 4/12 : RUN apt-get update && apt-get install -y openssh-server
  209. ---> Running in 2e945ea6c6c8
  210. Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
  211. Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
  212. Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
  213. Get:4 http://security.debian.org/debian-security buster/updates/main arm64 Packages [296 kB]
  214. Get:5 http://deb.debian.org/debian buster/main arm64 Packages [7735 kB]
  215. Get:6 http://deb.debian.org/debian buster-updates/main arm64 Packages [14.5 kB]
  216. Fetched 8285 kB in 3s (2598 kB/s)
  217. Reading package lists...
  218. Reading package lists...
  219. Building dependency tree...
  220. Reading state information...
  221. The following additional packages will be installed:
  222. dbus dmsetup libapparmor1 libargon2-1 libcryptsetup12 libdbus-1-3
  223. libdevmapper1.02.1 libidn11 libip4tc0 libjson-c3 libkmod2 libnss-systemd
  224. libpam-systemd libsystemd0 libwrap0 libxmuu1 ncurses-term openssh-client
  225. openssh-sftp-server systemd systemd-sysv xauth
  226. Suggested packages:
  227. default-dbus-session-bus | dbus-session-bus keychain libpam-ssh monkeysphere
  228. ssh-askpass molly-guard rssh ufw systemd-container policykit-1
  229. The following NEW packages will be installed:
  230. dbus dmsetup libapparmor1 libargon2-1 libcryptsetup12 libdbus-1-3
  231. libdevmapper1.02.1 libidn11 libip4tc0 libjson-c3 libkmod2 libnss-systemd
  232. libpam-systemd libwrap0 libxmuu1 ncurses-term openssh-server
  233. openssh-sftp-server systemd systemd-sysv xauth
  234. The following packages will be upgraded:
  235. libsystemd0 openssh-client
  236. 2 upgraded, 21 newly installed, 0 to remove and 130 not upgraded.
  237. Need to get 7006 kB of archives.
  238. After this operation, 23.5 MB of additional disk space will be used.
  239. Get:1 http://deb.debian.org/debian buster/main arm64 libapparmor1 arm64 2.13.2-10 [93.8 kB]
  240. Get:2 http://security.debian.org/debian-security buster/updates/main arm64 libsystemd0 arm64 241-7~deb10u8 [314 kB]
  241. Get:3 http://deb.debian.org/debian buster/main arm64 libargon2-1 arm64 0~20171227-0.2 [18.9 kB]
  242. Get:4 http://deb.debian.org/debian buster/main arm64 dmsetup arm64 2:1.02.155-3 [83.9 kB]
  243. Get:5 http://deb.debian.org/debian buster/main arm64 libdevmapper1.02.1 arm64 2:1.02.155-3 [124 kB]
  244. Get:6 http://deb.debian.org/debian buster/main arm64 libjson-c3 arm64 0.12.1+ds-2+deb10u1 [26.8 kB]
  245. Get:7 http://deb.debian.org/debian buster/main arm64 libcryptsetup12 arm64 2:2.1.0-5+deb10u2 [181 kB]
  246. Get:8 http://security.debian.org/debian-security buster/updates/main arm64 systemd arm64 241-7~deb10u8 [3256 kB]
  247. Get:9 http://deb.debian.org/debian buster/main arm64 libidn11 arm64 1.33-2.2 [113 kB]
  248. Get:10 http://deb.debian.org/debian buster/main arm64 libip4tc0 arm64 1.8.2-4 [69.6 kB]
  249. Get:11 http://deb.debian.org/debian buster/main arm64 libkmod2 arm64 26-1 [49.4 kB]
  250. Get:12 http://deb.debian.org/debian buster/main arm64 libdbus-1-3 arm64 1.12.20-0+deb10u1 [206 kB]
  251. Get:13 http://deb.debian.org/debian buster/main arm64 dbus arm64 1.12.20-0+deb10u1 [227 kB]
  252. Get:14 http://deb.debian.org/debian buster/main arm64 ncurses-term all 6.1+20181013-2+deb10u2 [490 kB]
  253. Get:15 http://deb.debian.org/debian buster/main arm64 openssh-client arm64 1:7.9p1-10+deb10u2 [757 kB]
  254. Get:16 http://deb.debian.org/debian buster/main arm64 libwrap0 arm64 7.6.q-28 [58.4 kB]
  255. Get:17 http://security.debian.org/debian-security buster/updates/main arm64 systemd-sysv arm64 241-7~deb10u8 [100 kB]
  256. Get:18 http://security.debian.org/debian-security buster/updates/main arm64 libpam-systemd arm64 241-7~deb10u8 [201 kB]
  257. Get:19 http://security.debian.org/debian-security buster/updates/main arm64 libnss-systemd arm64 241-7~deb10u8 [197 kB]
  258. Get:20 http://deb.debian.org/debian buster/main arm64 libxmuu1 arm64 2:1.1.2-2+b3 [24.1 kB]
  259. Get:21 http://deb.debian.org/debian buster/main arm64 openssh-sftp-server arm64 1:7.9p1-10+deb10u2 [42.8 kB]
  260. Get:22 http://deb.debian.org/debian buster/main arm64 openssh-server arm64 1:7.9p1-10+deb10u2 [334 kB]
  261. Get:23 http://deb.debian.org/debian buster/main arm64 xauth arm64 1:1.0.10-1 [38.2 kB]
  262. debconf: delaying package configuration, since apt-utils is not installed
  263. Fetched 7006 kB in 1s (6820 kB/s)
  264. (Reading database ... 24499 files and directories currently installed.)
  265. Preparing to unpack .../libsystemd0_241-7~deb10u8_arm64.deb ...
  266. Unpacking libsystemd0:arm64 (241-7~deb10u8) over (241-7~deb10u2) ...
  267. Setting up libsystemd0:arm64 (241-7~deb10u8) ...
  268. Selecting previously unselected package libapparmor1:arm64.
  269. (Reading database ... 24499 files and directories currently installed.)
  270. Preparing to unpack .../0-libapparmor1_2.13.2-10_arm64.deb ...
  271. Unpacking libapparmor1:arm64 (2.13.2-10) ...
  272. Selecting previously unselected package libargon2-1:arm64.
  273. Preparing to unpack .../1-libargon2-1_0~20171227-0.2_arm64.deb ...
  274. Unpacking libargon2-1:arm64 (0~20171227-0.2) ...
  275. Selecting previously unselected package dmsetup.
  276. Preparing to unpack .../2-dmsetup_2%3a1.02.155-3_arm64.deb ...
  277. Unpacking dmsetup (2:1.02.155-3) ...
  278. Selecting previously unselected package libdevmapper1.02.1:arm64.
  279. Preparing to unpack .../3-libdevmapper1.02.1_2%3a1.02.155-3_arm64.deb ...
  280. Unpacking libdevmapper1.02.1:arm64 (2:1.02.155-3) ...
  281. Selecting previously unselected package libjson-c3:arm64.
  282. Preparing to unpack .../4-libjson-c3_0.12.1+ds-2+deb10u1_arm64.deb ...
  283. Unpacking libjson-c3:arm64 (0.12.1+ds-2+deb10u1) ...
  284. Selecting previously unselected package libcryptsetup12:arm64.
  285. Preparing to unpack .../5-libcryptsetup12_2%3a2.1.0-5+deb10u2_arm64.deb ...
  286. Unpacking libcryptsetup12:arm64 (2:2.1.0-5+deb10u2) ...
  287. Selecting previously unselected package libidn11:arm64.
  288. Preparing to unpack .../6-libidn11_1.33-2.2_arm64.deb ...
  289. Unpacking libidn11:arm64 (1.33-2.2) ...
  290. Selecting previously unselected package libip4tc0:arm64.
  291. Preparing to unpack .../7-libip4tc0_1.8.2-4_arm64.deb ...
  292. Unpacking libip4tc0:arm64 (1.8.2-4) ...
  293. Selecting previously unselected package libkmod2:arm64.
  294. Preparing to unpack .../8-libkmod2_26-1_arm64.deb ...
  295. Unpacking libkmod2:arm64 (26-1) ...
  296. Selecting previously unselected package systemd.
  297. Preparing to unpack .../9-systemd_241-7~deb10u8_arm64.deb ...
  298. Unpacking systemd (241-7~deb10u8) ...
  299. Setting up libapparmor1:arm64 (2.13.2-10) ...
  300. Setting up libargon2-1:arm64 (0~20171227-0.2) ...
  301. Setting up libjson-c3:arm64 (0.12.1+ds-2+deb10u1) ...
  302. Setting up libidn11:arm64 (1.33-2.2) ...
  303. Setting up libip4tc0:arm64 (1.8.2-4) ...
  304. Setting up libkmod2:arm64 (26-1) ...
  305. Setting up libdevmapper1.02.1:arm64 (2:1.02.155-3) ...
  306. Setting up libcryptsetup12:arm64 (2:2.1.0-5+deb10u2) ...
  307. Setting up systemd (241-7~deb10u8) ...
  308. Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service → /lib/systemd/system/getty@.service.
  309. Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /lib/systemd/system/remote-fs.target.
  310. Created symlink /etc/systemd/system/dbus-org.freedesktop.timesync1.service → /lib/systemd/system/systemd-timesyncd.service.
  311. Created symlink /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service → /lib/systemd/system/systemd-timesyncd.service.
  312. Setting up dmsetup (2:1.02.155-3) ...
  313. Selecting previously unselected package systemd-sysv.
  314. (Reading database ... 25328 files and directories currently installed.)
  315. Preparing to unpack .../00-systemd-sysv_241-7~deb10u8_arm64.deb ...
  316. Unpacking systemd-sysv (241-7~deb10u8) ...
  317. Selecting previously unselected package libdbus-1-3:arm64.
  318. Preparing to unpack .../01-libdbus-1-3_1.12.20-0+deb10u1_arm64.deb ...
  319. Unpacking libdbus-1-3:arm64 (1.12.20-0+deb10u1) ...
  320. Selecting previously unselected package dbus.
  321. Preparing to unpack .../02-dbus_1.12.20-0+deb10u1_arm64.deb ...
  322. Unpacking dbus (1.12.20-0+deb10u1) ...
  323. Selecting previously unselected package libpam-systemd:arm64.
  324. Preparing to unpack .../03-libpam-systemd_241-7~deb10u8_arm64.deb ...
  325. Unpacking libpam-systemd:arm64 (241-7~deb10u8) ...
  326. Selecting previously unselected package ncurses-term.
  327. Preparing to unpack .../04-ncurses-term_6.1+20181013-2+deb10u2_all.deb ...
  328. Unpacking ncurses-term (6.1+20181013-2+deb10u2) ...
  329. Preparing to unpack .../05-openssh-client_1%3a7.9p1-10+deb10u2_arm64.deb ...
  330. Unpacking openssh-client (1:7.9p1-10+deb10u2) over (1:7.9p1-10+deb10u1) ...
  331. Selecting previously unselected package libwrap0:arm64.
  332. Preparing to unpack .../06-libwrap0_7.6.q-28_arm64.deb ...
  333. Unpacking libwrap0:arm64 (7.6.q-28) ...
  334. Selecting previously unselected package libxmuu1:arm64.
  335. Preparing to unpack .../07-libxmuu1_2%3a1.1.2-2+b3_arm64.deb ...
  336. Unpacking libxmuu1:arm64 (2:1.1.2-2+b3) ...
  337. Selecting previously unselected package openssh-sftp-server.
  338. Preparing to unpack .../08-openssh-sftp-server_1%3a7.9p1-10+deb10u2_arm64.deb ...
  339. Unpacking openssh-sftp-server (1:7.9p1-10+deb10u2) ...
  340. Selecting previously unselected package openssh-server.
  341. Preparing to unpack .../09-openssh-server_1%3a7.9p1-10+deb10u2_arm64.deb ...
  342. Unpacking openssh-server (1:7.9p1-10+deb10u2) ...
  343. Selecting previously unselected package xauth.
  344. Preparing to unpack .../10-xauth_1%3a1.0.10-1_arm64.deb ...
  345. Unpacking xauth (1:1.0.10-1) ...
  346. Selecting previously unselected package libnss-systemd:arm64.
  347. Preparing to unpack .../11-libnss-systemd_241-7~deb10u8_arm64.deb ...
  348. Unpacking libnss-systemd:arm64 (241-7~deb10u8) ...
  349. Setting up systemd-sysv (241-7~deb10u8) ...
  350. Setting up openssh-client (1:7.9p1-10+deb10u2) ...
  351. Setting up libnss-systemd:arm64 (241-7~deb10u8) ...
  352. First installation detected...
  353. Checking NSS setup...
  354. Setting up libwrap0:arm64 (7.6.q-28) ...
  355. Setting up libdbus-1-3:arm64 (1.12.20-0+deb10u1) ...
  356. Setting up dbus (1.12.20-0+deb10u1) ...
  357. invoke-rc.d: could not determine current runlevel
  358. invoke-rc.d: policy-rc.d denied execution of start.
  359. Setting up libpam-systemd:arm64 (241-7~deb10u8) ...
  360. debconf: unable to initialize frontend: Dialog
  361. debconf: (TERM is not set, so the dialog frontend is not usable.)
  362. debconf: falling back to frontend: Readline
  363. Setting up libxmuu1:arm64 (2:1.1.2-2+b3) ...
  364. Setting up ncurses-term (6.1+20181013-2+deb10u2) ...
  365. Setting up openssh-sftp-server (1:7.9p1-10+deb10u2) ...
  366. Setting up openssh-server (1:7.9p1-10+deb10u2) ...
  367. debconf: unable to initialize frontend: Dialog
  368. debconf: (TERM is not set, so the dialog frontend is not usable.)
  369. debconf: falling back to frontend: Readline
  370. Creating config file /etc/ssh/sshd_config with new version
  371. Creating SSH2 RSA key; this may take some time ...
  372. 2048 SHA256:cEaUdyT6Hx04XRMm9rM/3XwpPfYW1pk8aLuPj+H/H74 root@2e945ea6c6c8 (RSA)
  373. Creating SSH2 ECDSA key; this may take some time ...
  374. 256 SHA256:SdNsg649xnvS1iDxsRnLZyYbAoBuVC0AAgBn2BrpBIA root@2e945ea6c6c8 (ECDSA)
  375. Creating SSH2 ED25519 key; this may take some time ...
  376. 256 SHA256:gp7YaazhqkMCaueTtGPhN4eqXQM7EY/qo6CIMJKJUAM root@2e945ea6c6c8 (ED25519)
  377. Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.
  378. Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.
  379. invoke-rc.d: could not determine current runlevel
  380. invoke-rc.d: policy-rc.d denied execution of start.
  381. Setting up xauth (1:1.0.10-1) ...
  382. Processing triggers for systemd (241-7~deb10u8) ...
  383. Processing triggers for libc-bin (2.28-10) ...
  384. Removing intermediate container 2e945ea6c6c8
  385. ---> 2e0c25b239f8
  386. Step 5/12 : RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config && sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
  387. ---> Running in feb082ef3d54
  388. Removing intermediate container feb082ef3d54
  389. ---> 04e7d111667f
  390. Step 6/12 : ENV http_proxy ''
  391. ---> Running in d85cabc29931
  392. Removing intermediate container d85cabc29931
  393. ---> 7be3a0816c55
  394. Step 7/12 : ENV https_proxy ''
  395. ---> Running in fde04a902add
  396. Removing intermediate container fde04a902add
  397. ---> ab4b80bbf41d
  398. Step 8/12 : ENV ftp_proxy ''
  399. ---> Running in e69f82c2dbdb
  400. Removing intermediate container e69f82c2dbdb
  401. ---> b5e9f01546bd
  402. Step 9/12 : RUN useradd -d /home/hwMindX -u 9000 -m -s /bin/bash hwMindX && useradd -d /home/HwHiAiUser -u 1000 -m -s /bin/bash HwHiAiUser && usermod -a -G HwHiAiUser hwMindX
  403. ---> Running in 4d1821f15a61
  404. Removing intermediate container 4d1821f15a61
  405. ---> 62891e7cf121
  406. Step 10/12 : RUN echo root:123123 | chpasswd
  407. ---> Running in 6f31c83a1b24
  408. Removing intermediate container 6f31c83a1b24
  409. ---> 90fb27e9b246
  410. Step 11/12 : USER hwMindX
  411. ---> Running in 3dca31695032
  412. Removing intermediate container 3dca31695032
  413. ---> 3c8e3d5fb2df
  414. Step 12/12 : ENTRYPOINT jupyter notebook --allow-root
  415. ---> Running in 0af4a0c4ebf0
  416. Removing intermediate container 0af4a0c4ebf0
  417. ---> 36ec8fff3e06
  418. Successfully built 36ec8fff3e06
  419. Successfully tagged notebook:latest
  420. root@ubuntu:~/123/jupyter-notebook#
  421. root@ubuntu:~/123/jupyter-notebook# docker images | grep notebook
  422. notebook latest 36ec8fff3e06 2 minutes ago 1.04GB
  423. root@ubuntu:~/123/jupyter-notebook#

十、构建tensorboard镜像

  1. root@ubuntu:~/123# mkdir tensorboard
  2. root@ubuntu:~/123# cd tensorboard
  3. root@ubuntu:~/123/tensorboard# vi Dockerfile
  4. root@ubuntu:~/123/tensorboard# cat Dockerfile
  5. FROM python:3.7.5
  6. # -------------------------(Optional) Configure the pip source.--[l(1] ---------------------
  7. #ENV http_proxy http://<user>:<password>@ip:port
  8. #ENV https_proxy http://<user>:<password>@ip:port
  9. #ENV ftp_proxy ftp://<user>:<password>@ip:port
  10. RUN mkdir -p ~/.pip \
  11. && echo '[global] \n\
  12. index-url=https://pypi.doubanio.com/simple/\n\
  13. trusted-host=pypi.doubanio.com' >> ~/.pip/pip.conf
  14. RUN pip install --upgrade pip && pip install tensorboard==1.15.0
  15. ENV http_proxy ''
  16. ENV https_proxy ''
  17. ENV ftp_proxy ''
  18. RUN useradd -d /home/hwMindX -u 9000 -m -s /bin/bash hwMindX && \
  19. useradd -d /home/HwHiAiUser -u 1000 -m -s /bin/bash HwHiAiUser && \
  20. usermod -a -G HwHiAiUser hwMindX
  21. USER hwMindX
  22. root@ubuntu:~/123/tensorboard# docker build -t tensorboard:latest .
  23. Sending build context to Docker daemon 2.56kB
  24. Step 1/8 : FROM python:3.7.5
  25. ---> a4356c370cda
  26. Step 2/8 : RUN mkdir -p ~/.pip && echo '[global] \nindex-url=https://pypi.doubanio.com/simple/\ntrusted-host=pypi.doubanio.com' >> ~/.pip/pip.conf
  27. ---> Using cache
  28. ---> 2e9619b95f3c
  29. Step 3/8 : RUN pip install --upgrade pip && pip install tensorboard==1.15.0
  30. ---> Running in 7d03c4546a34
  31. Looking in indexes: https://pypi.doubanio.com/simple/
  32. Collecting pip
  33. Downloading https://pypi.doubanio.com/packages/ca/31/b88ef447d595963c01060998cb329251648acf4a067721b0452c45527eb8/pip-21.2.4-py3-none-any.whl (1.6MB)
  34. Installing collected packages: pip
  35. Found existing installation: pip 19.3.1
  36. Uninstalling pip-19.3.1:
  37. Successfully uninstalled pip-19.3.1
  38. Successfully installed pip-21.2.4
  39. Looking in indexes: https://pypi.doubanio.com/simple/
  40. Collecting tensorboard==1.15.0
  41. Downloading https://pypi.doubanio.com/packages/1e/e9/d3d747a97f7188f48aa5eda486907f3b345cd409f0a0850468ba867db246/tensorboard-1.15.0-py3-none-any.whl (3.8 MB)
  42. Requirement already satisfied: setuptools>=41.0.0 in /usr/local/lib/python3.7/site-packages (from tensorboard==1.15.0) (41.6.0)
  43. Collecting markdown>=2.6.8
  44. Downloading https://pypi.doubanio.com/packages/6e/33/1ae0f71395e618d6140fbbc9587cc3156591f748226075e0f7d6f9176522/Markdown-3.3.4-py3-none-any.whl (97 kB)
  45. Collecting six>=1.10.0
  46. Downloading https://pypi.doubanio.com/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl (11 kB)
  47. Collecting numpy>=1.12.0
  48. Downloading https://pypi.doubanio.com/packages/5c/61/b2f14fb5aa1198fa63c6c90205dc2557df5cacdeb0b16d66abc6af8724b8/numpy-1.21.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (13.0 MB)
  49. Collecting werkzeug>=0.11.15
  50. Downloading https://pypi.doubanio.com/packages/bd/24/11c3ea5a7e866bf2d97f0501d0b4b1c9bbeade102bb4b588f0d2919a5212/Werkzeug-2.0.1-py3-none-any.whl (288 kB)
  51. Requirement already satisfied: wheel>=0.26 in /usr/local/lib/python3.7/site-packages (from tensorboard==1.15.0) (0.33.6)
  52. Collecting grpcio>=1.6.3
  53. Downloading https://pypi.doubanio.com/packages/8d/87/f66686884e21e4350746a18e664202ab9b39a3cd527df3ff54a022935ee5/grpcio-1.39.0-cp37-cp37m-manylinux_2_24_aarch64.whl (38.5 MB)
  54. Collecting protobuf>=3.6.0
  55. Downloading https://pypi.doubanio.com/packages/fd/5f/6d6f7a5859caf79894685ec543354edc05538a0a34d63a411a2a7cb4ecfd/protobuf-3.17.3-cp37-cp37m-manylinux2014_aarch64.whl (922 kB)
  56. Collecting absl-py>=0.4
  57. Downloading https://pypi.doubanio.com/packages/23/47/835652c7e19530973c73c65e652fc53bd05725d5a7cf9bb8706777869c1e/absl_py-0.13.0-py3-none-any.whl (132 kB)
  58. Collecting importlib-metadata
  59. Downloading https://pypi.doubanio.com/packages/c0/72/4512a88e402d4dc3bab49a845130d95ac48936ef3a9469b55cc79a60d84d/importlib_metadata-4.6.4-py3-none-any.whl (17 kB)
  60. Collecting zipp>=0.5
  61. Downloading https://pypi.doubanio.com/packages/92/d9/89f433969fb8dc5b9cbdd4b4deb587720ec1aeb59a020cf15002b9593eef/zipp-3.5.0-py3-none-any.whl (5.7 kB)
  62. Collecting typing-extensions>=3.6.4
  63. Downloading https://pypi.doubanio.com/packages/2e/35/6c4fff5ab443b57116cb1aad46421fb719bed2825664e8fe77d66d99bcbc/typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
  64. Installing collected packages: zipp, typing-extensions, six, importlib-metadata, werkzeug, protobuf, numpy, markdown, grpcio, absl-py, tensorboard
  65. Successfully installed absl-py-0.13.0 grpcio-1.39.0 importlib-metadata-4.6.4 markdown-3.3.4 numpy-1.21.2 protobuf-3.17.3 six-1.16.0 tensorboard-1.15.0 typing-extensions-3.10.0.0 werkzeug-2.0.1 zipp-3.5.0
  66. WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
  67. Removing intermediate container 7d03c4546a34
  68. ---> 4dd40311445c
  69. Step 4/8 : ENV http_proxy ''
  70. ---> Running in 51e014124cef
  71. Removing intermediate container 51e014124cef
  72. ---> 90694cc782ca
  73. Step 5/8 : ENV https_proxy ''
  74. ---> Running in ddaaf7ceeded
  75. Removing intermediate container ddaaf7ceeded
  76. ---> 66a6f22d6688
  77. Step 6/8 : ENV ftp_proxy ''
  78. ---> Running in d18d506c95bb
  79. Removing intermediate container d18d506c95bb
  80. ---> a6f8d3009ce3
  81. Step 7/8 : RUN useradd -d /home/hwMindX -u 9000 -m -s /bin/bash hwMindX && useradd -d /home/HwHiAiUser -u 1000 -m -s /bin/bash HwHiAiUser && usermod -a -G HwHiAiUser hwMindX
  82. ---> Running in c29af506d5ed
  83. Removing intermediate container c29af506d5ed
  84. ---> 5faf1754daba
  85. Step 8/8 : USER hwMindX
  86. ---> Running in d032b1b13d00
  87. Removing intermediate container d032b1b13d00
  88. ---> d00db512a587
  89. Successfully built d00db512a587
  90. Successfully tagged tensorboard:latest
  91. root@ubuntu:~/123/tensorboard# docker images | grep tensorboard
  92. tensorboard latest d00db512a587 3 minutes ago 1.12GB
  93. root@ubuntu:~/123/tensorboard#

十一、构建mindinsight镜像

  1. root@ubuntu:~/123# mkdir mindinsight
  2. root@ubuntu:~/123# cd mindinsight
  3. root@ubuntu:~/123/mindinsight# wget https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.3.0/MindInsight/any/mindinsight-1.3.0-py3-none-any.whl
  4. --2021-08-21 11:29:24-- https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.3.0/MindInsight/any/mindinsight-1.3.0-py3-none-any.whl
  5. Resolving ms-release.obs.cn-north-4.myhuaweicloud.com (ms-release.obs.cn-north-4.myhuaweicloud.com)... 49.4.112.92, 49.4.112.3, 49.4.112.91
  6. Connecting to ms-release.obs.cn-north-4.myhuaweicloud.com (ms-release.obs.cn-north-4.myhuaweicloud.com)|49.4.112.92|:443... connected.
  7. HTTP request sent, awaiting response... 200 OK
  8. Length: 5422450 (5.2M) [binary/octet-stream]
  9. Saving to: mindinsight-1.3.0-py3-none-any.whl
  10. mindinsight-1.3.0-py3-none-any.whl 100%[====================================================================================================================>] 5.17M 24.3MB/s in 0.2s
  11. 2021-08-21 11:29:25 (24.3 MB/s) - mindinsight-1.3.0-py3-none-any.whl saved [5422450/5422450]
  12. root@ubuntu:~/123/mindinsight# vi Dockerfile
  13. root@ubuntu:~/123/mindinsight#
  14. root@ubuntu:~/123/mindinsight#
  15. root@ubuntu:~/123/mindinsight#
  16. root@ubuntu:~/123/mindinsight# cat Dockerfile
  17. FROM python:3.7.5
  18. # -------------------------(Optional) Configure the pip source.--[l(1] ---------------------
  19. #ENV http_proxy http://<user>:<password>@ip:port
  20. #ENV https_proxy http://<user>:<password>@ip:port
  21. #ENV ftp_proxy ftp://<user>:<password>@ip:port
  22. WORKDIR /tmp
  23. COPY . ./
  24. RUN mkdir -p ~/.pip \
  25. && echo '[global] \n\
  26. index-url=https://pypi.doubanio.com/simple/\n\
  27. trusted-host=pypi.doubanio.com' >> ~/.pip/pip.conf
  28. RUN pip install --upgrade pip && pip3 install mindinsight-1.3.0-py3-none-any.whl && \
  29. rm mindinsight-1.3.0-py3-none-any.whl && rm Dockerfile
  30. RUN sed -i "/^HOST/cHOST = '0.0.0.0'" /usr/local/lib/python3.7/site-packages/mindinsight/conf/constants.py
  31. ENV http_proxy ''
  32. ENV https_proxy ''
  33. ENV ftp_proxy ''
  34. RUN useradd -d /home/hwMindX -u 9000 -m -s /bin/bash hwMindX && \
  35. useradd -d /home/HwHiAiUser -u 1000 -m -s /bin/bash HwHiAiUser && \
  36. usermod -a -G HwHiAiUser hwMindX
  37. root@ubuntu:~/123/mindinsight# vi start.sh
  38. root@ubuntu:~/123/mindinsight#
  39. root@ubuntu:~/123/mindinsight#
  40. root@ubuntu:~/123/mindinsight# vi start.sh
  41. root@ubuntu:~/123/mindinsight#
  42. root@ubuntu:~/123/mindinsight#
  43. root@ubuntu:~/123/mindinsight#
  44. root@ubuntu:~/123/mindinsight# cat start.sh
  45. #!/bin/bash
  46. param=$*
  47. mindinsight start $param
  48. while true
  49. do
  50. sleep 30
  51. processnum=`ps -ef | grep -w gunicorn | grep -v grep | wc -l`
  52. if [ $processnum -le 0 ];then
  53. exit 1
  54. fi
  55. done
  56. root@ubuntu:~/123/mindinsight# docker build -t mindinsight:latest .
  57. Sending build context to Docker daemon 5.427MB
  58. Step 1/10 : FROM python:3.7.5
  59. ---> a4356c370cda
  60. Step 2/10 : WORKDIR /tmp
  61. ---> Using cache
  62. ---> 6dca759650eb
  63. Step 3/10 : COPY . ./
  64. ---> 1c047c1f27a0
  65. Step 4/10 : RUN mkdir -p ~/.pip && echo '[global] \nindex-url=https://pypi.doubanio.com/simple/\ntrusted-host=pypi.doubanio.com' >> ~/.pip/pip.conf
  66. ---> Running in 9ec07e2141f8
  67. Removing intermediate container 9ec07e2141f8
  68. ---> d2770d9bceb0
  69. Step 5/10 : RUN pip install --upgrade pip && pip3 install mindinsight-1.3.0-py3-none-any.whl && rm mindinsight-1.3.0-py3-none-any.whl && rm Dockerfile
  70. ---> Running in 4f6b33bf9638
  71. Looking in indexes: https://pypi.doubanio.com/simple/
  72. Collecting pip
  73. Downloading https://pypi.doubanio.com/packages/ca/31/b88ef447d595963c01060998cb329251648acf4a067721b0452c45527eb8/pip-21.2.4-py3-none-any.whl (1.6MB)
  74. Installing collected packages: pip
  75. Found existing installation: pip 19.3.1
  76. Uninstalling pip-19.3.1:
  77. Successfully uninstalled pip-19.3.1
  78. Successfully installed pip-21.2.4
  79. Looking in indexes: https://pypi.doubanio.com/simple/
  80. Processing ./mindinsight-1.3.0-py3-none-any.whl
  81. Collecting treelib>=1.6.1
  82. Downloading https://pypi.doubanio.com/packages/04/b0/2269c328abffbb63979f7143351a24a066776b87526d79956aea5018b80a/treelib-1.6.1.tar.gz (24 kB)
  83. Collecting XlsxWriter>=1.3.2
  84. Downloading https://pypi.doubanio.com/packages/68/51/f6f6aa86106712dad0db9663c7d24b6b32d2103b626d900fa68d48a9b262/XlsxWriter-3.0.1-py3-none-any.whl (148 kB)
  85. Collecting pandas>=1.0.4
  86. Downloading https://pypi.doubanio.com/packages/08/dc/d3513ec40c7df37a0e55b749a9b3a715f0d8b992c34c6ec6050bfd4a1703/pandas-1.3.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (10.7 MB)
  87. Collecting MarkupSafe>=1.1.1
  88. Downloading https://pypi.doubanio.com/packages/70/fc/5a7253a9c1c4e2a3feadb80a5def4563500daa4b2d4a39cae39483afa1b0/MarkupSafe-2.0.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (26 kB)
  89. Collecting scikit-learn>=0.23.1
  90. Downloading https://pypi.doubanio.com/packages/f3/78/b4aa1db778c2eb4a2e7ee0df84461ecb1bb2019031fd08723bd4c923452f/scikit_learn-0.24.2-cp37-cp37m-manylinux2014_aarch64.whl (24.0 MB)
  91. Collecting psutil>=5.7.0
  92. Downloading https://pypi.doubanio.com/packages/e1/b0/7276de53321c12981717490516b7e612364f2cb372ee8901bd4a66a000d7/psutil-5.8.0.tar.gz (470 kB)
  93. Collecting marshmallow>=3.10.0
  94. Downloading https://pypi.doubanio.com/packages/2b/fb/d42cbb318e07c4d709a3cb8d85a2ca75fbb373fc536cb0afd36039233f32/marshmallow-3.13.0-py2.py3-none-any.whl (47 kB)
  95. Collecting yapf>=0.30.0
  96. Downloading https://pypi.doubanio.com/packages/5f/0d/8814e79eb865eab42d95023b58b650d01dec6f8ea87fc9260978b1bf2167/yapf-0.31.0-py2.py3-none-any.whl (185 kB)
  97. Collecting Jinja2>=2.10.1
  98. Downloading https://pypi.doubanio.com/packages/80/21/ae597efc7ed8caaa43fb35062288baaf99a7d43ff0cf66452ddf47604ee6/Jinja2-3.0.1-py3-none-any.whl (133 kB)
  99. Collecting Flask>=1.1.1
  100. Downloading https://pypi.doubanio.com/packages/54/4f/1b294c1a4ab7b2ad5ca5fc4a9a65a22ef1ac48be126289d97668852d4ab3/Flask-2.0.1-py3-none-any.whl (94 kB)
  101. Collecting protobuf>=3.8.0
  102. Downloading https://pypi.doubanio.com/packages/fd/5f/6d6f7a5859caf79894685ec543354edc05538a0a34d63a411a2a7cb4ecfd/protobuf-3.17.3-cp37-cp37m-manylinux2014_aarch64.whl (922 kB)
  103. Collecting google-pasta>=0.1.8
  104. Downloading https://pypi.doubanio.com/packages/a3/de/c648ef6835192e6e2cc03f40b19eeda4382c49b5bafb43d88b931c4c74ac/google_pasta-0.2.0-py3-none-any.whl (57 kB)
  105. Collecting pyyaml>=5.3.1
  106. Downloading https://pypi.doubanio.com/packages/32/ac/a9383af90be713b0cb2ee7c7eb4317ab76957ed0a7e4aa9b9c170a992565/PyYAML-5.4.1-cp37-cp37m-manylinux2014_aarch64.whl (716 kB)
  107. Collecting gunicorn>=20.0.4
  108. Downloading https://pypi.doubanio.com/packages/e4/dd/5b190393e6066286773a67dfcc2f9492058e9b57c4867a95f1ba5caf0a83/gunicorn-20.1.0-py3-none-any.whl (79 kB)
  109. Collecting pillow>=6.2.0
  110. Downloading https://pypi.doubanio.com/packages/df/97/e6e1aae9d75a7ac638cd7e5c5ddd1cf0ed3813275c07a43b68d081e1d479/Pillow-8.3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.9 MB)
  111. Collecting Click>=7.0
  112. Downloading https://pypi.doubanio.com/packages/76/0a/b6c5f311e32aeb3b406e03c079ade51e905ea630fc19d1262a46249c1c86/click-8.0.1-py3-none-any.whl (97 kB)
  113. Collecting scipy>=1.5.2
  114. Downloading https://pypi.doubanio.com/packages/01/0b/279f3a059ee7e59aa087ccfe0c81e69fc286b869a9052f8c119ba1138a7b/scipy-1.7.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (27.3 MB)
  115. Collecting grpcio<=1.36.0,>=1.35.0
  116. Downloading https://pypi.doubanio.com/packages/9d/9e/18e92a4042fdee8613f5613a37cf7162d32b5674f1b12d0f7b042e7e710b/grpcio-1.36.0.tar.gz (21.5 MB)
  117. Collecting Flask-Cors>=3.0.8
  118. Downloading https://pypi.doubanio.com/packages/db/84/901e700de86604b1c4ef4b57110d4e947c218b9997adf5d38fa7da493bce/Flask_Cors-3.0.10-py2.py3-none-any.whl (14 kB)
  119. Collecting numpy>=1.17.0
  120. Downloading https://pypi.doubanio.com/packages/5c/61/b2f14fb5aa1198fa63c6c90205dc2557df5cacdeb0b16d66abc6af8724b8/numpy-1.21.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (13.0 MB)
  121. Collecting six>=1.12.0
  122. Downloading https://pypi.doubanio.com/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl (11 kB)
  123. Collecting itsdangerous>=1.1.0
  124. Downloading https://pypi.doubanio.com/packages/9c/96/26f935afba9cd6140216da5add223a0c465b99d0f112b68a4ca426441019/itsdangerous-2.0.1-py3-none-any.whl (18 kB)
  125. Collecting Werkzeug>=1.0.0
  126. Downloading https://pypi.doubanio.com/packages/bd/24/11c3ea5a7e866bf2d97f0501d0b4b1c9bbeade102bb4b588f0d2919a5212/Werkzeug-2.0.1-py3-none-any.whl (288 kB)
  127. Collecting importlib-metadata
  128. Downloading https://pypi.doubanio.com/packages/c0/72/4512a88e402d4dc3bab49a845130d95ac48936ef3a9469b55cc79a60d84d/importlib_metadata-4.6.4-py3-none-any.whl (17 kB)
  129. Requirement already satisfied: setuptools>=3.0 in /usr/local/lib/python3.7/site-packages (from gunicorn>=20.0.4->mindinsight==1.3.0) (41.6.0)
  130. Collecting pytz>=2017.3
  131. Downloading https://pypi.doubanio.com/packages/70/94/784178ca5dd892a98f113cdd923372024dc04b8d40abe77ca76b5fb90ca6/pytz-2021.1-py2.py3-none-any.whl (510 kB)
  132. Collecting python-dateutil>=2.7.3
  133. Downloading https://pypi.doubanio.com/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
  134. Collecting threadpoolctl>=2.0.0
  135. Downloading https://pypi.doubanio.com/packages/c6/e8/c216b9b60cbba4642d3ca1bae7a53daa0c24426f662e0e3ce3dc7f6caeaa/threadpoolctl-2.2.0-py3-none-any.whl (12 kB)
  136. Collecting joblib>=0.11
  137. Downloading https://pypi.doubanio.com/packages/55/85/70c6602b078bd9e6f3da4f467047e906525c355a4dacd4f71b97a35d9897/joblib-1.0.1-py3-none-any.whl (303 kB)
  138. Collecting future
  139. Downloading https://pypi.doubanio.com/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829 kB)
  140. Collecting typing-extensions>=3.6.4
  141. Downloading https://pypi.doubanio.com/packages/2e/35/6c4fff5ab443b57116cb1aad46421fb719bed2825664e8fe77d66d99bcbc/typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
  142. Collecting zipp>=0.5
  143. Downloading https://pypi.doubanio.com/packages/92/d9/89f433969fb8dc5b9cbdd4b4deb587720ec1aeb59a020cf15002b9593eef/zipp-3.5.0-py3-none-any.whl (5.7 kB)
  144. Building wheels for collected packages: grpcio, psutil, treelib, future
  145. Building wheel for grpcio (setup.py): started
  146. Building wheel for grpcio (setup.py): still running...
  147. Building wheel for grpcio (setup.py): finished with status 'done'
  148. Created wheel for grpcio: filename=grpcio-1.36.0-cp37-cp37m-linux_aarch64.whl size=43277028 sha256=0f9c41905a2331f6405bee3d2e7dcf083ea1aa6e39f85ae1190ff3a2ce98069a
  149. Stored in directory: /root/.cache/pip/wheels/dd/72/74/30b696f7d2a6abedf42d201eccd5f7a03f84931dfaa4b147db
  150. Building wheel for psutil (setup.py): started
  151. Building wheel for psutil (setup.py): finished with status 'done'
  152. Created wheel for psutil: filename=psutil-5.8.0-cp37-cp37m-linux_aarch64.whl size=295178 sha256=34f88db3e2056672357f438d0d338027bb65594437eafb4ae7c391ad0380d8bb
  153. Stored in directory: /root/.cache/pip/wheels/2f/c7/77/86efc5d98b9a79575ab1aaa9c24651f8841e57d46862979efd
  154. Building wheel for treelib (setup.py): started
  155. Building wheel for treelib (setup.py): finished with status 'done'
  156. Created wheel for treelib: filename=treelib-1.6.1-py3-none-any.whl size=18370 sha256=437a681028a4c479a0cc23c87a01a2cc51be82dc9fd355f3baa9e1363fe7fa5b
  157. Stored in directory: /root/.cache/pip/wheels/44/dd/b6/a9967a60d3575162a2e29846347f826dcb20466b0a1b67198e
  158. Building wheel for future (setup.py): started
  159. Building wheel for future (setup.py): finished with status 'done'
  160. Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491056 sha256=5b3be1990014b279b2ec75bfb2ba81737b5f2eee949d6573c7924391bdd19ed7
  161. Stored in directory: /root/.cache/pip/wheels/97/83/dc/8e47b8e3874918101250790fbce5d89fef8d0c33eb8097ad07
  162. Successfully built grpcio psutil treelib future
  163. Installing collected packages: zipp, typing-extensions, MarkupSafe, importlib-metadata, Werkzeug, six, numpy, Jinja2, itsdangerous, Click, threadpoolctl, scipy, pytz, python-dateutil, joblib, future, Flask, yapf, XlsxWriter, treelib, scikit-learn, pyyaml, psutil, protobuf, pillow, pandas, marshmallow, gunicorn, grpcio, google-pasta, Flask-Cors, mindinsight
  164. Successfully installed Click-8.0.1 Flask-2.0.1 Flask-Cors-3.0.10 Jinja2-3.0.1 MarkupSafe-2.0.1 Werkzeug-2.0.1 XlsxWriter-3.0.1 future-0.18.2 google-pasta-0.2.0 grpcio-1.36.0 gunicorn-20.1.0 importlib-metadata-4.6.4 itsdangerous-2.0.1 joblib-1.0.1 marshmallow-3.13.0 mindinsight-1.3.0 numpy-1.21.2 pandas-1.3.2 pillow-8.3.1 protobuf-3.17.3 psutil-5.8.0 python-dateutil-2.8.2 pytz-2021.1 pyyaml-5.4.1 scikit-learn-0.24.2 scipy-1.7.1 six-1.16.0 threadpoolctl-2.2.0 treelib-1.6.1 typing-extensions-3.10.0.0 yapf-0.31.0 zipp-3.5.0
  165. WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
  166. Removing intermediate container 4f6b33bf9638
  167. ---> 2ef8fa6e4a74
  168. Step 6/10 : RUN sed -i "/^HOST/cHOST = '0.0.0.0'" /usr/local/lib/python3.7/site-packages/mindinsight/conf/constants.py
  169. ---> Running in 1da0a898001b
  170. Removing intermediate container 1da0a898001b
  171. ---> 08940216b1cc
  172. Step 7/10 : ENV http_proxy ''
  173. ---> Running in 34dee7b0cd32
  174. Removing intermediate container 34dee7b0cd32
  175. ---> 7b7d62b31d09
  176. Step 8/10 : ENV https_proxy ''
  177. ---> Running in ccc705d304f8
  178. Removing intermediate container ccc705d304f8
  179. ---> a533d73340db
  180. Step 9/10 : ENV ftp_proxy ''
  181. ---> Running in 583ab62da6b4
  182. Removing intermediate container 583ab62da6b4
  183. ---> e9377900aedc
  184. Step 10/10 : RUN useradd -d /home/hwMindX -u 9000 -m -s /bin/bash hwMindX && useradd -d /home/HwHiAiUser -u 1000 -m -s /bin/bash HwHiAiUser && usermod -a -G HwHiAiUser hwMindX
  185. ---> Running in c111b84f6220
  186. Removing intermediate container c111b84f6220
  187. ---> 7c11b719966b
  188. Successfully built 7c11b719966b
  189. Successfully tagged mindinsight:latest
  190. root@ubuntu:~/123/mindinsight# docker images | grep mindinsight
  191. mindinsight latest 7c11b719966b 17 seconds ago 1.52GB
  192. root@ubuntu:~/123/mindinsight#

十二、配置Grafana

打开Prometheus地址 》 选择“Status > Targets” 》 当kubenetes-cadvisor下的“Endpoint”状态为“UP”时,记录“Labels”下的job值,该值为cadvisor所在节点的nodeName,下方文件中的“nodeName”批量替换成此名称。

  1. {
  2. "annotations": {
  3. "list": [
  4. {
  5. "builtIn": 1,
  6. "datasource": "-- Grafana --",
  7. "enable": true,
  8. "hide": true,
  9. "iconColor": "rgba(0, 211, 255, 1)",
  10. "name": "Annotations & Alerts",
  11. "type": "dashboard"
  12. }
  13. ]
  14. },
  15. "editable": true,
  16. "gnetId": null,
  17. "graphTooltip": 0,
  18. "id": 2,
  19. "links": [],
  20. "panels": [
  21. {
  22. "datasource": null,
  23. "fieldConfig": {
  24. "defaults": {
  25. "custom": {},
  26. "mappings": [],
  27. "thresholds": {
  28. "mode": "absolute",
  29. "steps": [
  30. {
  31. "color": "green",
  32. "value": null
  33. },
  34. {
  35. "color": "red",
  36. "value": 80
  37. }
  38. ]
  39. }
  40. },
  41. "overrides": []
  42. },
  43. "gridPos": {
  44. "h": 8,
  45. "w": 7,
  46. "x": 0,
  47. "y": 0
  48. },
  49. "id": 2,
  50. "options": {
  51. "orientation": "auto",
  52. "reduceOptions": {
  53. "calcs": [
  54. "mean"
  55. ],
  56. "fields": "",
  57. "values": false
  58. },
  59. "showThresholdLabels": false,
  60. "showThresholdMarkers": true
  61. },
  62. "pluginVersion": "7.0.2",
  63. "targets": [
  64. {
  65. "expr": "npu_chip_info_health_status{id=\"0\",job=\"nodeName\"}",
  66. "interval": "",
  67. "legendFormat": "芯片0",
  68. "refId": "A"
  69. },
  70. {
  71. "expr": "npu_chip_info_health_status{id=\"1\",job=\"nodeName\"}",
  72. "interval": "",
  73. "legendFormat": "芯片1",
  74. "refId": "B"
  75. },
  76. {
  77. "expr": "npu_chip_info_health_status{id=\"2\",job=\"nodeName\"}",
  78. "interval": "",
  79. "legendFormat": "芯片2",
  80. "refId": "C"
  81. },
  82. {
  83. "expr": "npu_chip_info_health_status{id=\"3\",job=\"nodeName\"}",
  84. "interval": "",
  85. "legendFormat": "芯片3",
  86. "refId": "D"
  87. },
  88. {
  89. "expr": "npu_chip_info_health_status{id=\"4\",job=\"nodeName\"}",
  90. "interval": "",
  91. "legendFormat": "芯片4",
  92. "refId": "E"
  93. },
  94. {
  95. "expr": "npu_chip_info_health_status{id=\"5\",job=\"nodeName\"}",
  96. "interval": "",
  97. "legendFormat": "芯片5",
  98. "refId": "F"
  99. },
  100. {
  101. "expr": "npu_chip_info_health_status{id=\"6\",job=\"nodeName\"}",
  102. "interval": "",
  103. "legendFormat": "芯片6",
  104. "refId": "G"
  105. },
  106. {
  107. "expr": "npu_chip_info_health_status{id=\"7\",job=\"nodeName\"}",
  108. "interval": "",
  109. "legendFormat": "芯片7",
  110. "refId": "H"
  111. }
  112. ],
  113. "timeFrom": null,
  114. "timeShift": null,
  115. "title": "npu健康状态(nodeName)",
  116. "type": "gauge"
  117. },
  118. {
  119. "aliasColors": {},
  120. "bars": false,
  121. "dashLength": 10,
  122. "dashes": false,
  123. "datasource": "Prometheus",
  124. "fieldConfig": {
  125. "defaults": {
  126. "custom": {},
  127. "mappings": [],
  128. "thresholds": {
  129. "mode": "absolute",
  130. "steps": [
  131. {
  132. "color": "green",
  133. "value": null
  134. },
  135. {
  136. "color": "red",
  137. "value": 80
  138. }
  139. ]
  140. }
  141. },
  142. "overrides": []
  143. },
  144. "fill": 1,
  145. "fillGradient": 0,
  146. "gridPos": {
  147. "h": 8,
  148. "w": 8,
  149. "x": 7,
  150. "y": 0
  151. },
  152. "hiddenSeries": false,
  153. "id": 6,
  154. "legend": {
  155. "avg": false,
  156. "current": false,
  157. "max": false,
  158. "min": false,
  159. "show": true,
  160. "total": false,
  161. "values": false
  162. },
  163. "lines": true,
  164. "linewidth": 1,
  165. "nullPointMode": "null",
  166. "options": {
  167. "dataLinks": []
  168. },
  169. "percentage": false,
  170. "pluginVersion": "7.0.3",
  171. "pointradius": 2,
  172. "points": false,
  173. "renderer": "flot",
  174. "seriesOverrides": [],
  175. "spaceLength": 10,
  176. "stack": false,
  177. "steppedLine": false,
  178. "targets": [
  179. {
  180. "expr": "npu_chip_info_temperature{id=\"0\",job=\"nodeName\"}",
  181. "interval": "",
  182. "legendFormat": "芯片0",
  183. "refId": "A"
  184. },
  185. {
  186. "expr": "npu_chip_info_temperature{id=\"1\",job=\"nodeName\"}",
  187. "interval": "",
  188. "legendFormat": "芯片1",
  189. "refId": "B"
  190. },
  191. {
  192. "expr": "npu_chip_info_temperature{id=\"2\",job=\"nodeName\"}",
  193. "interval": "",
  194. "legendFormat": "芯片2",
  195. "refId": "C"
  196. },
  197. {
  198. "expr": "npu_chip_info_temperature{id=\"3\",job=\"nodeName\"}",
  199. "interval": "",
  200. "legendFormat": "芯片3",
  201. "refId": "D"
  202. },
  203. {
  204. "expr": "npu_chip_info_temperature{id=\"4\",job=\"nodeName\"}",
  205. "interval": "",
  206. "legendFormat": "芯片4",
  207. "refId": "E"
  208. },
  209. {
  210. "expr": "npu_chip_info_temperature{id=\"5\",job=\"nodeName\"}",
  211. "interval": "",
  212. "legendFormat": "芯片5",
  213. "refId": "F"
  214. },
  215. {
  216. "expr": "npu_chip_info_temperature{id=\"6\",job=\"nodeName\"}",
  217. "interval": "",
  218. "legendFormat": "芯片6",
  219. "refId": "G"
  220. },
  221. {
  222. "expr": "npu_chip_info_temperature{id=\"7\",job=\"nodeName\"}",
  223. "interval": "",
  224. "legendFormat": "芯片7",
  225. "refId": "H"
  226. }
  227. ],
  228. "thresholds": [],
  229. "timeFrom": null,
  230. "timeRegions": [],
  231. "timeShift": null,
  232. "title": "npu温度(nodeName)",
  233. "tooltip": {
  234. "shared": true,
  235. "sort": 0,
  236. "value_type": "individual"
  237. },
  238. "type": "graph",
  239. "xaxis": {
  240. "buckets": null,
  241. "mode": "time",
  242. "name": null,
  243. "show": true,
  244. "values": []
  245. },
  246. "yaxes": [
  247. {
  248. "format": "short",
  249. "label": null,
  250. "logBase": 1,
  251. "max": null,
  252. "min": null,
  253. "show": true
  254. },
  255. {
  256. "format": "short",
  257. "label": null,
  258. "logBase": 1,
  259. "max": null,
  260. "min": null,
  261. "show": true
  262. }
  263. ],
  264. "yaxis": {
  265. "align": false,
  266. "alignLevel": null
  267. }
  268. },
  269. {
  270. "datasource": null,
  271. "fieldConfig": {
  272. "defaults": {
  273. "custom": {},
  274. "mappings": [],
  275. "thresholds": {
  276. "mode": "absolute",
  277. "steps": [
  278. {
  279. "color": "green",
  280. "value": null
  281. },
  282. {
  283. "color": "red",
  284. "value": 80
  285. }
  286. ]
  287. }
  288. },
  289. "overrides": []
  290. },
  291. "gridPos": {
  292. "h": 8,
  293. "w": 8,
  294. "x": 15,
  295. "y": 0
  296. },
  297. "id": 12,
  298. "options": {
  299. "colorMode": "value",
  300. "graphMode": "area",
  301. "justifyMode": "auto",
  302. "orientation": "auto",
  303. "reduceOptions": {
  304. "calcs": [
  305. "mean"
  306. ],
  307. "fields": "",
  308. "values": false
  309. }
  310. },
  311. "pluginVersion": "7.0.2",
  312. "targets": [
  313. {
  314. "expr": "npu_chip_info_voltage{id=\"0\",job=\"nodeName\"}",
  315. "interval": "",
  316. "legendFormat": "芯片0",
  317. "refId": "A"
  318. },
  319. {
  320. "expr": "npu_chip_info_voltage{id=\"1\",job=\"nodeName\"}",
  321. "interval": "",
  322. "legendFormat": "芯片1",
  323. "refId": "B"
  324. },
  325. {
  326. "expr": "npu_chip_info_voltage{id=\"2\",job=\"nodeName\"}",
  327. "interval": "",
  328. "legendFormat": "芯片2",
  329. "refId": "C"
  330. },
  331. {
  332. "expr": "npu_chip_info_voltage{id=\"3\",job=\"nodeName\"}",
  333. "interval": "",
  334. "legendFormat": "芯片3",
  335. "refId": "D"
  336. },
  337. {
  338. "expr": "npu_chip_info_voltage{id=\"4\",job=\"nodeName\"}",
  339. "interval": "",
  340. "legendFormat": "芯片4",
  341. "refId": "E"
  342. },
  343. {
  344. "expr": "npu_chip_info_voltage{id=\"5\",job=\"nodeName\"}",
  345. "interval": "",
  346. "legendFormat": "芯片5",
  347. "refId": "F"
  348. },
  349. {
  350. "expr": "npu_chip_info_voltage{id=\"6\",job=\"nodeName\"}",
  351. "interval": "",
  352. "legendFormat": "芯片6",
  353. "refId": "G"
  354. },
  355. {
  356. "expr": "npu_chip_info_voltage{id=\"7\",job=\"nodeName\"}",
  357. "interval": "",
  358. "legendFormat": "芯片7",
  359. "refId": "H"
  360. }
  361. ],
  362. "timeFrom": null,
  363. "timeShift": null,
  364. "title": "npu电压(nodeName)",
  365. "type": "stat"
  366. },
  367. {
  368. "aliasColors": {},
  369. "bars": false,
  370. "dashLength": 10,
  371. "dashes": false,
  372. "datasource": null,
  373. "fieldConfig": {
  374. "defaults": {
  375. "custom": {
  376. "align": null
  377. },
  378. "mappings": [],
  379. "thresholds": {
  380. "mode": "absolute",
  381. "steps": [
  382. {
  383. "color": "green",
  384. "value": null
  385. },
  386. {
  387. "color": "red",
  388. "value": 80
  389. }
  390. ]
  391. }
  392. },
  393. "overrides": []
  394. },
  395. "fill": 1,
  396. "fillGradient": 0,
  397. "gridPos": {
  398. "h": 8,
  399. "w": 7,
  400. "x": 0,
  401. "y": 8
  402. },
  403. "hiddenSeries": false,
  404. "id": 8,
  405. "legend": {
  406. "avg": false,
  407. "current": false,
  408. "max": false,
  409. "min": false,
  410. "show": true,
  411. "total": false,
  412. "values": false
  413. },
  414. "lines": true,
  415. "linewidth": 1,
  416. "nullPointMode": "null",
  417. "options": {
  418. "dataLinks": []
  419. },
  420. "percentage": false,
  421. "pluginVersion": "7.0.3",
  422. "pointradius": 2,
  423. "points": false,
  424. "renderer": "flot",
  425. "seriesOverrides": [],
  426. "spaceLength": 10,
  427. "stack": false,
  428. "steppedLine": false,
  429. "targets": [
  430. {
  431. "expr": "npu_chip_info_used_memory{id=\"0\",job=\"nodeName\"}",
  432. "interval": "",
  433. "legendFormat": "芯片0",
  434. "refId": "A"
  435. },
  436. {
  437. "expr": "npu_chip_info_used_memory{id=\"1\",job=\"nodeName\"}",
  438. "interval": "",
  439. "legendFormat": "芯片1",
  440. "refId": "B"
  441. },
  442. {
  443. "expr": "npu_chip_info_used_memory{id=\"2\",job=\"nodeName\"}",
  444. "interval": "",
  445. "legendFormat": "芯片2",
  446. "refId": "C"
  447. },
  448. {
  449. "expr": "npu_chip_info_used_memory{id=\"3\",job=\"nodeName\"}",
  450. "interval": "",
  451. "legendFormat": "芯片3",
  452. "refId": "D"
  453. },
  454. {
  455. "expr": "npu_chip_info_used_memory{id=\"4\",job=\"nodeName\"}",
  456. "interval": "",
  457. "legendFormat": "芯片4",
  458. "refId": "E"
  459. },
  460. {
  461. "expr": "npu_chip_info_used_memory{id=\"5\",job=\"nodeName\"}",
  462. "interval": "",
  463. "legendFormat": "芯片5",
  464. "refId": "F"
  465. },
  466. {
  467. "expr": "npu_chip_info_used_memory{id=\"6\",job=\"nodeName\"}",
  468. "interval": "",
  469. "legendFormat": "芯片6",
  470. "refId": "G"
  471. },
  472. {
  473. "expr": "npu_chip_info_used_memory{id=\"7\",job=\"nodeName\"}",
  474. "interval": "",
  475. "legendFormat": "芯片7",
  476. "refId": "H"
  477. }
  478. ],
  479. "thresholds": [],
  480. "timeFrom": null,
  481. "timeRegions": [],
  482. "timeShift": null,
  483. "title": "npu内存使用(nodeName)",
  484. "tooltip": {
  485. "shared": true,
  486. "sort": 0,
  487. "value_type": "individual"
  488. },
  489. "type": "graph",
  490. "xaxis": {
  491. "buckets": null,
  492. "mode": "time",
  493. "name": null,
  494. "show": true,
  495. "values": []
  496. },
  497. "yaxes": [
  498. {
  499. "format": "short",
  500. "label": null,
  501. "logBase": 1,
  502. "max": null,
  503. "min": null,
  504. "show": true
  505. },
  506. {
  507. "format": "short",
  508. "label": null,
  509. "logBase": 1,
  510. "max": null,
  511. "min": null,
  512. "show": true
  513. }
  514. ],
  515. "yaxis": {
  516. "align": false,
  517. "alignLevel": null
  518. }
  519. },
  520. {
  521. "aliasColors": {},
  522. "bars": false,
  523. "dashLength": 10,
  524. "dashes": false,
  525. "datasource": null,
  526. "description": "",
  527. "fieldConfig": {
  528. "defaults": {
  529. "custom": {
  530. "align": null
  531. },
  532. "mappings": [],
  533. "thresholds": {
  534. "mode": "absolute",
  535. "steps": [
  536. {
  537. "color": "green",
  538. "value": null
  539. },
  540. {
  541. "color": "red",
  542. "value": 80
  543. }
  544. ]
  545. }
  546. },
  547. "overrides": []
  548. },
  549. "fill": 1,
  550. "fillGradient": 0,
  551. "gridPos": {
  552. "h": 8,
  553. "w": 8,
  554. "x": 7,
  555. "y": 8
  556. },
  557. "hiddenSeries": false,
  558. "id": 10,
  559. "legend": {
  560. "avg": false,
  561. "current": false,
  562. "max": false,
  563. "min": false,
  564. "show": true,
  565. "total": false,
  566. "values": false
  567. },
  568. "lines": true,
  569. "linewidth": 1,
  570. "nullPointMode": "null",
  571. "options": {
  572. "dataLinks": []
  573. },
  574. "percentage": false,
  575. "pluginVersion": "7.0.3",
  576. "pointradius": 2,
  577. "points": false,
  578. "renderer": "flot",
  579. "seriesOverrides": [],
  580. "spaceLength": 10,
  581. "stack": false,
  582. "steppedLine": false,
  583. "targets": [
  584. {
  585. "expr": "npu_chip_info_utilization{id=\"0\",job=\"nodeName\"}",
  586. "interval": "",
  587. "legendFormat": "芯片0",
  588. "refId": "A"
  589. },
  590. {
  591. "expr": "npu_chip_info_utilization{id=\"1\",job=\"nodeName\"}",
  592. "interval": "",
  593. "legendFormat": "芯片1",
  594. "refId": "B"
  595. },
  596. {
  597. "expr": "npu_chip_info_utilization{id=\"2\",job=\"nodeName\"}",
  598. "interval": "",
  599. "legendFormat": "芯片2",
  600. "refId": "C"
  601. },
  602. {
  603. "expr": "npu_chip_info_utilization{id=\"3\",job=\"nodeName\"}",
  604. "interval": "",
  605. "legendFormat": "芯片3",
  606. "refId": "D"
  607. },
  608. {
  609. "expr": "npu_chip_info_utilization{id=\"4\",job=\"nodeName\"}",
  610. "interval": "",
  611. "legendFormat": "芯片4",
  612. "refId": "E"
  613. },
  614. {
  615. "expr": "npu_chip_info_utilization{id=\"5\",job=\"nodeName\"}",
  616. "interval": "",
  617. "legendFormat": "芯片5",
  618. "refId": "F"
  619. },
  620. {
  621. "expr": "npu_chip_info_utilization{id=\"6\",job=\"nodeName\"}",
  622. "interval": "",
  623. "legendFormat": "芯片6",
  624. "refId": "G"
  625. },
  626. {
  627. "expr": "npu_chip_info_utilization{id=\"7\",job=\"nodeName\"}",
  628. "interval": "",
  629. "legendFormat": "芯片7",
  630. "refId": "H"
  631. }
  632. ],
  633. "thresholds": [],
  634. "timeFrom": null,
  635. "timeRegions": [],
  636. "timeShift": null,
  637. "title": "npu_AI_Core使用率(nodeName)",
  638. "tooltip": {
  639. "shared": true,
  640. "sort": 0,
  641. "value_type": "individual"
  642. },
  643. "type": "graph",
  644. "xaxis": {
  645. "buckets": null,
  646. "mode": "time",
  647. "name": null,
  648. "show": true,
  649. "values": []
  650. },
  651. "yaxes": [
  652. {
  653. "format": "short",
  654. "label": null,
  655. "logBase": 1,
  656. "max": null,
  657. "min": null,
  658. "show": true
  659. },
  660. {
  661. "format": "short",
  662. "label": null,
  663. "logBase": 1,
  664. "max": null,
  665. "min": null,
  666. "show": true
  667. }
  668. ],
  669. "yaxis": {
  670. "align": false,
  671. "alignLevel": null
  672. }
  673. },
  674. {
  675. "aliasColors": {},
  676. "bars": false,
  677. "dashLength": 10,
  678. "dashes": false,
  679. "datasource": null,
  680. "fieldConfig": {
  681. "defaults": {
  682. "custom": {
  683. "align": null
  684. },
  685. "mappings": [],
  686. "thresholds": {
  687. "mode": "absolute",
  688. "steps": [
  689. {
  690. "color": "green",
  691. "value": null
  692. },
  693. {
  694. "color": "red",
  695. "value": 80
  696. }
  697. ]
  698. }
  699. },
  700. "overrides": []
  701. },
  702. "fill": 1,
  703. "fillGradient": 0,
  704. "gridPos": {
  705. "h": 8,
  706. "w": 8,
  707. "x": 15,
  708. "y": 8
  709. },
  710. "hiddenSeries": false,
  711. "id": 4,
  712. "legend": {
  713. "avg": false,
  714. "current": false,
  715. "max": false,
  716. "min": false,
  717. "show": true,
  718. "total": false,
  719. "values": false
  720. },
  721. "lines": true,
  722. "linewidth": 1,
  723. "nullPointMode": "null",
  724. "options": {
  725. "dataLinks": []
  726. },
  727. "percentage": false,
  728. "pluginVersion": "7.0.3",
  729. "pointradius": 2,
  730. "points": false,
  731. "renderer": "flot",
  732. "seriesOverrides": [],
  733. "spaceLength": 10,
  734. "stack": false,
  735. "steppedLine": false,
  736. "targets": [
  737. {
  738. "expr": "npu_chip_info_power{id=\"0\",job=\"nodeName\"}",
  739. "interval": "",
  740. "legendFormat": "芯片0",
  741. "refId": "A"
  742. },
  743. {
  744. "expr": "npu_chip_info_power{id=\"1\",job=\"nodeName\"}",
  745. "interval": "",
  746. "legendFormat": "芯片1",
  747. "refId": "B"
  748. },
  749. {
  750. "expr": "npu_chip_info_power{id=\"2\",job=\"nodeName\"}",
  751. "interval": "",
  752. "legendFormat": "芯片2",
  753. "refId": "C"
  754. },
  755. {
  756. "expr": "npu_chip_info_power{id=\"3\",job=\"nodeName\"}",
  757. "interval": "",
  758. "legendFormat": "芯片3",
  759. "refId": "D"
  760. },
  761. {
  762. "expr": "npu_chip_info_power{id=\"4\",job=\"nodeName\"}",
  763. "interval": "",
  764. "legendFormat": "芯片4",
  765. "refId": "E"
  766. },
  767. {
  768. "expr": "npu_chip_info_power{id=\"5\",job=\"nodeName\"}",
  769. "interval": "",
  770. "legendFormat": "芯片5",
  771. "refId": "F"
  772. },
  773. {
  774. "expr": "npu_chip_info_power{id=\"6\",job=\"nodeName\"}",
  775. "interval": "",
  776. "legendFormat": "芯片6",
  777. "refId": "G"
  778. },
  779. {
  780. "expr": "npu_chip_info_power{id=\"7\",job=\"nodeName\"}",
  781. "interval": "",
  782. "legendFormat": "芯片7",
  783. "refId": "H"
  784. }
  785. ],
  786. "thresholds": [],
  787. "timeFrom": null,
  788. "timeRegions": [],
  789. "timeShift": null,
  790. "title": "npu使用功耗(nodeName)",
  791. "tooltip": {
  792. "shared": true,
  793. "sort": 0,
  794. "value_type": "individual"
  795. },
  796. "type": "graph",
  797. "xaxis": {
  798. "buckets": null,
  799. "mode": "time",
  800. "name": null,
  801. "show": true,
  802. "values": []
  803. },
  804. "yaxes": [
  805. {
  806. "format": "short",
  807. "label": null,
  808. "logBase": 1,
  809. "max": null,
  810. "min": null,
  811. "show": true
  812. },
  813. {
  814. "format": "short",
  815. "label": null,
  816. "logBase": 1,
  817. "max": null,
  818. "min": null,
  819. "show": true
  820. }
  821. ],
  822. "yaxis": {
  823. "align": false,
  824. "alignLevel": null
  825. }
  826. },
  827. {
  828. "aliasColors": {},
  829. "bars": false,
  830. "dashLength": 10,
  831. "dashes": false,
  832. "datasource": null,
  833. "fieldConfig": {
  834. "defaults": {
  835. "custom": {}
  836. },
  837. "overrides": []
  838. },
  839. "fill": 1,
  840. "fillGradient": 0,
  841. "gridPos": {
  842. "h": 10,
  843. "w": 7,
  844. "x": 0,
  845. "y": 16
  846. },
  847. "hiddenSeries": false,
  848. "id": 20,
  849. "legend": {
  850. "avg": false,
  851. "current": false,
  852. "max": false,
  853. "min": false,
  854. "show": true,
  855. "total": false,
  856. "values": false
  857. },
  858. "lines": true,
  859. "linewidth": 1,
  860. "nullPointMode": "null",
  861. "options": {
  862. "dataLinks": []
  863. },
  864. "percentage": false,
  865. "pointradius": 2,
  866. "points": false,
  867. "renderer": "flot",
  868. "seriesOverrides": [],
  869. "spaceLength": 10,
  870. "stack": false,
  871. "steppedLine": false,
  872. "targets": [
  873. {
  874. "expr": "container_memory_usage_bytes",
  875. "interval": "",
  876. "legendFormat": "",
  877. "refId": "A"
  878. }
  879. ],
  880. "thresholds": [],
  881. "timeFrom": null,
  882. "timeRegions": [],
  883. "timeShift": null,
  884. "title": "容器内存使用量",
  885. "tooltip": {
  886. "shared": true,
  887. "sort": 0,
  888. "value_type": "individual"
  889. },
  890. "type": "graph",
  891. "xaxis": {
  892. "buckets": null,
  893. "mode": "time",
  894. "name": null,
  895. "show": true,
  896. "values": []
  897. },
  898. "yaxes": [
  899. {
  900. "format": "short",
  901. "label": null,
  902. "logBase": 1,
  903. "max": null,
  904. "min": null,
  905. "show": true
  906. },
  907. {
  908. "format": "short",
  909. "label": null,
  910. "logBase": 1,
  911. "max": null,
  912. "min": null,
  913. "show": true
  914. }
  915. ],
  916. "yaxis": {
  917. "align": false,
  918. "alignLevel": null
  919. }
  920. },
  921. {
  922. "aliasColors": {},
  923. "bars": false,
  924. "dashLength": 10,
  925. "dashes": false,
  926. "datasource": null,
  927. "fieldConfig": {
  928. "defaults": {
  929. "custom": {}
  930. },
  931. "overrides": []
  932. },
  933. "fill": 1,
  934. "fillGradient": 0,
  935. "gridPos": {
  936. "h": 10,
  937. "w": 7,
  938. "x": 7,
  939. "y": 16
  940. },
  941. "hiddenSeries": false,
  942. "id": 18,
  943. "legend": {
  944. "avg": false,
  945. "current": false,
  946. "max": false,
  947. "min": false,
  948. "show": true,
  949. "total": false,
  950. "values": false
  951. },
  952. "lines": true,
  953. "linewidth": 1,
  954. "nullPointMode": "null",
  955. "options": {
  956. "dataLinks": []
  957. },
  958. "percentage": false,
  959. "pointradius": 2,
  960. "points": false,
  961. "renderer": "flot",
  962. "seriesOverrides": [],
  963. "spaceLength": 10,
  964. "stack": false,
  965. "steppedLine": false,
  966. "targets": [
  967. {
  968. "expr": "sum(rate(container_network_receive_bytes_total{image!=\"\"}[1m])) without (interface)",
  969. "interval": "",
  970. "legendFormat": "",
  971. "refId": "A"
  972. }
  973. ],
  974. "thresholds": [],
  975. "timeFrom": null,
  976. "timeRegions": [],
  977. "timeShift": null,
  978. "title": "容器网络接收量速率",
  979. "tooltip": {
  980. "shared": true,
  981. "sort": 0,
  982. "value_type": "individual"
  983. },
  984. "type": "graph",
  985. "xaxis": {
  986. "buckets": null,
  987. "mode": "time",
  988. "name": null,
  989. "show": true,
  990. "values": []
  991. },
  992. "yaxes": [
  993. {
  994. "format": "short",
  995. "label": null,
  996. "logBase": 1,
  997. "max": null,
  998. "min": null,
  999. "show": true
  1000. },
  1001. {
  1002. "format": "short",
  1003. "label": null,
  1004. "logBase": 1,
  1005. "max": null,
  1006. "min": null,
  1007. "show": true
  1008. }
  1009. ],
  1010. "yaxis": {
  1011. "align": false,
  1012. "alignLevel": null
  1013. }
  1014. }
  1015. ],
  1016. "refresh": "5s",
  1017. "schemaVersion": 25,
  1018. "style": "dark",
  1019. "tags": [],
  1020. "templating": {
  1021. "list": []
  1022. },
  1023. "time": {
  1024. "from": "now-15m",
  1025. "to": "now"
  1026. },
  1027. "timepicker": {
  1028. "refresh_intervals": [
  1029. "10s",
  1030. "30s",
  1031. "1m",
  1032. "5m",
  1033. "15m",
  1034. "30m",
  1035. "1h",
  1036. "2h",
  1037. "1d"
  1038. ]
  1039. },
  1040. "timezone": "",
  1041. "title": "nodeName",
  1042. "uid": "2kWOIniGz",
  1043. "version": 7
  1044. }

查看pod:

  1. root@ubuntu:~# kubectl get pod -A
  2. NAMESPACE NAME READY STATUS RESTARTS AGE
  3. cadvisor cadvisor-phj6x 1/1 Running 1 17h
  4. default dls-cec-deploy-686bd4d6cd-gtrqb 1/1 Running 2 15h
  5. default dls-mms-deploy-6fd697754f-8xkkv 1/1 Running 2 15h
  6. default hccl-controller-645bb466f-lw9b4 1/1 Running 1 17h
  7. default tjm-77f784dcf-6s2f4 1/1 Running 2 15h
  8. kube-system ascend-device-plugin-daemonset-qrfbx 1/1 Running 1 17h
  9. kube-system calico-kube-controllers-8464785d6b-tl44n 1/1 Running 1 17h
  10. kube-system calico-node-lm7x5 1/1 Running 1 17h
  11. kube-system coredns-6955765f44-czzws 1/1 Running 1 17h
  12. kube-system coredns-6955765f44-t2n4z 1/1 Running 1 17h
  13. kube-system dls-apigw-deploy-9f58f549-sklgc 1/1 Running 2 15h
  14. kube-system dls-dms-deploy-76b79854cc-6m54s 1/1 Running 2 15h
  15. kube-system dls-ims-deploy-5445d6cc9d-96chh 1/1 Running 2 15h
  16. kube-system dls-nginx-deploy-7c9d889998-84956 1/1 Running 0 15h
  17. kube-system etcd-ubuntu 1/1 Running 1 17h
  18. kube-system grafana-core-f97475d78-b74ww 1/1 Running 0 15h
  19. kube-system kube-apiserver-ubuntu 1/1 Running 1 17h
  20. kube-system kube-controller-manager-ubuntu 1/1 Running 1 17h
  21. kube-system kube-proxy-rljv7 1/1 Running 1 17h
  22. kube-system kube-scheduler-ubuntu 1/1 Running 1 17h
  23. kube-system mysql-5cccdd88bd-mqv27 1/1 Running 0 15h
  24. kube-system prometheus-58c69548b4-bgw4h 1/1 Running 0 15h
  25. kube-system redis-deploy-7fbc4fb97d-bkkmb 1/1 Running 0 15h
  26. volcano-system volcano-admission-74776688c8-45mr8 1/1 Running 1 17h
  27. volcano-system volcano-admission-init-zgr5t 0/1 Completed 0 17h
  28. volcano-system volcano-controllers-6786db54f-nwnfw 1/1 Running 1 17h
  29. volcano-system volcano-scheduler-844f9b547b-qkxgt 1/1 Running 1 17h
  30. root@ubuntu:~#

华为 A800-9000 服务器 离线安装MindX DL 可视化环境+监控的更多相关文章

  1. 腾讯云服务器 离线安装最新稳定版MariaDB 10.2.6

    数据库方面我们一般都是使用mysql,由于前段时间我们切换到了MariaDB后,当然生产环境也要更着变,谁叫oracle是个碧池呢! mariaDB主要有三种安装方式 源码安装,有点繁琐,不推荐 yu ...

  2. 云服务器离线安装MariaDB安装步骤和解决办法

    前面我写了tomcat的安装那么接下来我们来安装云服务的数据库服务 第一步:下载安装包 https://downloads.mariadb.org/ 按照上图所示操作就能完成在线安装,但由于国内的网络 ...

  3. 国产服务器离线安装gm

    离线安装过程: 1.安装JPEGlib cd /opt/ ls tar -zxvf jpegsrc.v9b.tar.gz cd jpeg-9b/ ./configure make make insta ...

  4. Win7 VSCode 离线安装Rust语言及环境配置

    前置依赖 装过Visual Studio或Visual Studio Build Tool 2015 下载Rust离线安装包 https://forge.rust-lang.org/other-ins ...

  5. Linux学习2-云服务器上安装java和tomcat环境

    在linux上部署java的项目,首先要安装JDK和Tomcat,具体要求怎么操作呢,我们一起来学习吧! JDK的安装步骤如下: 1.首先我们从官网下载jdk-8u231-linux-x64.rpm安 ...

  6. [开源软件] 腾讯云Linux服务器一键安装LAMP/LNMP/LANMP环境 转

    本帖最后由 我本戏子 于 2015-8-13 22:00 编辑OneinStack是非常优秀的一键PHP/JAVA安装脚本,提供以下环境:lnmp(Linux + Nginx+ MySQL+ PHP) ...

  7. 在centos阿里云服务器上安装配置php运行环境 安装php7

    http://blog.csdn.net/kesixin/article/details/72882469 单独安装php7 http://blog.csdn.net/tang05709/articl ...

  8. CentOS7.6离线安装docker

    2019/10/24,docker 摘要:CentOS 7.6中离线安装docker 18.06.3以及docker-compose 1.24.1 在线安装可参照 文档 所需环境 1.CentOS 7 ...

  9. ftp服务器搭建(离线安装vsftpd),配置

    1.下载vsftp:http://rpmfind.net/linux/rpm2html/search.php?query=vsftpd(x86-64) 2.检查是否已经安装了vsftp rpm -qa ...

  10. 内网服务器离线编译安装mysql5.7并调优

    目录 内网服务器离线编译安装mysql5.7并调优 前言 关于MySQL 一.MySQL安装篇 部署环境 前期准备工具 挂载系统ISO镜像,配置yum源 二.MySQL调优篇 1.对MySQL进行安全 ...

随机推荐

  1. vue搭建项目iview+axios+less

    项目地址:https://github.com/CinderellaStory/vue-iview-project vue搭建项目壳子已安装:iview.axios.less 已有界面:登录.左侧菜单 ...

  2. 【NumPy】Python将数组中低于一定百分比的值替换

    情景举例 现有一个一维数组(或二维进行遍历)存放着很多,找到低于中位数20%的值并将小于该值的数全部替换为该值. 涉及方法 np.median(data, axis=0)用于计算数组中元素的中位数(中 ...

  3. 4组-Beta冲刺-5/5

    一.基本情况 队名:摸鲨鱼小队 组长博客:https://www.cnblogs.com/smallgrape/p/15608986.html github链接:https://github.com/ ...

  4. == 和 equal 的区别

    == 比较的是两个对象的索引是否相同: equal 比较的是两个对象内容是否相同: int a = 1;long b = 1L;a==b? 答案是 对:因为a和b指向的索引地址相同. 再例如 Stri ...

  5. 去除input框相关样式,只显示内容

    <input /> css代码: .edit-input{ /* width: 20px; */ height: -webkit-fill-available; background: i ...

  6. 解决Win7、Win10登录远程桌面连接时报错、提示“要求的函数不受支持”问题

    解决Win7.Win10登录远程桌面连接时报错.提示"要求的函数不受支持"问题远程登录主机时地址,用户名,密码均正确,但是提示错误"要求的函数不受支持": 解决 ...

  7. python+基本3D显示

    想要将双目照片合成立体图实现三维重建,完全没有头绪.但是对三维理解是必须的.所以将以前在单片机上运行的 3D画图 程序移植到python上.效果如下: 没有用numpy.openGL等,只用了纯mat ...

  8. javaheima15 递归

    Java File 作用 创建对象定位文件,可以删除.获取文件信息等.但不能读写文件内容. 构建对象的方式 File file = new File("文件/文件/绝对路径/相对路径&quo ...

  9. DBeaver通过phoenix连接云主机的hbase

    准备 1.云主机上已经安装好jdk.hadoop.hbase.zookeeper.phoenix,并且在主机上测试连接成功.可参考 https://blog.csdn.net/shangxindeku ...

  10. tuxedo启动相关的知识

    tuxedo启动都要启动哪些服务? tuxedo常用命令有哪些? 参考链接: https://docs.oracle.com/cd/E13161_01/tuxedo/docs10gr3/rfcm/rf ...