5f72ddb26a
Create Intel FPGA plugins Docker images to StarlingX image build from intel-device-plugins-for-kubernetes. Adjust the script to make it more generic. Update intel-gpu-plugin to the latest codebase as well. Change-Id: I4e60de505aca5d01c10a4db396a2311591b44ff0 Story: 2006495 Task: 36710 Signed-off-by: Alex Kozyrev <alex.kozyrev@windriver.com>
33 lines
725 B
Bash
33 lines
725 B
Bash
#!/bin/bash
|
|
################################################################################
|
|
# Copyright (c) 2019 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
################################################################################
|
|
|
|
DEVICE=$1
|
|
IMAGE_TAG=$2
|
|
|
|
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 ${DEVICE}. Aborting..." >&2
|
|
exit 1
|
|
fi
|
|
|
|
RETVAL=0
|
|
docker tag intel/${DEVICE}:devel "${IMAGE_TAG}"
|
|
if [ $? -ne 0 ]; then
|
|
echo "Failed to tag ${DEVICE} with ${IMAGE_TAG}. Aborting..." >&2
|
|
RETVAL=1
|
|
fi
|
|
|
|
docker rmi intel/${DEVICE}:devel
|
|
exit ${RETVAL}
|