Skip to content

Commit 7ef78e3

Browse files
committed
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 <mikko.ylinen@intel.com>
1 parent bcc2820 commit 7ef78e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/docker/intel-vpu-plugin.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ ARG BUILDFLAGS="-ldflags=-w -s"
2828
WORKDIR $DIR
2929
COPY . .
3030

31-
RUN echo "deb-src http://deb.debian.org/debian buster main" | tee -a /etc/apt/sources.list
31+
RUN echo "deb-src http://deb.debian.org/debian unstable main" | tee -a /etc/apt/sources.list
3232
RUN apt update && apt -y install dpkg-dev libusb-1.0-0-dev
3333
RUN mkdir -p /install_root/usr/local/share/package-sources/libusb \
3434
&& cd /install_root/usr/local/share/package-sources/libusb \
35-
&& apt source libusb-1.0-0 \
35+
&& apt-get --download-only source libusb-1.0-0 \
3636
&& cd -
3737
RUN cd cmd/vpu_plugin; GO111MODULE=${GO111MODULE} CGO_ENABLED=1 go install "${BUILDFLAGS}"; cd -
3838
RUN install -D /go/bin/vpu_plugin /install_root/usr/local/bin/intel_vpu_device_plugin \
3939
&& install -D ${DIR}/LICENSE /install_root/usr/local/share/package-licenses/intel-device-plugins-for-kubernetes/LICENSE \
4040
&& scripts/copy-modules-licenses.sh ./cmd/vpu_plugin /install_root/usr/local/share/
4141

42-
FROM debian:buster-slim
42+
FROM debian:unstable-slim
4343
RUN apt update && apt -y install libusb-1.0-0
4444
COPY --from=builder /install_root /
4545
ENTRYPOINT ["/usr/local/bin/intel_vpu_device_plugin"]

0 commit comments

Comments
 (0)