You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After this, two new commands will be available: `xcp-ng-dev-env-create` and
40
+
`xcp-ng-dev`.
41
+
42
+
If you want to develop the package and try the changes as you develop the
43
+
package, clone the repository and install the `xcp-ng-dev` package:
44
+
45
+
```bash
46
+
git clone github.com:xcp-ng/xcp-ng-build-env
47
+
cd xcp-ng-build-env
48
+
uv tool install --editable .
49
+
```
50
+
51
+
If `uv` is not available you can use other tools to install python packages,
52
+
like `pipx install --editable .`
53
+
54
+
If you do not want this behaviour, use: `uv tool install --from . xcp-ng-dev`
55
+
or `pipx install .`
56
+
57
+
## Completion
58
+
59
+
### Bash
60
+
61
+
To install the completion, add `eval "$(register-python-argcomplete xcp-ng-dev)"` to `~/.bash_completion` and relaunch Bash.
62
+
63
+
### Zsh
64
+
65
+
To install the completion, add `eval "$(register-python-argcomplete xcp-ng-dev)"` to `~/.zshrc` and relaunch Zsh.
66
+
67
+
### Fish
68
+
69
+
To install the completion, run `register-python-argcomplete --shell fish xcp-ng-dev > ~/.config/fish/completions/xcp-ng-dev.fish` and relaunch fish.
70
+
25
71
## Building the container image(s)
26
72
27
73
You need one container image per target version of XCP-ng.
28
74
29
-
Clone this repository (outside any container), then use `build.sh` to
75
+
Clone this repository (outside any container), then use `xcp-ng-dev-env-create` to
30
76
generate the images for the wanted releases of XCP-ng.
31
77
Note that Docker and Podman store container images separately.
32
78
33
79
```
34
-
Usage: ./build.sh {version_of_XCP_ng}
80
+
Usage: xcp-ng-dev-env-create {version_of_XCP_ng}
35
81
... where {version_of_XCP_ng} is a 'x.y' version such as 8.0.
36
82
```
37
83
38
84
## Using the container
39
85
40
-
Use the `run.py` script. It accepts a variety of parameters allowing for different uses:
86
+
Use `xcp-ng-dev`. It accepts a variety of parameters allowing for different uses:
41
87
* rebuild an existing source RPM (with automated installation of the build dependencies)
42
88
* build a package from an already extracted source RPM (sources and spec file), or from a directory that follows the rpmbuild convention (a `SOURCES/` directory and a `SPECS/` directory). Most useful for building packages from XCP-ng's git repositories of RPM sources: https://github.com/xcp-ng-rpms.
43
89
* or simply start a shell in the build environment, with the appropriate CentOS, EPEL and XCP-ng yum repositories enabled.
0 commit comments