From 7ef78e31761cf0b306fba115baf6d7a56976d32a Mon Sep 17 00:00:00 2001 From: Mikko Ylinen Date: Mon, 27 Sep 2021 09:19:53 +0300 Subject: [PATCH] vpu: use debian unstable as base To align with other images that use Debian, move intel-vpu-plugin container image to use unstable too. Both the build image and the final base image use libusb-1.0 which is ABI compatible. Signed-off-by: Mikko Ylinen --- build/docker/intel-vpu-plugin.Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/docker/intel-vpu-plugin.Dockerfile b/build/docker/intel-vpu-plugin.Dockerfile index cbca3ca2..b2a4e2fb 100644 --- a/build/docker/intel-vpu-plugin.Dockerfile +++ b/build/docker/intel-vpu-plugin.Dockerfile @@ -28,18 +28,18 @@ ARG BUILDFLAGS="-ldflags=-w -s" WORKDIR $DIR COPY . . -RUN echo "deb-src http://deb.debian.org/debian buster main" | tee -a /etc/apt/sources.list +RUN echo "deb-src http://deb.debian.org/debian unstable main" | tee -a /etc/apt/sources.list RUN apt update && apt -y install dpkg-dev libusb-1.0-0-dev RUN mkdir -p /install_root/usr/local/share/package-sources/libusb \ && cd /install_root/usr/local/share/package-sources/libusb \ - && apt source libusb-1.0-0 \ + && apt-get --download-only source libusb-1.0-0 \ && cd - RUN cd cmd/vpu_plugin; GO111MODULE=${GO111MODULE} CGO_ENABLED=1 go install "${BUILDFLAGS}"; cd - RUN install -D /go/bin/vpu_plugin /install_root/usr/local/bin/intel_vpu_device_plugin \ && install -D ${DIR}/LICENSE /install_root/usr/local/share/package-licenses/intel-device-plugins-for-kubernetes/LICENSE \ && scripts/copy-modules-licenses.sh ./cmd/vpu_plugin /install_root/usr/local/share/ -FROM debian:buster-slim +FROM debian:unstable-slim RUN apt update && apt -y install libusb-1.0-0 COPY --from=builder /install_root / ENTRYPOINT ["/usr/local/bin/intel_vpu_device_plugin"]