Skip to content

Commit

Permalink
Fixes for building on arm64 (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
glowkey authored Apr 3, 2024
1 parent ec9c5ed commit 5121ded
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile.ubi9
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ COPY . .

RUN make binary check-format

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

ARG DCGM_VERSION
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.ubuntu22.04
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ COPY . .

RUN make binary check-format

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

COPY --from=builder /go/src/github.com/NVIDIA/dcgm-exporter/cmd/dcgm-exporter/dcgm-exporter /usr/bin/
Expand Down
4 changes: 2 additions & 2 deletions pkg/stdout/capture.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func Capture(ctx context.Context, inner func() error) error {
return err
}

err = syscall.Dup2(int(w.Fd()), syscall.Stdout)
err = syscall.Dup3(int(w.Fd()), syscall.Stdout, 0)
if err != nil {
return err
}
Expand All @@ -48,7 +48,7 @@ func Capture(ctx context.Context, inner func() error) error {
err = ierr
}

ierr = syscall.Dup2(stdout, syscall.Stdout)
ierr = syscall.Dup3(stdout, syscall.Stdout, 0)
if ierr != nil {
err = ierr
}
Expand Down

0 comments on commit 5121ded

Please sign in to comment.