commit | e7fa0096f17fd27fe9b80fa6778cdb87e5082fc4 | [log] [tgz] |
---|---|---|
author | Stephan Erb <serb@apache.org> | Mon Jun 20 19:52:36 2016 +0200 |
committer | Stephan Erb <serb@apache.org> | Mon Jun 20 19:52:36 2016 +0200 |
tree | c560039dcaf4159fb5c80da163accceeb7992049 | |
parent | aa58302370022fcbf9545ccb17a18fa45e11d3fc [diff] |
Improve consistency of the RPM and DEB default configuration * Use identical scheduler default arguments * Log to stderr rather than disk in all packages * Use vagrant as the example role. It is available for all distributions * Use the same clusters.json for all distributions * Rename the clutername from main to example Bugs closed: AURORA-1394 Reviewed at https://reviews.apache.org/r/48606/
This repository maintains configuration and tooling for building binary distributions of Apache Aurora.
Binaries are built within Docker containers that provide the appropriate build environment for the target platform. You will need to have a working Docker installation before proceeding.
Fetch a source distribution, such as an official one. Alternatively, you can also build from an arbitrary git commit by instead preparing sources from the Aurora source repository:
git archive --prefix=apache-aurora-$(cat .auroraversion)/ -o snapshot.tar.gz HEAD
Run the builder script, providing the distribution platform and the source distribution archive you downloaded in (1). The example below will build Aurora 0.9.0 debs for Ubuntu Trusty.
./build-artifact.sh builder/deb/ubuntu-trusty \ ../apache-aurora-0.9.0.tar.gz \ 0.9.0
When this completes, debs will be placed in dist/builder/deb/ubuntu-trusty/
.
Release candidates are hashed and signed binaries that are uploaded to bintray for easy access and testing by voters. You will need to have a bintray account and a generic repo created for the purpose of uploading the release candidate binaries in order to proceed.
The example below is for the 0.12.0 release where upstream is https://git-wip-us.apache.org/repos/asf/aurora-packaging:
git checkout -b 0.12.x upstream/master
Now run the Building a binary procedure detailed above.
Run the following which will create a tarball for each distribution platform that can be uploaded to bintray:
./build-support/release/release-candidate Signing artifacts for centos-7... Created archive for centos-7 artifacts at /home/jsirois/dev/aurora/jsirois-aurora-packaging/artifacts/aurora-centos-7/dist/rpmbuild/RPMS/upload.tar. Signing artifacts for debian-jessie... Created archive for debian-jessie artifacts at /home/jsirois/dev/aurora/jsirois-aurora-packaging/artifacts/aurora-debian-jessie/upload.tar. Signing artifacts for ubuntu-trusty... Created archive for ubuntu-trusty artifacts at /home/jsirois/dev/aurora/jsirois-aurora-packaging/artifacts/aurora-ubuntu-trusty/upload.tar. All artifacts prepared for upload to bintray.
In the bintray UI, create a new version in your release-candidate repo, for example ‘0.12.0’. Then, in the version UI you can upload the tarballs, ensuring you select ‘Explode this archive’.
Finally, ‘publish’ the results.
There are only two requirements for a ‘builder’ to satisfy:
Dockerfile
to provide the repeatable build environmentbuild.sh
script that creates artifactsPlease see the makeup of other builders for examples.