Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

[83754] Install GPU drivers to opensource image #67

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docker/dockerfiles/Dockerfile_opensource_image.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
FROM node:14-alpine AS client_builder
ENV CLIENT_FOLDER /root/client
COPY client ${CLIENT_FOLDER}
WORKDIR ${CLIENT_FOLDER}
RUN npm ci
RUN DL_PROFILER_BACKEND_STATIC_PATH=${CLIENT_FOLDER}/static/ npm run pack

FROM ubuntu:20.04

SHELL ["/bin/bash", "+x", "-c"]
Expand Down Expand Up @@ -78,6 +85,9 @@ RUN apt update && \
RUN sed -Ei 's/# deb-src /deb-src /' /etc/apt/sources.list && \
apt update && \
apt install -y --no-install-recommends ${DEPENDENCIES} && \
curl -L https://raw.githubusercontent.com/openvinotoolkit/openvino/master/scripts/install_dependencies/install_NEO_OCL_driver.sh -o /tmp/install_NEO_OCL_driver.sh && \
chmod +x /tmp/install_NEO_OCL_driver.sh && \
bash /tmp/install_NEO_OCL_driver.sh -y && \
apt source gettext-base && \
apt remove -y dpkg-dev && \
apt clean && \
Expand All @@ -92,6 +102,9 @@ ADD --chown=workbench setupvars.sh ${INTEL_OPENVINO_DIR}/
WORKDIR ${INTEL_OPENVINO_DIR}/tools
ADD --chown=workbench workbench ${OPENVINO_WORKBENCH_ROOT}/

WORKDIR ${OPENVINO_WORKBENCH_ROOT}
COPY --from=client_builder --chown=workbench /root/client/static ./static/

RUN python3 -m pip install pip==19.3.1

# COPY JUPYTER USER SETTINGS
Expand Down
10 changes: 3 additions & 7 deletions docker/local/build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,20 @@ done

set -e

echo
echo -e "${TERMINAL_COLOR_MESSAGE} The script must be run from the root folder of the Workbench ${TERMINAL_COLOR_CLEAR}"
echo -e "${TERMINAL_COLOR_MESSAGE} Also install 'NVM' from the repository 'https://github.com/nvm-sh/nvm' and install the client dependencies in the client folder with the following command: 'npm install'${TERMINAL_COLOR_CLEAR}"
echo

ROOT_FOLDER="${PWD}"
pushd ${ROOT_FOLDER}

pushd client
source ${NVM_DIR}/nvm.sh && nvm use 14
DL_PROFILER_BACKEND_STATIC_PATH=../static/ npm run pack
popd

if [ -d $TEMP_FOLDER ]; then
rm -rf $TEMP_FOLDER
fi
mkdir $TEMP_FOLDER
pushd $TEMP_FOLDER
rsync -av --progress ${ROOT_FOLDER} ./ --exclude={'venv','venv_tf2','tests','client','.git','wb/data','.venv','.unified_venv'}
rsync -av --progress ${ROOT_FOLDER}/client ./ --exclude={'node_modules','.idea','.git','e2e'}

VERSIONS_FILE="${ROOT_FOLDER}/automation/Jenkins/openvino_version.yml"

Expand Down Expand Up @@ -92,4 +88,4 @@ pushd ${ROOT_FOLDER}
popd

echo "To run the image, execute the following command:"
echo "docker rm local_build || true && openvino-workbench --image ${IMAGE_NAME}:${IMAGE_TAG} --container-name local_build"
echo "docker rm local_build || true && openvino-workbench --image ${IMAGE_NAME}:${IMAGE_TAG} --container-name local_build --enable-gpu"