Skip to content

Commit 37cdf01

Browse files
authored
Merge pull request #1049 from mattcary/debug
Update debug dockerfile for go1.19
2 parents 533b615 + 0707c6a commit 37cdf01

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Dockerfile.debug

+7-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.13.15 as builder
15+
FROM golang:1.19 as builder
1616
WORKDIR /go/src/sigs.k8s.io/gcp-compute-persistent-disk-csi-driver
1717
ADD . .
1818

19-
RUN CGO_ENABLED=0 go get -ldflags "-s -w -extldflags '-static'" github.com/go-delve/delve/cmd/dlv
20-
RUN GCE_PD_CSI_DEBUG=1 make gce-pd-driver
19+
ARG STAGINGVERSION
20+
ARG TARGETPLATFORM
21+
22+
RUN CGO_ENABLED=0 go install -ldflags "-s -w -extldflags '-static'" github.com/go-delve/delve/cmd/dlv@latest
23+
24+
RUN GOARCH="$(echo $TARGETPLATFORM | cut -f2 -d '/')" GCE_PD_CSI_STAGING_VERSION=$STAGINGVERSION GCE_PD_CSI_DEBUG=1 make gce-pd-driver
2125

2226
# MAD HACKS: Build a version first so we can take the scsi_id bin and put it somewhere else in our real build
2327
FROM k8s.gcr.io/build-image/debian-base-amd64:buster-v1.5.0 as mad-hack

0 commit comments

Comments
 (0)