job-exporter docker image clean#140
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR optimizes the Docker build process for the job-exporter component by introducing multi-stage builds, streamlining dependency installation, and updating tools. The changes aim to reduce both build time and final image size.
Changes:
- Introduced multi-stage Docker build with separate builder and runtime stages to minimize final image size
- Replaced custom-built AMD RDC and DCGM installations with pre-packaged versions from official repositories
- Updated nerdctl from version 2.1.3 to 2.2.1
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| job-exporter.common.dockerfile | Complete restructure with multi-stage build, optimized layer caching, and streamlined dependency installation |
| moneo-gpu-exporter_entrypoint.sh | Removed DCGM update script call since DCGM 4 is now directly installed |
| update-dcgm.py | Removed as DCGM version management is now handled during Docker build |
| nvidia.sh | Removed as DCGM installation is now handled directly in Dockerfile |
| common.sh | Removed as common dependencies are now installed directly in Dockerfile |
| amd.sh | Removed as RDC installation is now handled via package manager instead of building from source |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
added 5 commits
February 10, 2026 06:39
hippogr
force-pushed
the
ruigao/job-exporter-clean
branch
from
February 10, 2026 06:40
cbf7d2b to
96be80b
Compare
hippogr
force-pushed
the
ruigao/job-exporter-clean
branch
from
February 25, 2026 07:21
984ac92 to
f64ea85
Compare
zhogu
approved these changes
Mar 30, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is used to clean the docker build process for job-exporter to reduce the build time as well as the docker image size, as well as the tool update.