aurora-packaging git commit: Update provisioning scripts for testing aurora packages.

2016-10-25 Thread jcohen
Repository: aurora-packaging
Updated Branches:
  refs/heads/master 2d5acd41b -> 9f9118858


Update provisioning scripts for testing aurora packages.

Reviewed at https://reviews.apache.org/r/53064/


Project: http://git-wip-us.apache.org/repos/asf/aurora-packaging/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora-packaging/commit/9f911885
Tree: http://git-wip-us.apache.org/repos/asf/aurora-packaging/tree/9f911885
Diff: http://git-wip-us.apache.org/repos/asf/aurora-packaging/diff/9f911885

Branch: refs/heads/master
Commit: 9f91188587a0f3d358b171a9f4470b3d86d71576
Parents: 2d5acd4
Author: Joshua Cohen 
Authored: Tue Oct 25 13:26:20 2016 -0500
Committer: Joshua Cohen 
Committed: Tue Oct 25 13:26:20 2016 -0500

--
 test/deb/debian-jessie/provision.sh | 2 +-
 test/deb/ubuntu-trusty/README.md| 2 +-
 test/deb/ubuntu-trusty/provision.sh | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/9f911885/test/deb/debian-jessie/provision.sh
--
diff --git a/test/deb/debian-jessie/provision.sh 
b/test/deb/debian-jessie/provision.sh
index b79dfea..23bc56b 100644
--- a/test/deb/debian-jessie/provision.sh
+++ b/test/deb/debian-jessie/provision.sh
@@ -2,7 +2,7 @@
 
 echo "deb http://http.debian.net/debian jessie-backports main" | sudo tee -a 
/etc/apt/sources.list
 apt-get update
-apt-get install -y openjdk-8-jre libsvn1 zookeeperd
+apt-get install -y openjdk-8-jre libcurl4-nss-dev libcurl3 libevent-dev 
libsvn1 zookeeperd
 
 update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
 

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/9f911885/test/deb/ubuntu-trusty/README.md
--
diff --git a/test/deb/ubuntu-trusty/README.md b/test/deb/ubuntu-trusty/README.md
index 046459a..116ae8e 100644
--- a/test/deb/ubuntu-trusty/README.md
+++ b/test/deb/ubuntu-trusty/README.md
@@ -11,7 +11,7 @@ for installing released packages or release candidate 
packages.
 vagrant plugin install vagrant-scp
 
 # Scp over the newly built packages
-for deb in ../../../artifacts/aurora-debian-jessie/dist/*.deb; do
+for deb in ../../../artifacts/aurora-ubuntu-trusty/dist/*.deb; do
   vagrant scp $deb :$(basename $deb)
 done
 

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/9f911885/test/deb/ubuntu-trusty/provision.sh
--
diff --git a/test/deb/ubuntu-trusty/provision.sh 
b/test/deb/ubuntu-trusty/provision.sh
index b9807ef..e65fd18 100644
--- a/test/deb/ubuntu-trusty/provision.sh
+++ b/test/deb/ubuntu-trusty/provision.sh
@@ -2,7 +2,7 @@
 
 add-apt-repository ppa:openjdk-r/ppa -y
 apt-get update
-apt-get install -y openjdk-8-jre libsvn1 zookeeperd
+apt-get install -y openjdk-8-jre libcurl4-nss-dev libevent-dev libsvn1 
zookeeperd
 
 update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
 



aurora-packaging git commit: Clean up README for packaging repo, update release-candidate script to generate the vote email.

2016-10-25 Thread jcohen
Repository: aurora-packaging
Updated Branches:
  refs/heads/master b8edaf2c6 -> 2d5acd41b


Clean up README for packaging repo, update release-candidate script to generate 
the vote email.

Reviewed at https://reviews.apache.org/r/53102/


Project: http://git-wip-us.apache.org/repos/asf/aurora-packaging/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora-packaging/commit/2d5acd41
Tree: http://git-wip-us.apache.org/repos/asf/aurora-packaging/tree/2d5acd41
Diff: http://git-wip-us.apache.org/repos/asf/aurora-packaging/diff/2d5acd41

Branch: refs/heads/master
Commit: 2d5acd41bcb2cf076d6d2ad6b309599803acf204
Parents: b8edaf2
Author: Joshua Cohen 
Authored: Tue Oct 25 12:59:58 2016 -0500
Committer: Joshua Cohen 
Committed: Tue Oct 25 12:59:58 2016 -0500

--
 README.md   |  16 +--
 build-support/release/release-candidate |  62 ++-
 docs/images/bintray-upload.png  | Bin 145853 -> 0 bytes
 3 files changed, 73 insertions(+), 5 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/2d5acd41/README.md
--
diff --git a/README.md b/README.md
index 440aff2..56d8c0e 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,10 @@ Now run the [Building a binary](#building-a-binary) 
procedure detailed above.
 
  Hash, sign and upload the binaries
 
-Run the following which will create a tarball for each distribution platform 
that can be uploaded to bintray:
+Run the following which will create a tarball for each distribution platform 
that can be uploaded to
+bintray:
+
+N.B.: the release-candidate script requires bash 4.x or higher.
 
 ./build-support/release/release-candidate
 Signing artifacts for centos-7...
@@ -53,10 +56,15 @@ Run the following which will create a tarball for each 
distribution platform tha
 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'.
+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 artifacts. Bintray theoretically supports 
exploding tarballs on
+upload, but currently this functionality does not work (it fails to detect 
tarballs as explodable
+artifacts or, if it does, it tries to sign the artifacts, but fails due to a 
signature already being
+present, even when signing is disabled at the repo level).
 
-![bintray upload](docs/images/bintray-upload.png)
+This is all to say, it's easier to just un-tar the various upload.tar files 
and upload their
+contents directly. This can be accomplished by dragging and dropping all files 
into the upload UI
+for the version you created.
 
 Finally, 'publish' the results.
 

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/2d5acd41/build-support/release/release-candidate
--
diff --git a/build-support/release/release-candidate 
b/build-support/release/release-candidate
index c08c885..98df824 100755
--- a/build-support/release/release-candidate
+++ b/build-support/release/release-candidate
@@ -8,6 +8,13 @@ set -o errexit
 set -o nounset
 set -o pipefail
 
+
+RELEASE=$(git rev-parse --abbrev-ref HEAD)
+if [[ "$RELEASE" = "master" ]]; then
+  echo "This script must be run from a branch named for the release, e.g. 
0.16.x"
+  exit 1
+fi
+
 ROOT_DIR=$(git rev-parse --show-toplevel)
 cd "${ROOT_DIR}"
 
@@ -70,4 +77,57 @@ for os in $(oses); do
 echo "Skipping artifacts for ${os} (not found built under ${dist_dir})."
   fi
 done
-echo "All artifacts prepared for upload to bintray."
+echo "All artifacts prepared for upload to bintray. The following draft email 
has been created"
+echo "to send to the d...@aurora.apache.org mailing list"
+echo
+
+# Create the email template for the release candidate to be sent to the 
mailing lists.
+if [[ $(uname) == Darwin ]]; then
+  vote_end=$(date -v+3d)
+else
+  vote_end=$(date -d+3days)
+fi
+
+MESSAGE=$(cat <<__EOF__
+To: d...@aurora.apache.org
+Subject: [VOTE] Release Apache Aurora $RELEASE packages
+
+All,
+
+I propose that we accept the following artifacts as the official deb and rpm 
packaging for
+Apache Aurora ${RELEASE}:
+
+https://dl.bintray.com/${USER}/aurora/
+
+The Aurora deb and rpm packaging includes the following:
+
+---
+
+The branch used to create the packaging is:
+https://git1-us-west.apache.org/repos/asf?p=aurora-packaging.git;a=tree;hb=refs/heads/${RELEASE}
+