@@ -6,8 +6,8 @@ This repository maintains the Dockerfile and scripts to build Apache CloudStack
66
77| ** Dockerfile** | ** CloudStack versions** | ** Note** |
88| ---------------------| -------------------------------| ----------------------|
9- | ubuntu2204.v1 | 4.18.x, 4.19.x | For Ubuntu distros |
10- | rocky8.v1 | 4.18.x, 4.19.x | For RHEL/Rocky Linux/AlmaLinux/OracleLinux distros |
9+ | ubuntu2204.v1 | 4.18.x, 4.19.x | DEB packages for Ubuntu distros |
10+ | rocky8.v1 | 4.18.x, 4.19.x | RPM packages for RHEL/Rocky Linux/AlmaLinux/OracleLinux distros |
1111
1212## Usage
1313
@@ -30,13 +30,16 @@ Below are configurations in the configuration file.
3030
3131| ** Variablies** | ** Description** | ** Note** |
3232| ---------------------| -------------------------------| ----------------------|
33- | ` SOURCE ` | The directory where the source code is, or the URL of the git repository. | Mounted to /source/ if it is a directory. |
34- | ` OUTPUT ` | The directory where the packages will be in. | Mounted to /output/ in the docker container. |
35- | ` SUDO ` | Please set to ` sudo ` if you use a non-root user | Default: None. |
36- | ` VERSION ` | The CloudStack version, branch name or commit SHA | Default: None. |
37- | ` BUILD_OPTS ` | The build options. Refer to ` Build Options ` | Default: None. |
33+ | ` SOURCE ` | The directory where the source code is, or the URL of the git repository. | Mounted to /source/ if it is a directory |
34+ | ` OUTPUT ` | The directory where the packages will be in. | Mounted to /output/ in the docker container |
35+ | ` SUDO ` | Please set to ` sudo ` if you use a non-root user | Default: None |
36+ | ` VERSION ` | The CloudStack version, branch name or commit SHA | Default: None |
37+ | ` BUILD_OPTS ` | The build options. Refer to ` Build Options ` | Default: ` "-Dnoredist -DskipTests -Dsystemvm-kvm -Dsystemvm-xen -Dsystemvm-vmware" ` |
38+ | ` PACKAGE_OPTS ` | The options for ` package.sh ` (RPM only) | Default: None |
3839
39- A sample of environment variables can be found at ` config.ubuntu.sample ` .
40+ Samples of environment variables can be found at
41+ - ` config.ubuntu.sample `
42+ - ` config.rocky8.sample `
4043
4144### 2. Build packages with parameters
4245
@@ -108,11 +111,23 @@ $SUDO docker run -ti \
108111
109112| ** OS** | ** Option** | ** Note** |
110113| -------------| --------------------| ----------------------|
111- | Ubuntu | -Dnoredist | Support non-Open Source Software (e.g. VMware) |
114+ | Ubuntu/Rocky8 | -Dnoredist | Support non-Open Source Software (e.g. VMware) |
112115| | -DskipTests | Skip unit tests |
113116| | -Dsystemvm-kvm | Bundle with SystemVM template for KVM |
114117| | -Dsystemvm-vmware | Bundle with SystemVM template for VMware |
115118| | -Dsystemvm-xen | Bundle with SystemVM template for XenServer/XCP-ng |
116119
117120
118- The default value for ubuntu images is ` -Dnoredist -DskipTests -Dsystemvm-kvm -Dsystemvm-xen -Dsystemvm-vmware `
121+ The default value is ` -Dnoredist -DskipTests -Dsystemvm-kvm -Dsystemvm-xen -Dsystemvm-vmware `
122+
123+ ## Package Options (RPM only)
124+
125+ More details for RPM build can be found at https://github.com/apache/cloudstack/blob/main/packaging/package.sh
126+
127+ | ** OS** | ** Option** | ** Note** |
128+ | -------------| --------------------| ----------------------|
129+ | Rocky 8 | -p, --pack | Define which type of libraries to package ("oss"| "OSS"| "noredist"| "NOREDIST") (default "oss") |
130+ | | -T, --use-timestamp | Use epoch timestamp instead of SNAPSHOT in the package name (if not provided, use "SNAPSHOT") |
131+ | | -t, --templates | Passes necessary flag to package the required templates. Comma separated string - kvm,xen,vmware,ovm,hyperv |
132+
133+ The default value for rocky images is ``
0 commit comments