Skip to content

Commit 5121ded

Browse files
authored
Fixes for building on arm64 (#306)
1 parent ec9c5ed commit 5121ded

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docker/Dockerfile.ubi9

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ COPY . .
4040

4141
RUN make binary check-format
4242

43-
FROM nvcr.io/nvidia/cuda:12.3.1-base-ubi9
43+
FROM nvcr.io/nvidia/cuda:12.3.2-base-ubi9
4444
LABEL io.k8s.display-name="NVIDIA DCGM Exporter"
4545

4646
ARG DCGM_VERSION

docker/Dockerfile.ubuntu22.04

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ COPY . .
4545

4646
RUN make binary check-format
4747

48-
FROM nvcr.io/nvidia/cuda:12.3.1-base-ubuntu22.04
48+
FROM nvcr.io/nvidia/cuda:12.3.2-base-ubuntu22.04
4949
LABEL io.k8s.display-name="NVIDIA DCGM Exporter"
5050

5151
COPY --from=builder /go/src/github.com/NVIDIA/dcgm-exporter/cmd/dcgm-exporter/dcgm-exporter /usr/bin/

pkg/stdout/capture.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func Capture(ctx context.Context, inner func() error) error {
3737
return err
3838
}
3939

40-
err = syscall.Dup2(int(w.Fd()), syscall.Stdout)
40+
err = syscall.Dup3(int(w.Fd()), syscall.Stdout, 0)
4141
if err != nil {
4242
return err
4343
}
@@ -48,7 +48,7 @@ func Capture(ctx context.Context, inner func() error) error {
4848
err = ierr
4949
}
5050

51-
ierr = syscall.Dup2(stdout, syscall.Stdout)
51+
ierr = syscall.Dup3(stdout, syscall.Stdout, 0)
5252
if ierr != nil {
5353
err = ierr
5454
}

0 commit comments

Comments
 (0)