File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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 /tmp/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
4055Use the ` run.py ` script. It accepts a variety of parameters allowing for different uses:
You can’t perform that action at this time.
0 commit comments