cloudstack/packaging
Wei Zhou eef63d99a4
packaging: fix centos8/el8 upgrade (#7267)
2023-02-21 12:27:07 +01:00
..
centos7 utils,framework/db: Introduce new database encryption cipher based on AesGcmJce (#7003) 2023-02-02 16:25:49 +01:00
centos8 packaging: fix centos8/el8 upgrade (#7267) 2023-02-21 12:27:07 +01:00
debian packaging: Adding Centos8, Ubuntu 20.04, XCPNG8.1 Support (#4068) 2020-08-17 16:28:30 +05:30
systemd packaging: Issue #3974 Deploying mysql-ha jar file into its own path to allow for easy inclusion of just this jar file into multiple packages, such as cloudstack-management and cloudstack-usage. (#3975) 2021-09-08 10:31:11 +05:30
README.md packaging: update Requirements in README (#4725) 2021-02-24 17:46:01 +05:30
build-deb.sh packaging: new timestamp format and add output dir option (#4471) 2021-02-19 14:26:13 +05:30
el9 packaging: allow universal EL pkging to support EL8, EL9, Suse15 (#6844) 2022-12-23 14:57:20 +05:30
package.sh Create profiles to download systemvm-templates (#5602) 2022-03-17 00:55:27 -03:00
suse15 packaging: consolidate suse15 to el8 (#6995) 2022-12-23 14:40:01 +05:30

README.md

CloudStack RPM and DEB packaging

This directory contains all the required scripts and tools needed to build RPM and DEB packages for Apache CloudStack.

These scripts are also used by the CloudStack team to build packages for the official release of CloudStack.

Requirements

The RPM and DEB packages have dependencies on versions of specific libraries. Due to these dependencies the following distributions and their versions are supported by the packages.

  • CentOS / RHEL: 7 and 8
  • Debian 7 (Wheezy) and 8 (Jessy) (untested!)
  • Ubuntu: 16.04 (Xenial), 18.04 (Bionic) and 20.04 (Focal)

Building

Using the scripts in the packaging directory the RPM and DEB packages can be build.

DEB

If you simply want to build packages go to the root directory of your CloudStack source code and run:

dpkg-buildpackage

This will build packages for the current distribution version you are running. If you run this on a Ubuntu 16.04 system the packages will be tailored for Ubuntu 16.04 and will not install on Ubuntu 14.04.

Building cross-distribution

If you want to build packages for a different distribution run the build-deb.sh script. This will build packages with the current distribution as a suffix to the package names. E.g. cloudstack-agent_4.9.0~xenial_all.deb

Using a Docker image you can build packages for a distribution you are not running.

The following commands assume that the CloudStack source is present in /tmp/cloudstack on the system you are running these commands on.

docker run -ti -v /tmp:/src ubuntu:16.04 /bin/bash -c "apt-get update && apt-get install -y dpkg-dev python debhelper openjdk-8-jdk genisoimage python-mysql.connector maven lsb-release devscripts && /src/cloudstack/packaging/build-deb.sh"

docker run -ti -v /tmp:/src ubuntu:14.04 /bin/bash -c "apt-get update && apt-get install -y dpkg-dev python debhelper openjdk-7-jdk genisoimage python-mysql.connector maven lsb-release devscripts && /src/cloudstack/packaging/build-deb.sh"

The commands above will generate Ubuntu 14.04 and 16.04 packages which you will find in /tmp on your system after the build succeeds.

RPM

The package.sh script can be used to build RPM packages for CloudStack. In the packaging script you can run the following command:

./package.sh --pack oss --distribution centos7