Skip to content

Commit

Permalink
Update UBI prod image with certification requirements
Browse files Browse the repository at this point in the history
Signed-off-by: Renaud Gaubert <[email protected]>
  • Loading branch information
Renaud Gaubert committed Apr 24, 2020
1 parent 11e7486 commit 660164d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,15 @@ push-latest:

ubuntu18.04:
$(DOCKER) build --pull \
--build-arg GOLANG_VERSION="$(GOLANG_VERSION)" \
--build-arg DCGM_VERSION="$(DCGM_VERSION)" \
--build-arg "GOLANG_VERSION=$(GOLANG_VERSION)" \
--build-arg "DCGM_VERSION=$(DCGM_VERSION)" \
--tag "$(REGISTRY)/dcgm-exporter:$(FULL_VERSION)-ubuntu18.04" \
--file docker/Dockerfile.ubuntu18.04 .

ubi8:
$(DOCKER) build --pull \
--build-arg GOLANG_VERSION="$(GOLANG_VERSION)" \
--build-arg DCGM_VERSION="$(DCGM_VERSION)" \
--build-arg "GOLANG_VERSION=$(GOLANG_VERSION)" \
--build-arg "DCGM_VERSION=$(DCGM_VERSION)" \
--build-arg "VERSION=$(FULL_VERSION)" \
--tag "$(REGISTRY)/dcgm-exporter:$(FULL_VERSION)-ubi8" \
--file docker/Dockerfile.ubi8 .
12 changes: 12 additions & 0 deletions docker/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,16 @@ ENV NVIDIA_VISIBLE_DEVICES=all
RUN useradd dcgm-exporter
USER dcgm-exporter

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 in the prometheus format"
LABEL description="See summary"

COPY ./LICENSE ./licenses/LICENSE

ENTRYPOINT ["/usr/bin/dcgm-exporter"]

0 comments on commit 660164d

Please sign in to comment.