#!/usr/bin/env bash
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# SPDX-FileCopyrightText: 2019-2024 Second State INC
set -e
echo "Installing OpenVINO with version 2024.2.0"
KEY_FILE=GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
wget https://apt.repos.intel.com/intel-gpg-keys/$KEY_FILE && \
    apt-key add $KEY_FILE && \
    rm -f $KEY_FILE
UBUNTU_VERSION="ubuntu${OPENVINO_UBUNTU_VERSION:-20}"
echo "deb https://apt.repos.intel.com/openvino/2024 ${UBUNTU_VERSION} main" | tee /etc/apt/sources.list.d/intel-openvino-2024.list
apt update
apt-get -y install openvino-2024.2.0
ldconfig
