Skip to content

Commit 5566867

Browse files
committed
Maven build with multi threads
1 parent 39a729f commit 5566867

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Below are configurations in the configuration file.
3434
| `OUTPUT` | The directory where the packages will be in. | Mounted to /output/ in the docker container |
3535
| `SUDO` | Please set to `sudo` if you use a non-root user | Default: None |
3636
| `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"` |
37+
| `BUILD_OPTS` | The build options. Refer to `Build Options` | Default: `"-Dnoredist -DskipTests -Dsystemvm-kvm -Dsystemvm-xen -Dsystemvm-vmware -T2"` |
3838
| `PACKAGE_OPTS` | The options for `package.sh` (RPM only) | Default: None |
3939

4040
Samples of environment variables can be found at
@@ -116,9 +116,10 @@ $SUDO docker run -ti \
116116
| | -Dsystemvm-kvm | Bundle with SystemVM template for KVM |
117117
| | -Dsystemvm-vmware | Bundle with SystemVM template for VMware |
118118
| | -Dsystemvm-xen | Bundle with SystemVM template for XenServer/XCP-ng |
119+
| | -T n | Builds with n threads |
119120

120121

121-
The default value is `-Dnoredist -DskipTests -Dsystemvm-kvm -Dsystemvm-xen -Dsystemvm-vmware`
122+
The default value is `-Dnoredist -DskipTests -Dsystemvm-kvm -Dsystemvm-xen -Dsystemvm-vmware -T2`
122123

123124
## Package Options (RPM only)
124125

centos7.v1/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ javac -version
88

99
SOURCE_DIR=/source/
1010
OUTPUT_DIR=/output/
11-
BUILD_OPTS_DEFAULT="-Dnoredist -DskipTests -Dsystemvm-kvm -Dsystemvm-xen -Dsystemvm-vmware"
11+
BUILD_OPTS_DEFAULT="-Dnoredist -DskipTests -Dsystemvm-kvm -Dsystemvm-xen -Dsystemvm-vmware -T2"
1212

1313
SOURCE=${SOURCE:-}
1414
VERSION=${VERSION:-}

rocky8.v1/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ javac -version
88

99
SOURCE_DIR=/source/
1010
OUTPUT_DIR=/output/
11-
BUILD_OPTS_DEFAULT="-Dnoredist -DskipTests -Dsystemvm-kvm -Dsystemvm-xen -Dsystemvm-vmware"
11+
BUILD_OPTS_DEFAULT="-Dnoredist -DskipTests -Dsystemvm-kvm -Dsystemvm-xen -Dsystemvm-vmware -T2"
1212

1313
SOURCE=${SOURCE:-}
1414
VERSION=${VERSION:-}

ubuntu2204.v1/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ javac -version
77

88
SOURCE_DIR=/source/
99
OUTPUT_DIR=/output/
10-
BUILD_OPTS_DEFAULT="-Dnoredist -DskipTests -Dsystemvm-kvm -Dsystemvm-xen -Dsystemvm-vmware"
10+
BUILD_OPTS_DEFAULT="-Dnoredist -DskipTests -Dsystemvm-kvm -Dsystemvm-xen -Dsystemvm-vmware -T2"
1111

1212
SOURCE=${SOURCE:-}
1313
VERSION=${VERSION:-}

0 commit comments

Comments
 (0)