mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
23 lines
717 B
Bash
Executable File
23 lines
717 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
# check if DCP tarball is present
|
|
DCP_TARBALL=a10_gx_pac_ias_1_1_pv_rte_installer.tar.gz
|
|
if [ ! -f ${DCP_TARBALL} ] ; then
|
|
echo "ERROR: 'Acceleration Stack for Runtime' tarball $DCP_TARBALL not present"
|
|
echo "ERROR: Please, download it from https://www.intel.com/content/www/us/en/programmable/solutions/acceleration-hub/downloads.html and run this script again"
|
|
exit 1
|
|
fi
|
|
|
|
# build CRI hook
|
|
HOOK=fpga_crihook
|
|
make -C ../../ $HOOK
|
|
cp ../../cmd/$HOOK/$HOOK ./intel-fpga-crihook
|
|
|
|
# build initcontainer image
|
|
WORKSPACE=`realpath .`
|
|
IMG="intel-fpga-initcontainer"
|
|
TAG=$(git rev-parse HEAD)
|
|
|
|
docker build --rm -t $IMG:devel -f $WORKSPACE/$IMG.Dockerfile $WORKSPACE
|
|
docker tag $IMG:devel $IMG:$TAG
|