diff --git a/distroless_stable_docker_images.inc b/distroless_stable_docker_images.inc new file mode 100644 index 000000000..f2405a0b9 --- /dev/null +++ b/distroless_stable_docker_images.inc @@ -0,0 +1 @@ +kubernetes/plugins/intel-device-plugin diff --git a/kubernetes/plugins/intel-device-plugin/distroless/build-intel-gpu-plugin-image.sh b/kubernetes/plugins/intel-device-plugin/distroless/build-intel-gpu-plugin-image.sh new file mode 100644 index 000000000..d2867520d --- /dev/null +++ b/kubernetes/plugins/intel-device-plugin/distroless/build-intel-gpu-plugin-image.sh @@ -0,0 +1,20 @@ +#!/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}" diff --git a/kubernetes/plugins/intel-device-plugin/distroless/intel-gpu-plugin.stable_docker_image b/kubernetes/plugins/intel-device-plugin/distroless/intel-gpu-plugin.stable_docker_image new file mode 100644 index 000000000..b07d2d9cb --- /dev/null +++ b/kubernetes/plugins/intel-device-plugin/distroless/intel-gpu-plugin.stable_docker_image @@ -0,0 +1,6 @@ +BUILDER=script +LABEL=intel-gpu-plugin +SOURCE_REPO=https://github.com/intel/intel-device-plugins-for-kubernetes.git +SOURCE_REF=156970adcaa6d4db42532110f370505d6777135b +COMMAND=bash +SCRIPT=build-intel-gpu-plugin-image.sh