Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down