Skip to content

Commit b3e5d89

Browse files
authored
Merge pull request #1 from ravi9/2022.3.0
Update to OV 2022.3.0. Installs OV notebooks
2 parents 9839927 + b1c7b71 commit b3e5d89

File tree

7 files changed

+90
-94
lines changed

7 files changed

+90
-94
lines changed

add_cron_job.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
(
33
crontab -l 2>/dev/null
44
echo "@reboot su ec2-user -c \"/home/ec2-user/.start_jupyter.sh\" "
5-
echo "@reboot su ec2-user -c \"/home/ec2-user/.start_dlworkbench.sh\" "
65
) | crontab -

ec2builder-component.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: OpenVinoInstallDocument
2-
description: This is OpenVINO and DL workbench install document.
2+
description: This is OpenVINO and OpenVINO Notebooks install document.
33
schemaVersion: 1.0
44

55
phases:
@@ -9,15 +9,15 @@ phases:
99
action: WebDownload
1010
maxAttempts: 3
1111
inputs:
12-
- source: https://raw.githubusercontent.com/psakamoori/scripts/main/install-ov-dlw.sh
12+
- source: https://raw.githubusercontent.com/ravi9/openvino-ami/2022.3.0/install-ov-notebooks.sh
1313
destination: /tmp/
1414
overwrite: true
1515
ignoreCertificateErrors: true
16-
- name: InstallOpenVinoAndDlworkbench
16+
- name: InstallOpenVinoNotebooks
1717
action: ExecuteBash
1818
inputs:
1919
commands:
20-
- sudo su ec2-user -c "bash /tmp/install-ov-dlw.sh"
20+
- sudo su ec2-user -c "bash /tmp/install-ov-notebooks.sh"
2121

2222
- name: validate
2323
steps:

ec2builder-test-component.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: OpenVinoInstallTestDocument
2-
description: This is OpenVINO and DL workbench installation testing document.
2+
description: This is OpenVINO and OpenVINO Notebooks install testing document.
33
schemaVersion: 1.0
44

55
phases:
@@ -9,11 +9,11 @@ phases:
99
action: WebDownload
1010
maxAttempts: 3
1111
inputs:
12-
- source: https://raw.githubusercontent.com/psakamoori/scripts/main/test-pip-ov-install.sh
12+
- source: https://raw.githubusercontent.com/ravi9/openvino-ami/2022.3.0/test-pip-ov-install.sh
1313
destination: /tmp/
1414
overwrite: true
1515
ignoreCertificateErrors: true
16-
- name: InstallOpenVinoAndDlworkbenchTest
16+
- name: InstallOpenVinoNotebooksTest
1717
action: ExecuteBash
1818
inputs:
1919
commands:

install-ov-dlw.sh

Lines changed: 0 additions & 68 deletions
This file was deleted.

install-ov-notebooks.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
3+
# Script to install following on Amazon Linux 2 EC2 instance
4+
# Intel OpenVINO (DEV) and its dependencies,
5+
# Jupyter Lab
6+
# Install OpenVINO_Notebooks https://github.com/openvinotoolkit/openvino_notebooks
7+
8+
# Install dependencies
9+
sudo yum -y update &&
10+
sudo yum -y upgrade &&
11+
sudo yum -y groupinstall "Development Tools" &&
12+
sudo yum install -y python3 python3-devel.x86_64 mesa-libGL
13+
14+
sudo ln -s /usr/bin/pip3 /usr/bin/pip
15+
16+
pip install --upgrade pip
17+
18+
pip install jupyterlab ipywidgets virtualenv
19+
20+
cd /home/ec2-user
21+
git clone --depth=1 https://github.com/openvinotoolkit/openvino_notebooks.git
22+
cd openvino_notebooks
23+
24+
pip install -r requirements.txt
25+
26+
# Install specific version of OPENCV
27+
OPENCV_VER=4.5.5.64
28+
pip install -U opencv-python-headless==$OPENCV_VER opencv-python==$OPENCV_VER
29+
30+
# Name the ipython kernel to OpenVINO
31+
/usr/bin/python3 -m ipykernel install --user --name OpenVINO
32+
33+
# Download scripts to start Jupyter
34+
curl https://raw.githubusercontent.com/psakamoori/scripts/main/start_jupyter.sh -o /home/ec2-user/.start_jupyter.sh
35+
36+
# Give executable permissions to the scripts
37+
chmod 755 /home/ec2-user/.start_jupyter.sh
38+
39+
# Add cronjob to start jupyter on start of the instance.
40+
curl https://raw.githubusercontent.com/psakamoori/scripts/main/add_cron_job.sh -o /home/ec2-user/.add_cron_job.sh
41+
42+
sudo bash /home/ec2-user/.add_cron_job.sh

install-ov.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
3+
# Script to install following on Amazon Linux 2 EC2 instance
4+
# Intel OpenVINO (DEV) and its dependencies,
5+
# Jupyter Lab
6+
7+
OV_VER=2022.3.0
8+
9+
# Install dependencies and Docker
10+
sudo yum -y update &&
11+
sudo yum -y groupinstall "Development Tools"
12+
13+
sudo ln -s /usr/bin/pip3 /usr/bin/pip
14+
15+
# Install Python 3, Pip, Jupyterlab, OpenVINO and dependencies
16+
sudo yum install -y python3 &&
17+
sudo yum install -y python3-devel.x86_64 &&
18+
pip install --upgrade pip &&
19+
pip install jupyterlab ipywidgets progress tqdm matplotlib scipy ipykernel virtualenv &&
20+
pip install openvino-dev[pytorch,tensorflow2,onnx,mxnet]==$OV_VER
21+
22+
# Install this specific version of CV and uninstall to bypass libgl errors.
23+
pip install -U opencv-python-headless==4.2.0.32 &&
24+
pip uninstall -y opencv-python
25+
26+
# Clear pip cache
27+
pip cache purge
28+
29+
# Name the ipython kernel to OpenVINO
30+
/usr/bin/python3 -m ipykernel install --user --name OpenVINO
31+
32+
# Download scripts to start Jupyter
33+
curl https://raw.githubusercontent.com/psakamoori/scripts/$OV_VER/start_jupyter.sh -o /home/ec2-user/.start_jupyter.sh
34+
35+
# Give executable permissions to the scripts
36+
chmod 755 /home/ec2-user/.start_jupyter.sh
37+
38+
# Add cronjob to start jupyter on start of the instance.
39+
curl https://raw.githubusercontent.com/psakamoori/scripts/$OV_VER/add_cron_job.sh -o /home/ec2-user/.add_cron_job.sh
40+
41+
sudo bash /home/ec2-user/.add_cron_job.sh

start_dlworkbench.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)