Skip to content

Commit 65c44b9

Browse files
committed
User ClearLinux as base builder image
1 parent fcaf818 commit 65c44b9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
FROM fedora:28 as builder
2-
RUN dnf update -y && \
3-
dnf install -y wget make gcc-c++ findutils golang-bin && \
1+
FROM clearlinux:base as builder
2+
3+
RUN swupd bundle-add wget c-basic go-basic && \
44
mkdir -p /usr/src/qat && \
55
cd /usr/src/qat && \
66
wget https://01.org/sites/default/files/downloads/qat1.7.l.4.5.0-00034.tar.gz && \
77
tar xf *.tar.gz
88
RUN cd /usr/src/qat/quickassist/utilities/adf_ctl && \
99
make KERNEL_SOURCE_DIR=/usr/src/qat/quickassist/qat && \
1010
cp -a adf_ctl /usr/bin/
11-
ARG DIR=/root/go/src/github.com/intel/intel-device-plugins-for-kubernetes
11+
ARG DIR=/go/src/github.com/intel/intel-device-plugins-for-kubernetes
1212
WORKDIR $DIR
1313
COPY . .
1414
RUN cd cmd/qat_plugin; go install
15-
RUN chmod a+x /root/go/bin/qat_plugin
15+
RUN chmod a+x /go/bin/qat_plugin
1616

1717
FROM gcr.io/distroless/cc
18-
COPY --from=builder /root/go/bin/qat_plugin /usr/bin/intel_qat_device_plugin
18+
COPY --from=builder /go/bin/qat_plugin /usr/bin/intel_qat_device_plugin
1919
COPY --from=builder /usr/bin/adf_ctl /usr/bin/adf_ctl
2020
CMD ["/usr/bin/intel_qat_device_plugin"]

0 commit comments

Comments
 (0)