Repository navigation
container: support building a container image with custom packages - #64976
Conversation
Add a CUSTOM_CEPH_REPO_URL build argument to the Containerfile. This configures the container to consume ceph packages from the repo file indicated by this URL. This allows constructing a container image "the ceph way" without requiring the use of CI built packages. Signed-off-by: John Mulligan <[email protected]>
Update the build.sh script such that the environment variable CUSTOM_CEPH_REPO_URL is passed to the container build command as a build argument. This allows a developer or system outside of the ceph CI to build container images similar to those produced by the CI but using custom RPM packages. Signed-off-by: John Mulligan <[email protected]>
|
Wouldn't you want to also disable the 'standard' ceph repo in the case of the custom one? It seems like at best this would be hoping that the custom repo has versions that are viewed as 'later' than the standard shaman-searched path, and at worst could result in mixed versions if dependencies allow it |
The |
|
Got it; missed that. |
Update the Containerfile and the build.sh script such that an environment variable
CUSTOM_CEPH_REPO_URLspecifying the URL of a YUM/DNF repo file will be used instead of the typical Ceph CI infrastructure as the source for ceph project packages in the image.I tried to keep the changes as minimal as possible while allowing me to build images based on local builds of RPMs (using build-with-container.py).
Hosting the RPMs and the repo file are left as an exercise for the reader.
Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition