From b274551deec1e9476cf6dc5c54d625c7d7d0e06e Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 11 Aug 2025 17:27:17 +0200 Subject: [PATCH] Add instructions to include custom files in the build env Signed-off-by: Guillaume --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index b9b8154..ae052c3 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,21 @@ Usage: ./build.sh {version_of_XCP_ng} ... where {version_of_XCP_ng} is a 'x.y' version such as 8.0. ``` +## Adding custom files + +In some cases, you may want to include additional files in the build +environment - for example, a custom repository configuration. + +Suppose you have `/tmp/xcpng-users.repo` and you want it to be available +as a YUM repository in the container. You can do this by adding the +following line to your Dockerfile: +``` +COPY /tmp/xcpng-users.repo /etc/yum.repos.d/ +``` + +This approach is useful when you want to enable extra repositories during +the build or runtime, especially when using `run.py` to manage repositories. + ## Using the container Use the `run.py` script. It accepts a variety of parameters allowing for different uses: