The intel gpu plugin is Kubernetes device plugin for discovering and advertising intel GPU (with driver type i915) in a Kubernetes host. StarlingX support requires us to build images: starlingx/k8s-intel-device: derived from ... https://github.com/intel/intel-device-plugins-for-kubernetes Change-Id: I3c39874444adb65c8e467a645e47b1ac8cafadb1 Story: 2005937 Task: 34285 Depends-On: https://review.opendev.org/668803 Signed-off-by: SidneyAn <ran1.an@intel.com>
21 lines
399 B
Bash
21 lines
399 B
Bash
#!/bin/bash
|
|
|
|
IMAGE_TAG=$1
|
|
PROXY=$2
|
|
DEVICE='intel-gpu-plugin'
|
|
|
|
if [ -z "${IMAGE_TAG}" ]; then
|
|
echo "image tag must be specified. build ${DEVICE} Aborting..." >&2
|
|
exit 1
|
|
fi
|
|
|
|
make ${DEVICE}
|
|
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to make intel-gpu-plugin. Aborting..." >&2
|
|
exit 1
|
|
fi
|
|
|
|
# will exit 1 if "${IMAGE_TAG}" do not match docker tag formate
|
|
docker tag ${DEVICE}:devel "${IMAGE_TAG}"
|