Skip to content

Commit 6b6584c

Browse files
authored
Update start_dlworkbench.sh
1 parent e84e7a8 commit 6b6584c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

start_dlworkbench.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
# Script to launch openvino-workbench container
22
# OpenVINO DL Workbench Application accessed through web browser with http://<ec2-public-ip>:5665/
33

4-
OV_VERSION=2022.1.0
4+
TOKEN=$(curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600")
5+
INSTANCE_ID=$(curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/instance-id)
6+
7+
OV_DLW_VER=2022.1
8+
59
# Remove any existing workbench container
610
docker rm workbench
711

812
# Start OpenVINO DL Workbench
913
/home/ec2-user/.local/bin/openvino-workbench \
10-
--image openvino/workbench:$OV_VERSION \
14+
--image openvino/workbench:$OV_DLW_VER \
15+
--custom-token $INSTANCE_ID \
1116
--enable-authentication \
1217
--assets-directory /home/ec2-user/.workbench \
1318
>/tmp/ov-workbench.log 2>&1 &

0 commit comments

Comments
 (0)