diff --git a/Dockerfile b/Dockerfile index 291841700ef122ce781ac74d35a5aebea85f02d3..fccebec9a3d131913615cfba6836a91d5e84976b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.13.11-buster as build +FROM ubuntu:18.04 as build RUN useradd -d /home/hwMindX -u 9000 -m -s /bin/bash hwMindX && \ useradd -d /home/HwHiAiUser -u 1000 -m -s /bin/bash HwHiAiUser && \ @@ -6,18 +6,9 @@ RUN useradd -d /home/hwMindX -u 9000 -m -s /bin/bash hwMindX && \ ENV USE_ASCEND_DOCKER true -ENV GOPATH /usr/app/ - -ENV GO111MODULE off - -ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH - ENV LD_LIBRARY_PATH /usr/local/Ascend/driver/lib64/driver:/usr/local/Ascend/driver/lib64/common ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/Ascend/driver/lib64/ -RUN mkdir -p /usr/app/src/ascend-device-plugin - -COPY . /usr/app/src/Ascend-device-plugin +COPY ./output/ascendplugin /usr/local/bin -WORKDIR /usr/app/src/Ascend-device-plugin \ No newline at end of file diff --git a/README.md b/README.md index ff637014494bc0761a7a8dd8d36c5a57687b2559..e0f66102c672a57fa3ebb0aaf521cdefe7291942 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,8 @@ -# Ascend Device Plugin +# Ascend Device Plugin.en - [Ascend Device Plugin](#ascend-device-plugin.md) - [Description](#description.md) - [Compiling the Ascend Device Plugin](#compiling-the-ascend-device-plugin.md) - - [Quickly Compiling the Ascend Device Plugin](#quickly-compiling-the-ascend-device-plugin.md) - - [Compiling the Ascend Device Plugin](#compiling-the-ascend-device-plugin-0.md) - - [Creating DaemonSet.](#creating-daemonset.md) + - [Creating DaemonSet](#creating-daemonset.md) - [Creating a Service Container](#creating-a-service-container.md) - [Environment Dependencies](#environment-dependencies.md) - [Directory Structure](#directory-structure.md) @@ -15,7 +13,7 @@ - **[Compiling the Ascend Device Plugin](#compiling-the-ascend-device-plugin.md)** -- **[Creating DaemonSet.](#creating-daemonset.md)** +- **[Creating DaemonSet](#creating-daemonset.md)** - **[Creating a Service Container](#creating-a-service-container.md)** @@ -30,105 +28,9 @@ The device management plug-in provides the following functions: