mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
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>
This commit is contained in:
parent
bcc2820682
commit
7ef78e3176
@ -28,18 +28,18 @@ ARG BUILDFLAGS="-ldflags=-w -s"
|
|||||||
WORKDIR $DIR
|
WORKDIR $DIR
|
||||||
COPY . .
|
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 apt update && apt -y install dpkg-dev libusb-1.0-0-dev
|
||||||
RUN mkdir -p /install_root/usr/local/share/package-sources/libusb \
|
RUN mkdir -p /install_root/usr/local/share/package-sources/libusb \
|
||||||
&& cd /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 -
|
&& cd -
|
||||||
RUN cd cmd/vpu_plugin; GO111MODULE=${GO111MODULE} CGO_ENABLED=1 go install "${BUILDFLAGS}"; 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 \
|
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 \
|
&& 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/
|
&& 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
|
RUN apt update && apt -y install libusb-1.0-0
|
||||||
COPY --from=builder /install_root /
|
COPY --from=builder /install_root /
|
||||||
ENTRYPOINT ["/usr/local/bin/intel_vpu_device_plugin"]
|
ENTRYPOINT ["/usr/local/bin/intel_vpu_device_plugin"]
|
||||||
|
Loading…
Reference in New Issue
Block a user