bernardodemarco commented on PR #11932:
URL: https://github.com/apache/cloudstack/pull/11932#issuecomment-3473335588

   > I'd rather not figure out how to build .deb packages for it if I don't 
have to :)
   
   @bradh352, I personally use this DEB builder: 
https://github.com/scclouds/cloudstack-deb-builder. 
   
   By default, it does not populate the `cloudstack-management` DEB with the 
system VM template and, therefore, the resulting package is more lightweight. 
However, the ACS environment must have the correct system VM template 
configured before installing the PR's packages.
   
   To build the packages, go to the Apache CloudStack source code root 
directory and execute:
   
   ```
   docker run -v <code-path>:/mnt/build/cloudstack -v ~/.m2:/root/.m2 -e 
"USER_ID=$(id -u)" -e "USER_GID=$(id -g)" -e "ACS_BUILD_OPTS=-T 
<number-of-threads> -DskipTests" 
scclouds/cloudstack-deb-builder:ubuntu2004-jdk11-python3
   ```  
   
   Where:
   - `<code-path>` is the path of the Apache CloudStack source code directory; 
and,
   - `<number-of-threads>` is the number of threads that will be used to build 
the artifacts.
   
   For example:
   
   ```
   docker run -v ~/code/cloudstack:/mnt/build/cloudstack -v ~/.m2:/root/.m2 -e 
"USER_ID=$(id -u)" -e "USER_GID=$(id -g)" -e "ACS_BUILD_OPTS=-T 4 -DskipTests" 
scclouds/cloudstack-deb-builder:ubuntu2004-jdk11-python3
   ```
   
   It may take a little bit longer for the first build process to finish, due 
to the download process of some dependencies. After it is finished, the DEB 
packages will be located inside the Apache CloudStack source code directory, at 
the `/dist/debbuild/DEBS` path.
   
   Hope it helps!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to