File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,16 @@ WORKDIR /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
2323ADD . .
2424RUN GOARCH=$(echo $TARGETPLATFORM | cut -f2 -d '/') GCE_PD_CSI_STAGING_VERSION=$STAGINGVERSION make gce-pd-driver
2525
26+ # MAD HACKS: Build a version first so we can take the scsi_id bin and put it somewhere else in our real build
27+ FROM k8s.gcr.io/build-image/debian-base:buster-v1.9.0 as mad-hack
28+ RUN clean-install udev
29+
2630# Start from Kubernetes Debian base
2731# A distroless base is not used because it cannot be tested for ARM until GCE has ARM hardware
2832FROM k8s.gcr.io/build-image/debian-base:buster-v1.9.0
2933COPY --from=builder /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/bin/gce-pd-csi-driver /gce-pd-csi-driver
3034# Install necessary dependencies
3135RUN clean-install util-linux e2fsprogs mount ca-certificates udev xfsprogs
32- COPY /lib/udev/scsi_id /lib/udev_containerized/scsi_id
36+ COPY --from=mad-hack /lib/udev/scsi_id /lib/udev_containerized/scsi_id
3337
34- ENTRYPOINT ["/gce-pd-csi-driver"]
38+ ENTRYPOINT ["/gce-pd-csi-driver"]
You can’t perform that action at this time.
0 commit comments