Skip to content

Commit

Permalink
Added nvidia-gpu-exporter based in the nvidia cuda image so it has nv…
Browse files Browse the repository at this point in the history
…idia-smi
  • Loading branch information
krobertson committed Apr 1, 2024
1 parent 7de2b78 commit c545501
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apps/nvidia-gpu-exporter/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM nvcr.io/nvidia/cuda:12.1.0-base-ubuntu22.04 AS base

ARG TARGETPLATFORM
ARG VERSION
ARG CHANNEL

RUN apt-get update \
&& apt-get install -y wget \
&& rm -rf /var/lib/apt/lists/*

CMD ["nvidia_gpu_exporter"]

RUN wget https://github.com/utkuozdemir/nvidia_gpu_exporter/releases/download/v${VERSION}/nvidia_gpu_exporter_${VERSION}_linux_x86_64.tar.gz \
&& tar -xvzf nvidia_gpu_exporter_${VERSION}_linux_x86_64.tar.gz \
&& mv nvidia_gpu_exporter /usr/bin/
4 changes: 4 additions & 0 deletions apps/nvidia-gpu-exporter/ci/latest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
channel=$1
version=$(curl -sX GET "https://api.github.com/repos/utkuozdemir/nvidia_gpu_exporter/releases" | jq --raw-output '.[0].tag_name' 2>/dev/null)
printf "%s" "${version:1}"
10 changes: 10 additions & 0 deletions apps/nvidia-gpu-exporter/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
app: nvidia-gpu-exporter
base: true
semantic_versioning: true
channels:
- name: master
platforms: ["linux/amd64"]
stable: true
tests:
enabled: false

0 comments on commit c545501

Please sign in to comment.