-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
75 additions
and
621 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
ARG GOLANG_VERSION | ||
FROM golang:$GOLANG_VERSION AS builder | ||
WORKDIR /go/src/github.com/NVIDIA/dcgm-exporter | ||
|
||
COPY . . | ||
|
||
RUN make binary check-format | ||
|
||
FROM nvcr.io/nvidia/cuda:12.2.2-base-ubi9 | ||
LABEL io.k8s.display-name="NVIDIA DCGM Exporter" | ||
|
||
ARG DCGM_VERSION | ||
|
||
RUN dnf clean expire-cache && dnf install -y datacenter-gpu-manager-${DCGM_VERSION} libcap | ||
|
||
COPY --from=builder /go/src/github.com/NVIDIA/dcgm-exporter/cmd/dcgm-exporter/dcgm-exporter /usr/bin/ | ||
COPY etc /etc/dcgm-exporter | ||
|
||
ENV NVIDIA_VISIBLE_DEVICES=all | ||
# disable all constraints on the configurations required by NVIDIA container toolkit | ||
ENV NVIDIA_DISABLE_REQUIRE="true" | ||
# Required for DCP metrics | ||
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility,compat32 | ||
|
||
ARG VERSION | ||
|
||
LABEL io.k8s.display-name="NVIDIA DCGM Eporter" | ||
LABEL name="NVIDIA DCGM Exporter" | ||
LABEL vendor="NVIDIA" | ||
LABEL version="${VERSION}" | ||
LABEL release="N/A" | ||
LABEL summary="Exports GPU Metrics to Prometheus" | ||
LABEL description="See summary" | ||
|
||
COPY ./LICENSE ./licenses/LICENSE | ||
|
||
ENV NO_SETCAP= | ||
COPY docker/dcgm-exporter-entrypoint.sh /usr/local/dcgm/dcgm-exporter-entrypoint.sh | ||
RUN chmod +x /usr/local/dcgm/dcgm-exporter-entrypoint.sh | ||
|
||
ENTRYPOINT ["/usr/local/dcgm/dcgm-exporter-entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.