File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ ADD . .
18
18
RUN make
19
19
20
20
# MAD HACKS: Build a version first so we can take the scsi_id bin and put it somewhere else in our real build
21
- FROM k8s.gcr.io/build-image/debian-base-amd64:v2.1.3 as base
21
+ FROM k8s.gcr.io/build-image/debian-base-amd64:buster-v1.5.0 as mad-hack
22
22
RUN clean-install udev
23
23
24
24
# Start from Kubernetes Debian base
25
- FROM k8s.gcr.io/build-image/debian-base-amd64:v2.1.3
25
+ FROM k8s.gcr.io/build-image/debian-base-amd64:buster-v1.5.0
26
26
COPY --from=builder /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver/bin/gce-pd-csi-driver /gce-pd-csi-driver
27
27
# Install necessary dependencies
28
28
RUN clean-install util-linux e2fsprogs mount ca-certificates udev xfsprogs
29
- COPY --from=base /lib/udev/scsi_id /lib/udev_containerized/scsi_id
29
+ COPY --from=mad-hack /lib/udev/scsi_id /lib/udev_containerized/scsi_id
30
30
31
31
ENTRYPOINT ["/gce-pd-csi-driver" ]
Original file line number Diff line number Diff line change @@ -40,21 +40,26 @@ trap cleanup EXIT
40
40
pushd $tmpDir >& /dev/null
41
41
42
42
opsys=windows
43
+ arch=amd64
43
44
if [[ " $OSTYPE " == linux* ]]; then
44
- opsys=linux_amd64
45
+ opsys=linux
45
46
elif [[ " $OSTYPE " == darwin* ]]; then
46
47
opsys=darwin
47
48
fi
48
49
49
- curl -s https://api.github.com/repos/kubernetes-sigs/kustomize/releases | \
50
- grep browser_download | \
51
- grep $opsys | \
50
+ # As github has a limit on what stored in releases/, and kustomize has many different package
51
+ # versions, we just point directly at the version we want. See
52
+ # github.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh.
53
+
54
+ version=v3.9.4
55
+ url_base=https://api.github.com/repos/kubernetes-sigs/kustomize/releases/tags/kustomize%2F
56
+ curl -s ${url_base}${version} | \
57
+ grep browser_download.* ${opsys} _${arch} | \
52
58
cut -d ' "' -f 4 | \
53
- grep /kustomize/v3.9.4 | \
54
- sort | tail -n 1 | \
59
+ sort -V | tail -n 1 | \
55
60
xargs curl -s -O -L
56
61
57
- tar xzf ./kustomize_v* _${opsys} .tar.gz
62
+ tar xzf ./kustomize_v* _${opsys} _ ${arch} .tar.gz
58
63
59
64
cp ./kustomize $where
60
65
You can’t perform that action at this time.
0 commit comments