mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
User ClearLinux as base builder image
This commit is contained in:
parent
fcaf818888
commit
65c44b92f9
@ -1,6 +1,6 @@
|
||||
FROM fedora:28 as builder
|
||||
RUN dnf update -y && \
|
||||
dnf install -y wget make gcc-c++ findutils golang-bin && \
|
||||
FROM clearlinux:base as builder
|
||||
|
||||
RUN swupd bundle-add wget c-basic go-basic && \
|
||||
mkdir -p /usr/src/qat && \
|
||||
cd /usr/src/qat && \
|
||||
wget https://01.org/sites/default/files/downloads/qat1.7.l.4.5.0-00034.tar.gz && \
|
||||
@ -8,13 +8,13 @@ RUN dnf update -y && \
|
||||
RUN cd /usr/src/qat/quickassist/utilities/adf_ctl && \
|
||||
make KERNEL_SOURCE_DIR=/usr/src/qat/quickassist/qat && \
|
||||
cp -a adf_ctl /usr/bin/
|
||||
ARG DIR=/root/go/src/github.com/intel/intel-device-plugins-for-kubernetes
|
||||
ARG DIR=/go/src/github.com/intel/intel-device-plugins-for-kubernetes
|
||||
WORKDIR $DIR
|
||||
COPY . .
|
||||
RUN cd cmd/qat_plugin; go install
|
||||
RUN chmod a+x /root/go/bin/qat_plugin
|
||||
RUN chmod a+x /go/bin/qat_plugin
|
||||
|
||||
FROM gcr.io/distroless/cc
|
||||
COPY --from=builder /root/go/bin/qat_plugin /usr/bin/intel_qat_device_plugin
|
||||
COPY --from=builder /go/bin/qat_plugin /usr/bin/intel_qat_device_plugin
|
||||
COPY --from=builder /usr/bin/adf_ctl /usr/bin/adf_ctl
|
||||
CMD ["/usr/bin/intel_qat_device_plugin"]
|
||||
|
Loading…
Reference in New Issue
Block a user