Skip to content

Commit 7379b31

Browse files
committed
Add instructions to include custom files in the build env
Signed-off-by: Guillaume <[email protected]>
1 parent 14eb61e commit 7379b31

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,21 @@ Usage: ./build.sh {version_of_XCP_ng}
3535
... where {version_of_XCP_ng} is a 'x.y' version such as 8.0.
3636
```
3737

38+
## Adding custom files
39+
40+
In some cases, you may want to include additional files in the build
41+
environment - for example, a custom repository configuration.
42+
43+
Suppose you have `/tmp/xcpng-users.repo` and you want it to be available
44+
as a YUM repository in the container. You can do this by adding the
45+
following line to your Dockerfile:
46+
```
47+
COPY files/xcpng-users.repo /etc/yum.repos.d/
48+
```
49+
50+
This approach is useful when you want to enable extra repositories during
51+
the build or runtime, especially when using `run.py` to manage repositories.
52+
3853
## Using the container
3954

4055
Use the `run.py` script. It accepts a variety of parameters allowing for different uses:

0 commit comments

Comments
 (0)