You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by wf...@apache.org on 2015/08/04 23:44:07 UTC

[01/11] aurora-packaging git commit: Build Kerberos clients in RPM.

Repository: aurora-packaging
Updated Branches:
  refs/heads/master [created] 36e42de32


Build Kerberos clients in RPM.

Testing Done:
None - I don't have a test environment for RPMs.

Bugs closed: AURORA-1410

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


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

Branch: refs/heads/master
Commit: 36e42de32e81647c3f5e2fe0748f92017a2e2140
Parents: 1a7ef26
Author: Kevin Sweeney <ke...@apache.org>
Authored: Mon Aug 3 12:21:09 2015 -0700
Committer: Bill Farner <wf...@twitter.com>
Committed: Tue Aug 4 14:07:42 2015 -0700

----------------------------------------------------------------------
 build-support/packaging/rpm/aurora.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/36e42de3/build-support/packaging/rpm/aurora.spec
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/aurora.spec b/build-support/packaging/rpm/aurora.spec
index 3003ced..5ec516f 100644
--- a/build-support/packaging/rpm/aurora.spec
+++ b/build-support/packaging/rpm/aurora.spec
@@ -70,6 +70,7 @@ BuildRequires: gcc
 BuildRequires: gcc-c++
 BuildRequires: git
 BuildRequires: java-%{JAVA_VERSION}-openjdk-devel
+BuildRequires: krb5-devel
 BuildRequires: libcurl-devel
 BuildRequires: patch
 %if 0%{?rhel} && 0%{?rhel} < 7
@@ -102,6 +103,7 @@ resource isolation.
 Summary: A client for scheduling services against the Aurora scheduler
 Group: Development/Tools
 
+Requires: krb5-libs
 %if 0%{?rhel} && 0%{?rhel} < 7
 Requires: python27
 %else
@@ -177,8 +179,8 @@ popd
 ./gradle-%{GRADLE_VERSION}/bin/gradle installDist
 
 # Builds Aurora client PEX binaries.
-./pants binary src/main/python/apache/aurora/admin:aurora_admin
-./pants binary src/main/python/apache/aurora/client:aurora
+./pants binary src/main/python/apache/aurora/kerberos:kaurora
+./pants binary src/main/python/apache/aurora/kerberos:kaurora_admin
 
 # Builds Aurora Thermos and GC executor PEX binaries.
 ./pants binary src/main/python/apache/aurora/executor:thermos_executor
@@ -222,6 +224,10 @@ for pex_binary in %{PEX_BINARIES}; do
   install -m 755 dist/${pex_binary}.pex %{buildroot}%{_bindir}/${pex_binary}
 done
 
+# Strip the "k" from Kerberized client binaries.
+mv %{buildroot}%{_bindir}/kaurora %{buildroot}%{_bindir}/aurora
+mv %{buildroot}%{_bindir}/kaurora_admin %{buildroot}%{_bindir}/aurora_admin
+
 # Installs all support scripting.
 %if 0%{?fedora} || 0%{?rhel} > 6
 install -m 644 build-support/packaging/rpm/%{name}.service %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service


[03/11] aurora-packaging git commit: Upgrade gradle version dependencies in rpm/deb specs.

Posted by wf...@apache.org.
Upgrade gradle version dependencies in rpm/deb specs.

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


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

Branch: refs/heads/master
Commit: f0fe01fc87d3d2171beff2b304c8df313e20d289
Parents: df6325c
Author: Bill Farner <wf...@apache.org>
Authored: Thu Jul 9 14:28:20 2015 -0700
Committer: Bill Farner <wf...@twitter.com>
Committed: Tue Aug 4 14:07:42 2015 -0700

----------------------------------------------------------------------
 build-support/packaging/debian/aurora-doc.docs  |  1 +
 .../packaging/debian/aurora-doc.examples        |  1 +
 .../packaging/debian/aurora-executor.dirs       |  2 +
 .../packaging/debian/aurora-executor.install    |  5 ++
 .../packaging/debian/aurora-executor.links      |  1 +
 .../debian/aurora-executor.thermos.default      | 18 ++++
 .../debian/aurora-executor.thermos.init         | 69 ++++++++++++++
 .../debian/aurora-executor.thermos.upstart      | 28 ++++++
 .../packaging/debian/aurora-scheduler.default   | 77 ++++++++++++++++
 .../packaging/debian/aurora-scheduler.init      | 95 ++++++++++++++++++++
 .../packaging/debian/aurora-scheduler.install   |  2 +
 .../packaging/debian/aurora-scheduler.links     |  1 +
 .../packaging/debian/aurora-scheduler.postinst  | 54 +++++++++++
 .../packaging/debian/aurora-scheduler.upstart   | 39 ++++++++
 .../packaging/debian/aurora-tools.install       |  2 +
 .../packaging/debian/aurora-tools.links         |  2 +
 build-support/packaging/debian/changelog        | 74 +++++++++++++++
 build-support/packaging/debian/clusters.json    | 10 +++
 build-support/packaging/debian/compat           |  1 +
 build-support/packaging/debian/control          | 78 ++++++++++++++++
 build-support/packaging/debian/copyright        |  8 ++
 build-support/packaging/debian/pants.ini        |  9 ++
 build-support/packaging/debian/rules            | 44 +++++++++
 build-support/packaging/debian/source/format    |  1 +
 build-support/packaging/rpm/aurora.spec         |  2 +-
 debian/aurora-doc.docs                          |  1 -
 debian/aurora-doc.examples                      |  1 -
 debian/aurora-executor.dirs                     |  2 -
 debian/aurora-executor.install                  |  5 --
 debian/aurora-executor.links                    |  1 -
 debian/aurora-executor.thermos.default          | 18 ----
 debian/aurora-executor.thermos.init             | 69 --------------
 debian/aurora-executor.thermos.upstart          | 28 ------
 debian/aurora-scheduler.default                 | 77 ----------------
 debian/aurora-scheduler.init                    | 95 --------------------
 debian/aurora-scheduler.install                 |  2 -
 debian/aurora-scheduler.links                   |  1 -
 debian/aurora-scheduler.postinst                | 54 -----------
 debian/aurora-scheduler.upstart                 | 39 --------
 debian/aurora-tools.install                     |  2 -
 debian/aurora-tools.links                       |  2 -
 debian/changelog                                | 74 ---------------
 debian/clusters.json                            | 10 ---
 debian/compat                                   |  1 -
 debian/control                                  | 78 ----------------
 debian/copyright                                |  8 --
 debian/pants.ini                                |  9 --
 debian/rules                                    | 44 ---------
 debian/source/format                            |  1 -
 49 files changed, 623 insertions(+), 623 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-doc.docs
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-doc.docs b/build-support/packaging/debian/aurora-doc.docs
new file mode 100644
index 0000000..a188e06
--- /dev/null
+++ b/build-support/packaging/debian/aurora-doc.docs
@@ -0,0 +1 @@
+docs/*

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-doc.examples
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-doc.examples b/build-support/packaging/debian/aurora-doc.examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/build-support/packaging/debian/aurora-doc.examples
@@ -0,0 +1 @@
+examples/*

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-executor.dirs
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-executor.dirs b/build-support/packaging/debian/aurora-executor.dirs
new file mode 100644
index 0000000..f62944b
--- /dev/null
+++ b/build-support/packaging/debian/aurora-executor.dirs
@@ -0,0 +1,2 @@
+/var/lib/thermos
+/var/lib/thermos/sandbox

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-executor.install
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-executor.install b/build-support/packaging/debian/aurora-executor.install
new file mode 100644
index 0000000..5d0d1f7
--- /dev/null
+++ b/build-support/packaging/debian/aurora-executor.install
@@ -0,0 +1,5 @@
+dist/thermos_executor.pex /usr/share/aurora/bin
+dist/thermos_observer.pex /usr/share/aurora/bin
+dist/thermos.pex /usr/share/aurora/bin
+
+debian/clusters.json /etc/aurora

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-executor.links
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-executor.links b/build-support/packaging/debian/aurora-executor.links
new file mode 100644
index 0000000..973c7e0
--- /dev/null
+++ b/build-support/packaging/debian/aurora-executor.links
@@ -0,0 +1 @@
+/usr/share/aurora/bin/thermos_observer.pex /usr/sbin/thermos_observer

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-executor.thermos.default
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-executor.thermos.default b/build-support/packaging/debian/aurora-executor.thermos.default
new file mode 100644
index 0000000..82ab0c8
--- /dev/null
+++ b/build-support/packaging/debian/aurora-executor.thermos.default
@@ -0,0 +1,18 @@
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Defaults for thermos observer
+
+# Listen port for thermos_observer
+OBSERVER_PORT=1338

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-executor.thermos.init
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-executor.thermos.init b/build-support/packaging/debian/aurora-executor.thermos.init
new file mode 100755
index 0000000..24a59d2
--- /dev/null
+++ b/build-support/packaging/debian/aurora-executor.thermos.init
@@ -0,0 +1,69 @@
+#!/bin/sh
+# Start/stop the thermos-observer daemon.
+#
+### BEGIN INIT INFO
+# Provides:          thermos
+# Required-Start:    $remote_fs $syslog $time
+# Required-Stop:     $remote_fs $syslog $time
+# Should-Start:      $network $named slapd autofs ypbind nscd nslcd
+# Should-Stop:       $network $named slapd autofs ypbind nscd nslcd
+# Default-Start:     2 3 4 5
+# Default-Stop:
+# Short-Description: Thermos observer daemon
+# Description:       Thermos observer is a component of Apache Aurora. It
+#                    provides administrative visibility into the status of
+#                    running tasks on mesos-slave nodes.
+### END INIT INFO
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+DESC="Aurora Thermos observer"
+NAME=thermos
+DAEMON=/usr/sbin/thermos_observer
+PIDFILE=/var/run/thermos_observer.pid
+SCRIPTNAME=/etc/init.d/"$NAME"
+
+test -f $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
+if which initctl >/dev/null && initctl version | grep -q upstart; then
+  if test -e /lib/init/upstart-job -a -e /etc/init/${NAME}.conf; then
+    . /lib/init/upstart-job
+    exit $?
+  fi
+fi
+
+[ -r /etc/default/thermos ] && . /etc/default/thermos
+
+ARGS="--root=/var/run/thermos
+      --port=${OBSERVER_PORT:-1338}
+      --log_to_disk=NONE
+      --log_to_stderr=google:INFO"
+
+case "$1" in
+  start)
+    log_daemon_msg "Starting $DESC" "$NAME"
+    mkdir -p /var/run/thermos
+    start_daemon -p $PIDFILE $DAEMON $ARGS
+    log_end_msg $?
+    ;;
+  stop)
+    log_daemon_msg "Stopping $DESC" "$NAME"
+    killproc -p $PIDFILE $DAEMON
+    RETVAL=$?
+    [ $RETVAL -eq 0 ] && [ -e "$PIDFILE" ] && rm -f $PIDFILE
+    log_end_msg $RETVAL
+    ;;
+  restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME"
+    $0 stop
+    $0 start
+    ;;
+  status)
+    status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
+    ;;
+  *)
+    log_action_msg "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}"
+    exit 2
+    ;;
+esac
+exit 0

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-executor.thermos.upstart
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-executor.thermos.upstart b/build-support/packaging/debian/aurora-executor.thermos.upstart
new file mode 100644
index 0000000..ffa4f98
--- /dev/null
+++ b/build-support/packaging/debian/aurora-executor.thermos.upstart
@@ -0,0 +1,28 @@
+# vi:ft=upstart
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+description "Aurora Thermos observer"
+start on stopped rc RUNLEVEL=[2345]
+respawn
+post-stop exec sleep 5
+
+pre-start exec mkdir -p /var/run/thermos
+
+script
+  [ -r /etc/default/thermos ] && . /etc/default/thermos
+  exec start-stop-daemon --start --exec /usr/sbin/thermos_observer -- \
+    --root=/var/run/thermos \
+    --port=${OBSERVER_PORT:-1338} \
+    --log_to_disk=NONE \
+    --log_to_stderr=google:INFO
+end script

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-scheduler.default
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-scheduler.default b/build-support/packaging/debian/aurora-scheduler.default
new file mode 100644
index 0000000..bc30627
--- /dev/null
+++ b/build-support/packaging/debian/aurora-scheduler.default
@@ -0,0 +1,77 @@
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Defaults for Aurora startup
+
+###
+# Environment variables control the behavior of the Mesos scheduler driver (libmesos).
+GLOG_v=0
+LIBPROCESS_PORT=8083
+#LIBPROCESS_IP=192.168.33.7
+###
+
+###
+# Flags that control the behavior of the JVM.
+#JAVA_OPTS='-Djava.library.path=/usr/local/lib -Dlog4j.configuration="file:///etc/zookeeper/conf/log4j.properties"'
+JAVA_OPTS='-Djava.library.path=/usr/local/lib'
+###
+
+AURORA_HOME="/var/lib/aurora"
+
+# Name of the cluster. Please change this.
+CLUSTER_NAME="example"
+
+# Listening port for the scheduler
+HTTP_PORT=8081
+
+# Replicated log quorum size. Set to (floor(number_of_schedulers / 2) + 1)
+QUORUM_SIZE=1
+
+# List of zookeeper endpoints
+ZK_ENDPOINTS="localhost:2181"
+
+# Zookeeper path or URL to mesos master
+MESOS_MASTER="zk://${ZK_ENDPOINTS}/mesos"
+
+# Zookeeper ServerSet path to register at
+ZK_SERVERSET_PATH="/aurora/scheduler"
+
+# Log path in zookeeper
+ZK_LOGDB_PATH="/aurora/replicated-log"
+
+# Where to store the replicated log on disk
+LOGDB_FILE_PATH="${AURORA_HOME}/scheduler/db"
+
+# Where to store backups on disk
+BACKUP_DIR="${AURORA_HOME}/scheduler/backups"
+
+# Path (on the slave nodes) or URL to thermos executor or wrapper script
+THERMOS_EXECUTOR_PATH="/usr/share/aurora/bin/thermos_executor.pex"
+
+# A comma seperated list of additional resources to copy into the sandbox.
+# Note: if thermos_executor_path is not the thermos_executor.pex file itself,
+# this must include it.
+THERMOS_EXECUTOR_RESOURCES=""
+
+# Extra arguments to be passed to the thermos executor
+THERMOS_EXECUTOR_FLAGS=""
+
+# Container types that are allowed to be used by jobs.
+ALLOWED_CONTAINER_TYPES="MESOS,DOCKER"
+
+# Scheduler log verbosity
+LOG_LEVEL="INFO"
+
+# Any args you want to add to the aurora-scheduler invocation:
+EXTRA_SCHEDULER_ARGS="-enable_beta_updater=true"

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-scheduler.init
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-scheduler.init b/build-support/packaging/debian/aurora-scheduler.init
new file mode 100755
index 0000000..59b200f
--- /dev/null
+++ b/build-support/packaging/debian/aurora-scheduler.init
@@ -0,0 +1,95 @@
+#!/bin/sh
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Start/stop the aurora-scheduler daemon.
+#
+### BEGIN INIT INFO
+# Provides:          aurora-scheduler
+# Required-Start:    $remote_fs $syslog $time
+# Required-Stop:     $remote_fs $syslog $time
+# Should-Start:      $network $named slapd autofs ypbind nscd nslcd
+# Should-Stop:       $network $named slapd autofs ypbind nscd nslcd
+# Default-Start:     2 3 4 5
+# Default-Stop:
+# Short-Description: Apache Aurora scheduler daemon
+# Description:       Aurora is service scheduler that runs on top of Apache
+#                    Mesos, enabling you to run long-running services that take
+#                    advantage of Apache Mesos' scalability, fault-tolerance,
+#                    and resource isolation.
+### END INIT INFO
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+DESC="Aurora scheduler"
+NAME=aurora-scheduler
+DAEMON=/usr/sbin/aurora-scheduler
+PIDFILE=/var/run/aurora-scheduler.pid
+SCRIPTNAME=/etc/init.d/"$NAME"
+
+test -f $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
+if which initctl >/dev/null && initctl version | grep -q upstart; then
+  if test -e /lib/init/upstart-job -a -e /etc/init/${NAME}.conf; then
+    . /lib/init/upstart-job
+    exit $?
+  fi
+fi
+
+[ -r /etc/default/aurora-scheduler ] && . /etc/default/aurora-scheduler
+
+ARGS="-cluster_name=$CLUSTER_NAME
+  -http_port=$HTTP_PORT
+  -native_log_quorum_size=$QUORUM_SIZE
+  -zk_endpoints=$ZK_ENDPOINTS
+  -mesos_master_address=$MESOS_MASTER
+  -serverset_path=$ZK_SERVERSET_PATH
+  -native_log_zk_group_path=$ZK_LOGDB_PATH
+  -native_log_file_path=$LOGDB_FILE_PATH
+  -backup_dir=$BACKUP_DIR
+  -thermos_executor_path=$THERMOS_EXECUTOR_PATH
+  -thermos_executor_resources=$THERMOS_EXECUTOR_RESOURCES
+  -thermos_executor_flags=$THERMOS_EXECUTOR_FLAGS
+  -allowed_container_types=$ALLOWED_CONTAINER_TYPES
+  -vlog=$LOG_LEVEL
+  $EXTRA_SCHEDULER_ARGS"
+
+export JAVA_OPTS GLOG_v LIBPROCESS_PORT LIBPROCESS_IP
+
+case "$1" in
+  start)
+    log_daemon_msg "Starting $DESC" "$NAME"
+    start_daemon -p $PIDFILE $DAEMON $ARGS
+    log_end_msg $?
+    ;;
+  stop)
+    log_daemon_msg "Stopping $DESC" "$NAME"
+    killproc -p $PIDFILE $DAEMON
+    RETVAL=$?
+    [ $RETVAL -eq 0 ] && [ -e "$PIDFILE" ] && rm -f $PIDFILE
+    log_end_msg $RETVAL
+    ;;
+  restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME"
+    $0 stop
+    $0 start
+    ;;
+  status)
+    status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
+    ;;
+  *)
+    log_action_msg "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}"
+    exit 2
+    ;;
+esac
+exit 0

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-scheduler.install
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-scheduler.install b/build-support/packaging/debian/aurora-scheduler.install
new file mode 100644
index 0000000..94ae762
--- /dev/null
+++ b/build-support/packaging/debian/aurora-scheduler.install
@@ -0,0 +1,2 @@
+dist/install/aurora-scheduler/bin /usr/share/aurora
+dist/install/aurora-scheduler/lib /usr/share/aurora

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-scheduler.links
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-scheduler.links b/build-support/packaging/debian/aurora-scheduler.links
new file mode 100644
index 0000000..bed1c65
--- /dev/null
+++ b/build-support/packaging/debian/aurora-scheduler.links
@@ -0,0 +1 @@
+/usr/share/aurora/bin/aurora-scheduler /usr/sbin/aurora-scheduler

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-scheduler.postinst
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-scheduler.postinst b/build-support/packaging/debian/aurora-scheduler.postinst
new file mode 100644
index 0000000..0d019b6
--- /dev/null
+++ b/build-support/packaging/debian/aurora-scheduler.postinst
@@ -0,0 +1,54 @@
+#!/bin/sh
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# postinst script for #PACKAGE#
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+      adduser --quiet --group --system --home /var/lib/aurora aurora
+      chown -R aurora:aurora /var/lib/aurora
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-scheduler.upstart
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-scheduler.upstart b/build-support/packaging/debian/aurora-scheduler.upstart
new file mode 100644
index 0000000..1ceb704
--- /dev/null
+++ b/build-support/packaging/debian/aurora-scheduler.upstart
@@ -0,0 +1,39 @@
+# vi:ft=upstart
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+description "Aurora scheduler"
+start on stopped rc RUNLEVEL=[2345]
+respawn
+post-stop exec sleep 5
+
+script
+  . /etc/default/aurora-scheduler
+  export JAVA_OPTS GLOG_v LIBPROCESS_PORT LIBPROCESS_IP
+  exec start-stop-daemon --start -c aurora \
+    --exec /usr/share/aurora/bin/aurora-scheduler -- \
+      -cluster_name="$CLUSTER_NAME" \
+      -http_port="$HTTP_PORT" \
+      -native_log_quorum_size="$QUORUM_SIZE" \
+      -zk_endpoints="$ZK_ENDPOINTS" \
+      -mesos_master_address="$MESOS_MASTER" \
+      -serverset_path="$ZK_SERVERSET_PATH" \
+      -native_log_zk_group_path="$ZK_LOGDB_PATH" \
+      -native_log_file_path="$LOGDB_FILE_PATH" \
+      -backup_dir="$BACKUP_DIR" \
+      -thermos_executor_path="$THERMOS_EXECUTOR_PATH" \
+      -thermos_executor_resources="$THERMOS_EXECUTOR_RESOURCES" \
+      -thermos_executor_flags="$THERMOS_EXECUTOR_FLAGS" \
+      -allowed_container_types="$ALLOWED_CONTAINER_TYPES" \
+      -vlog="$LOG_LEVEL" \
+      $EXTRA_SCHEDULER_ARGS
+end script

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-tools.install
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-tools.install b/build-support/packaging/debian/aurora-tools.install
new file mode 100644
index 0000000..ac8d032
--- /dev/null
+++ b/build-support/packaging/debian/aurora-tools.install
@@ -0,0 +1,2 @@
+dist/kaurora_admin.pex /usr/share/aurora/bin
+dist/kaurora.pex /usr/share/aurora/bin

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/aurora-tools.links
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/aurora-tools.links b/build-support/packaging/debian/aurora-tools.links
new file mode 100644
index 0000000..2d69bc5
--- /dev/null
+++ b/build-support/packaging/debian/aurora-tools.links
@@ -0,0 +1,2 @@
+/usr/share/aurora/bin/kaurora_admin.pex /usr/bin/aurora-admin
+/usr/share/aurora/bin/kaurora.pex /usr/bin/aurora

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/changelog
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/changelog b/build-support/packaging/debian/changelog
new file mode 100644
index 0000000..8446464
--- /dev/null
+++ b/build-support/packaging/debian/changelog
@@ -0,0 +1,74 @@
+apache-aurora (0.9.0-SNAPSHOT) UNRELEASED; urgency=medium
+
+  * unreleased
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Mon, 16 Feb 2015 13:05:46 -0800
+
+apache-aurora (0.7.0-rc3-2~trusty1) trusty; urgency=medium
+
+  * Expose more parameters in /etc/default/aurora-scheduler for container
+    types and Thermos executor flags/resources.
+  * Eliminate the thermos_executor.sh wrapper script in favor of using
+    -thermos_executor_flags on the scheduler.
+  * Don't package /var/run/thermos; create it at runtime.
+  * Mildly cleanup embed-runner-in-executor.py
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Wed, 04 Feb 2015 21:12:02 -0800
+
+apache-aurora (0.7.0-rc3-1~trusty1) trusty; urgency=medium
+
+  * Added sysvinit script for thermos_observer to improve compatibility with
+    Debian.
+  * Listening port for thermos_observer is now configurable in
+    /etc/default/thermos.
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Mon, 02 Feb 2015 12:47:33 -0800
+
+apache-aurora (0.7.0-rc3-0~trusty1) trusty; urgency=medium
+
+  * New upstream release.
+  * Fixed thermos_executor.sh wrapper to correctly source /etc/default/thermos
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Mon, 02 Feb 2015 11:14:32 -0800
+
+apache-aurora (0.7.0-rc2-0~trusty3) trusty; urgency=medium
+
+  * aurora-tools: fixed /usr/bin/aurora symlink, dropped /usr/bin/aurora2
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Fri, 30 Jan 2015 15:35:23 -0800
+
+apache-aurora (0.7.0-rc2-0~trusty2) trusty; urgency=medium
+
+  * [3fd6b5c] Update vagrant script to match package updates
+  * [3ecd84a] More vagrant/testing improvements
+  * [977d6b4] scheduler: make sure the data dir is owned by aurora
+  * [c3ebeab] aurora-executor: add docker to Recommends
+  * [86560ec] vagrant: make sure aurora owns its replicatedlog
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Wed, 28 Jan 2015 18:36:37 -0800
+
+apache-aurora (0.7.0-rc2-0~trusty1) trusty; urgency=medium
+
+  * [7abb98e] Ditch python-support; doesn't do much for pex scripts
+  * [8d6f377] Reduce pants.ini overrides to avoid weird problems
+  * [304686f] Start a Vagrantfile
+  * [4c1e90f] Expanded vagrantfile, now with provisioning.
+  * [05875d1] Add examples to docs and a default clusters.json
+  * [9f2c53d] A few more tweaks
+  * [ceb09d8] Forgot to install thermos_executor.sh
+  * [bd0e4d7] thermos-related refinement
+  * [733a82d] Update vagrant provision script to keep up
+  * [0343523] Incorporate review feedback
+  * [c4c3400] Further review feedback updates
+  * [a7368cf] Update to Aurora 0.7.0-rc2
+  * [fdc115f] Use upstream/%(version) interim tags
+  * [57f9a64] Patch to allow gradle 2.2.1
+  * [3ecfa8d] Update pants targets for 0.7.0-rc2
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Wed, 28 Jan 2015 05:23:27 -0800
+
+apache-aurora (0.6.0-incubating-0~trusty1) trusty; urgency=medium
+
+  * Initial release.
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Fri, 28 Nov 2014 14:25:08 -0800

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/clusters.json
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/clusters.json b/build-support/packaging/debian/clusters.json
new file mode 100644
index 0000000..29c2e0b
--- /dev/null
+++ b/build-support/packaging/debian/clusters.json
@@ -0,0 +1,10 @@
+[
+  {
+    "auth_mechanism": "UNAUTHENTICATED",
+    "name": "example",
+    "scheduler_zk_path": "/aurora/scheduler",
+    "slave_root": "/var/lib/mesos",
+    "slave_run_directory": "latest",
+    "zk": "127.0.1.1"
+  }
+]

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/compat
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/compat b/build-support/packaging/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/build-support/packaging/debian/compat
@@ -0,0 +1 @@
+9

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/control
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/control b/build-support/packaging/debian/control
new file mode 100644
index 0000000..ff62ea1
--- /dev/null
+++ b/build-support/packaging/debian/control
@@ -0,0 +1,78 @@
+Source: apache-aurora
+Priority: optional
+Maintainer: The Apache Aurora authors <de...@aurora.apache.org>
+Build-Depends: debhelper (>= 9),
+ java8-sdk | openjdk-8-jdk,
+ gradle (>= 2.5) | gradle-2.5,
+ python-all-dev,
+ libkrb5-dev,
+ curl,
+ git,
+ wget,
+ thrift-compiler (>= 0.9.1)
+# thrift-compiler version needs to match the ext.thriftRev value from build.gradle
+Section: net
+Standards-Version: 3.9.5
+Homepage: https://aurora.apache.org
+
+Package: aurora-scheduler
+Architecture: any
+Section: net
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ adduser,
+ openjdk-8-jre-headless | java-runtime-headless (>= 8),
+ mesos (>= 0.21.1)
+Recommends: aurora-tools
+Suggests: aurora-doc
+Description: Apache Aurora scheduler
+ Aurora is a service scheduler that runs on top of Apache Mesos, enabling you
+ to run long-running services that take advantage of Apache Mesos' scalability,
+ fault-tolerance, and resource isolation.
+ .
+ This package contains the Aurora Scheduler daemon.
+
+Package: aurora-tools
+Architecture: any
+Section: net
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ python2.7
+Suggests: aurora-doc
+Recommends: libkrb5-3 | libkrb5-26-heimdal
+Description: Apache Aurora commandline tools
+ Aurora is a service scheduler that runs on top of Apache Mesos, enabling you
+ to run long-running services that take advantage of Apache Mesos' scalability,
+ fault-tolerance, and resource isolation.
+ .
+ This package includes the aurora and aurora-admin commandline utilities for
+ interacting with an Aurora scheduler.
+
+Package: aurora-executor
+Architecture: any
+Section: net
+Replaces: aurora-mesos-slave
+Breaks: aurora-mesos-slave
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ python2.7
+Recommends:
+ aurora-tools,
+ lxc-docker (>= 1.0) | docker.io (>= 1.0)
+Suggests: aurora-doc
+Description: Apache Aurora executor deployment
+ Aurora is a service scheduler that runs on top of Apache Mesos, enabling you
+ to run long-running services that take advantage of Apache Mesos' scalability,
+ fault-tolerance, and resource isolation.
+ .
+ This package contains the components necessary to run Aurora jobs on a Mesos
+ slave node: the garbage collection executor, Thermos executor, and Thermos
+ observer.
+
+Package: aurora-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Description: Documentation for Apache Aurora
+ Aurora is a service scheduler that runs on top of Apache Mesos, enabling you
+ to run long-running services that take advantage of Apache Mesos' scalability,
+ fault-tolerance, and resource isolation.
+ .
+ This package contains documentation.

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/copyright
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/copyright b/build-support/packaging/debian/copyright
new file mode 100644
index 0000000..8c0d0f1
--- /dev/null
+++ b/build-support/packaging/debian/copyright
@@ -0,0 +1,8 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: aurora
+Source: http://incubator.apache.org/aurora/
+
+Files: *
+Copyright: 2014 The Apache Software Foundation
+License: Apache-2.0
+ /usr/share/common-licenses/Apache-2.0

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/pants.ini
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/pants.ini b/build-support/packaging/debian/pants.ini
new file mode 100644
index 0000000..ed1a5ce
--- /dev/null
+++ b/build-support/packaging/debian/pants.ini
@@ -0,0 +1,9 @@
+[DEFAULT]
+pants_cachedir: %(homedir)s/.pants.d
+
+[python-setup]
+download_cache: %(pants_cachedir)s/python/downloads
+install_cache: %(pants_cachedir)s/python/eggs
+
+[python-repos]
+repos: ['third_party/', 'https://svn.apache.org/repos/asf/incubator/aurora/3rdparty/ubuntu/trusty64/python/']

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/rules
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/rules b/build-support/packaging/debian/rules
new file mode 100755
index 0000000..db0f14e
--- /dev/null
+++ b/build-support/packaging/debian/rules
@@ -0,0 +1,44 @@
+#!/usr/bin/make -f
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Uncomment for debugging.
+#DH_VERBOSE = 1
+
+%:
+	dh $@ --exclude=aurora-scheduler.bat
+
+gradle = $(shell which gradle)
+pants = $(CURDIR)/pants
+PANTS_CONFIG_OVERRIDE = $(CURDIR)/debian/pants.ini
+export PANTS_CONFIG_OVERRIDE
+
+override_dh_auto_build: __gradle_build __pants_build
+
+__gradle_build:
+	$(gradle) installApp
+
+__pants_build:
+	mkdir -p third_party
+	$(pants) binary src/main/python/apache/aurora/admin:kaurora_admin
+	$(pants) binary src/main/python/apache/aurora/client/cli:kaurora
+	$(pants) binary src/main/python/apache/aurora/executor/bin:thermos_executor
+	$(pants) binary src/main/python/apache/thermos/cli/bin:thermos
+	$(pants) binary src/main/python/apache/thermos/bin:thermos_runner
+	$(pants) binary src/main/python/apache/thermos/observer/bin:thermos_observer
+	build-support/embed_runner_in_executor.py
+
+override_dh_installinit:
+	dh_installinit --name=thermos
+	dh_installinit

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/debian/source/format
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/source/format b/build-support/packaging/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/build-support/packaging/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/build-support/packaging/rpm/aurora.spec
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/aurora.spec b/build-support/packaging/rpm/aurora.spec
index d5d5c9f..03b9ee3 100644
--- a/build-support/packaging/rpm/aurora.spec
+++ b/build-support/packaging/rpm/aurora.spec
@@ -30,7 +30,7 @@
 %endif
 
 %if %{?!GRADLE_VERSION:1}0
-%global GRADLE_VERSION 2.4
+%global GRADLE_VERSION 2.5
 %endif
 
 %if %{?!JAVA_VERSION:!}0

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-doc.docs
----------------------------------------------------------------------
diff --git a/debian/aurora-doc.docs b/debian/aurora-doc.docs
deleted file mode 100644
index a188e06..0000000
--- a/debian/aurora-doc.docs
+++ /dev/null
@@ -1 +0,0 @@
-docs/*

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-doc.examples
----------------------------------------------------------------------
diff --git a/debian/aurora-doc.examples b/debian/aurora-doc.examples
deleted file mode 100644
index e39721e..0000000
--- a/debian/aurora-doc.examples
+++ /dev/null
@@ -1 +0,0 @@
-examples/*

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-executor.dirs
----------------------------------------------------------------------
diff --git a/debian/aurora-executor.dirs b/debian/aurora-executor.dirs
deleted file mode 100644
index f62944b..0000000
--- a/debian/aurora-executor.dirs
+++ /dev/null
@@ -1,2 +0,0 @@
-/var/lib/thermos
-/var/lib/thermos/sandbox

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-executor.install
----------------------------------------------------------------------
diff --git a/debian/aurora-executor.install b/debian/aurora-executor.install
deleted file mode 100644
index 5d0d1f7..0000000
--- a/debian/aurora-executor.install
+++ /dev/null
@@ -1,5 +0,0 @@
-dist/thermos_executor.pex /usr/share/aurora/bin
-dist/thermos_observer.pex /usr/share/aurora/bin
-dist/thermos.pex /usr/share/aurora/bin
-
-debian/clusters.json /etc/aurora

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-executor.links
----------------------------------------------------------------------
diff --git a/debian/aurora-executor.links b/debian/aurora-executor.links
deleted file mode 100644
index 973c7e0..0000000
--- a/debian/aurora-executor.links
+++ /dev/null
@@ -1 +0,0 @@
-/usr/share/aurora/bin/thermos_observer.pex /usr/sbin/thermos_observer

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-executor.thermos.default
----------------------------------------------------------------------
diff --git a/debian/aurora-executor.thermos.default b/debian/aurora-executor.thermos.default
deleted file mode 100644
index 82ab0c8..0000000
--- a/debian/aurora-executor.thermos.default
+++ /dev/null
@@ -1,18 +0,0 @@
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-# Defaults for thermos observer
-
-# Listen port for thermos_observer
-OBSERVER_PORT=1338

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-executor.thermos.init
----------------------------------------------------------------------
diff --git a/debian/aurora-executor.thermos.init b/debian/aurora-executor.thermos.init
deleted file mode 100755
index 24a59d2..0000000
--- a/debian/aurora-executor.thermos.init
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/sh
-# Start/stop the thermos-observer daemon.
-#
-### BEGIN INIT INFO
-# Provides:          thermos
-# Required-Start:    $remote_fs $syslog $time
-# Required-Stop:     $remote_fs $syslog $time
-# Should-Start:      $network $named slapd autofs ypbind nscd nslcd
-# Should-Stop:       $network $named slapd autofs ypbind nscd nslcd
-# Default-Start:     2 3 4 5
-# Default-Stop:
-# Short-Description: Thermos observer daemon
-# Description:       Thermos observer is a component of Apache Aurora. It
-#                    provides administrative visibility into the status of
-#                    running tasks on mesos-slave nodes.
-### END INIT INFO
-
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-DESC="Aurora Thermos observer"
-NAME=thermos
-DAEMON=/usr/sbin/thermos_observer
-PIDFILE=/var/run/thermos_observer.pid
-SCRIPTNAME=/etc/init.d/"$NAME"
-
-test -f $DAEMON || exit 0
-
-. /lib/lsb/init-functions
-
-if which initctl >/dev/null && initctl version | grep -q upstart; then
-  if test -e /lib/init/upstart-job -a -e /etc/init/${NAME}.conf; then
-    . /lib/init/upstart-job
-    exit $?
-  fi
-fi
-
-[ -r /etc/default/thermos ] && . /etc/default/thermos
-
-ARGS="--root=/var/run/thermos
-      --port=${OBSERVER_PORT:-1338}
-      --log_to_disk=NONE
-      --log_to_stderr=google:INFO"
-
-case "$1" in
-  start)
-    log_daemon_msg "Starting $DESC" "$NAME"
-    mkdir -p /var/run/thermos
-    start_daemon -p $PIDFILE $DAEMON $ARGS
-    log_end_msg $?
-    ;;
-  stop)
-    log_daemon_msg "Stopping $DESC" "$NAME"
-    killproc -p $PIDFILE $DAEMON
-    RETVAL=$?
-    [ $RETVAL -eq 0 ] && [ -e "$PIDFILE" ] && rm -f $PIDFILE
-    log_end_msg $RETVAL
-    ;;
-  restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME"
-    $0 stop
-    $0 start
-    ;;
-  status)
-    status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
-    ;;
-  *)
-    log_action_msg "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}"
-    exit 2
-    ;;
-esac
-exit 0

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-executor.thermos.upstart
----------------------------------------------------------------------
diff --git a/debian/aurora-executor.thermos.upstart b/debian/aurora-executor.thermos.upstart
deleted file mode 100644
index ffa4f98..0000000
--- a/debian/aurora-executor.thermos.upstart
+++ /dev/null
@@ -1,28 +0,0 @@
-# vi:ft=upstart
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-description "Aurora Thermos observer"
-start on stopped rc RUNLEVEL=[2345]
-respawn
-post-stop exec sleep 5
-
-pre-start exec mkdir -p /var/run/thermos
-
-script
-  [ -r /etc/default/thermos ] && . /etc/default/thermos
-  exec start-stop-daemon --start --exec /usr/sbin/thermos_observer -- \
-    --root=/var/run/thermos \
-    --port=${OBSERVER_PORT:-1338} \
-    --log_to_disk=NONE \
-    --log_to_stderr=google:INFO
-end script

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-scheduler.default
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.default b/debian/aurora-scheduler.default
deleted file mode 100644
index bc30627..0000000
--- a/debian/aurora-scheduler.default
+++ /dev/null
@@ -1,77 +0,0 @@
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-# Defaults for Aurora startup
-
-###
-# Environment variables control the behavior of the Mesos scheduler driver (libmesos).
-GLOG_v=0
-LIBPROCESS_PORT=8083
-#LIBPROCESS_IP=192.168.33.7
-###
-
-###
-# Flags that control the behavior of the JVM.
-#JAVA_OPTS='-Djava.library.path=/usr/local/lib -Dlog4j.configuration="file:///etc/zookeeper/conf/log4j.properties"'
-JAVA_OPTS='-Djava.library.path=/usr/local/lib'
-###
-
-AURORA_HOME="/var/lib/aurora"
-
-# Name of the cluster. Please change this.
-CLUSTER_NAME="example"
-
-# Listening port for the scheduler
-HTTP_PORT=8081
-
-# Replicated log quorum size. Set to (floor(number_of_schedulers / 2) + 1)
-QUORUM_SIZE=1
-
-# List of zookeeper endpoints
-ZK_ENDPOINTS="localhost:2181"
-
-# Zookeeper path or URL to mesos master
-MESOS_MASTER="zk://${ZK_ENDPOINTS}/mesos"
-
-# Zookeeper ServerSet path to register at
-ZK_SERVERSET_PATH="/aurora/scheduler"
-
-# Log path in zookeeper
-ZK_LOGDB_PATH="/aurora/replicated-log"
-
-# Where to store the replicated log on disk
-LOGDB_FILE_PATH="${AURORA_HOME}/scheduler/db"
-
-# Where to store backups on disk
-BACKUP_DIR="${AURORA_HOME}/scheduler/backups"
-
-# Path (on the slave nodes) or URL to thermos executor or wrapper script
-THERMOS_EXECUTOR_PATH="/usr/share/aurora/bin/thermos_executor.pex"
-
-# A comma seperated list of additional resources to copy into the sandbox.
-# Note: if thermos_executor_path is not the thermos_executor.pex file itself,
-# this must include it.
-THERMOS_EXECUTOR_RESOURCES=""
-
-# Extra arguments to be passed to the thermos executor
-THERMOS_EXECUTOR_FLAGS=""
-
-# Container types that are allowed to be used by jobs.
-ALLOWED_CONTAINER_TYPES="MESOS,DOCKER"
-
-# Scheduler log verbosity
-LOG_LEVEL="INFO"
-
-# Any args you want to add to the aurora-scheduler invocation:
-EXTRA_SCHEDULER_ARGS="-enable_beta_updater=true"

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-scheduler.init
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.init b/debian/aurora-scheduler.init
deleted file mode 100755
index 59b200f..0000000
--- a/debian/aurora-scheduler.init
+++ /dev/null
@@ -1,95 +0,0 @@
-#!/bin/sh
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# Start/stop the aurora-scheduler daemon.
-#
-### BEGIN INIT INFO
-# Provides:          aurora-scheduler
-# Required-Start:    $remote_fs $syslog $time
-# Required-Stop:     $remote_fs $syslog $time
-# Should-Start:      $network $named slapd autofs ypbind nscd nslcd
-# Should-Stop:       $network $named slapd autofs ypbind nscd nslcd
-# Default-Start:     2 3 4 5
-# Default-Stop:
-# Short-Description: Apache Aurora scheduler daemon
-# Description:       Aurora is service scheduler that runs on top of Apache
-#                    Mesos, enabling you to run long-running services that take
-#                    advantage of Apache Mesos' scalability, fault-tolerance,
-#                    and resource isolation.
-### END INIT INFO
-
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-DESC="Aurora scheduler"
-NAME=aurora-scheduler
-DAEMON=/usr/sbin/aurora-scheduler
-PIDFILE=/var/run/aurora-scheduler.pid
-SCRIPTNAME=/etc/init.d/"$NAME"
-
-test -f $DAEMON || exit 0
-
-. /lib/lsb/init-functions
-
-if which initctl >/dev/null && initctl version | grep -q upstart; then
-  if test -e /lib/init/upstart-job -a -e /etc/init/${NAME}.conf; then
-    . /lib/init/upstart-job
-    exit $?
-  fi
-fi
-
-[ -r /etc/default/aurora-scheduler ] && . /etc/default/aurora-scheduler
-
-ARGS="-cluster_name=$CLUSTER_NAME
-  -http_port=$HTTP_PORT
-  -native_log_quorum_size=$QUORUM_SIZE
-  -zk_endpoints=$ZK_ENDPOINTS
-  -mesos_master_address=$MESOS_MASTER
-  -serverset_path=$ZK_SERVERSET_PATH
-  -native_log_zk_group_path=$ZK_LOGDB_PATH
-  -native_log_file_path=$LOGDB_FILE_PATH
-  -backup_dir=$BACKUP_DIR
-  -thermos_executor_path=$THERMOS_EXECUTOR_PATH
-  -thermos_executor_resources=$THERMOS_EXECUTOR_RESOURCES
-  -thermos_executor_flags=$THERMOS_EXECUTOR_FLAGS
-  -allowed_container_types=$ALLOWED_CONTAINER_TYPES
-  -vlog=$LOG_LEVEL
-  $EXTRA_SCHEDULER_ARGS"
-
-export JAVA_OPTS GLOG_v LIBPROCESS_PORT LIBPROCESS_IP
-
-case "$1" in
-  start)
-    log_daemon_msg "Starting $DESC" "$NAME"
-    start_daemon -p $PIDFILE $DAEMON $ARGS
-    log_end_msg $?
-    ;;
-  stop)
-    log_daemon_msg "Stopping $DESC" "$NAME"
-    killproc -p $PIDFILE $DAEMON
-    RETVAL=$?
-    [ $RETVAL -eq 0 ] && [ -e "$PIDFILE" ] && rm -f $PIDFILE
-    log_end_msg $RETVAL
-    ;;
-  restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME"
-    $0 stop
-    $0 start
-    ;;
-  status)
-    status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
-    ;;
-  *)
-    log_action_msg "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}"
-    exit 2
-    ;;
-esac
-exit 0

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-scheduler.install
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.install b/debian/aurora-scheduler.install
deleted file mode 100644
index 94ae762..0000000
--- a/debian/aurora-scheduler.install
+++ /dev/null
@@ -1,2 +0,0 @@
-dist/install/aurora-scheduler/bin /usr/share/aurora
-dist/install/aurora-scheduler/lib /usr/share/aurora

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-scheduler.links
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.links b/debian/aurora-scheduler.links
deleted file mode 100644
index bed1c65..0000000
--- a/debian/aurora-scheduler.links
+++ /dev/null
@@ -1 +0,0 @@
-/usr/share/aurora/bin/aurora-scheduler /usr/sbin/aurora-scheduler

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-scheduler.postinst
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.postinst b/debian/aurora-scheduler.postinst
deleted file mode 100644
index 0d019b6..0000000
--- a/debian/aurora-scheduler.postinst
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-# postinst script for #PACKAGE#
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <postinst> `abort-remove'
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-case "$1" in
-    configure)
-      adduser --quiet --group --system --home /var/lib/aurora aurora
-      chown -R aurora:aurora /var/lib/aurora
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-scheduler.upstart
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.upstart b/debian/aurora-scheduler.upstart
deleted file mode 100644
index 1ceb704..0000000
--- a/debian/aurora-scheduler.upstart
+++ /dev/null
@@ -1,39 +0,0 @@
-# vi:ft=upstart
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-description "Aurora scheduler"
-start on stopped rc RUNLEVEL=[2345]
-respawn
-post-stop exec sleep 5
-
-script
-  . /etc/default/aurora-scheduler
-  export JAVA_OPTS GLOG_v LIBPROCESS_PORT LIBPROCESS_IP
-  exec start-stop-daemon --start -c aurora \
-    --exec /usr/share/aurora/bin/aurora-scheduler -- \
-      -cluster_name="$CLUSTER_NAME" \
-      -http_port="$HTTP_PORT" \
-      -native_log_quorum_size="$QUORUM_SIZE" \
-      -zk_endpoints="$ZK_ENDPOINTS" \
-      -mesos_master_address="$MESOS_MASTER" \
-      -serverset_path="$ZK_SERVERSET_PATH" \
-      -native_log_zk_group_path="$ZK_LOGDB_PATH" \
-      -native_log_file_path="$LOGDB_FILE_PATH" \
-      -backup_dir="$BACKUP_DIR" \
-      -thermos_executor_path="$THERMOS_EXECUTOR_PATH" \
-      -thermos_executor_resources="$THERMOS_EXECUTOR_RESOURCES" \
-      -thermos_executor_flags="$THERMOS_EXECUTOR_FLAGS" \
-      -allowed_container_types="$ALLOWED_CONTAINER_TYPES" \
-      -vlog="$LOG_LEVEL" \
-      $EXTRA_SCHEDULER_ARGS
-end script

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-tools.install
----------------------------------------------------------------------
diff --git a/debian/aurora-tools.install b/debian/aurora-tools.install
deleted file mode 100644
index ac8d032..0000000
--- a/debian/aurora-tools.install
+++ /dev/null
@@ -1,2 +0,0 @@
-dist/kaurora_admin.pex /usr/share/aurora/bin
-dist/kaurora.pex /usr/share/aurora/bin

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/aurora-tools.links
----------------------------------------------------------------------
diff --git a/debian/aurora-tools.links b/debian/aurora-tools.links
deleted file mode 100644
index 2d69bc5..0000000
--- a/debian/aurora-tools.links
+++ /dev/null
@@ -1,2 +0,0 @@
-/usr/share/aurora/bin/kaurora_admin.pex /usr/bin/aurora-admin
-/usr/share/aurora/bin/kaurora.pex /usr/bin/aurora

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/changelog
----------------------------------------------------------------------
diff --git a/debian/changelog b/debian/changelog
deleted file mode 100644
index 8446464..0000000
--- a/debian/changelog
+++ /dev/null
@@ -1,74 +0,0 @@
-apache-aurora (0.9.0-SNAPSHOT) UNRELEASED; urgency=medium
-
-  * unreleased
-
- -- Benjamin Staffin <be...@folsomlabs.com>  Mon, 16 Feb 2015 13:05:46 -0800
-
-apache-aurora (0.7.0-rc3-2~trusty1) trusty; urgency=medium
-
-  * Expose more parameters in /etc/default/aurora-scheduler for container
-    types and Thermos executor flags/resources.
-  * Eliminate the thermos_executor.sh wrapper script in favor of using
-    -thermos_executor_flags on the scheduler.
-  * Don't package /var/run/thermos; create it at runtime.
-  * Mildly cleanup embed-runner-in-executor.py
-
- -- Benjamin Staffin <be...@folsomlabs.com>  Wed, 04 Feb 2015 21:12:02 -0800
-
-apache-aurora (0.7.0-rc3-1~trusty1) trusty; urgency=medium
-
-  * Added sysvinit script for thermos_observer to improve compatibility with
-    Debian.
-  * Listening port for thermos_observer is now configurable in
-    /etc/default/thermos.
-
- -- Benjamin Staffin <be...@folsomlabs.com>  Mon, 02 Feb 2015 12:47:33 -0800
-
-apache-aurora (0.7.0-rc3-0~trusty1) trusty; urgency=medium
-
-  * New upstream release.
-  * Fixed thermos_executor.sh wrapper to correctly source /etc/default/thermos
-
- -- Benjamin Staffin <be...@folsomlabs.com>  Mon, 02 Feb 2015 11:14:32 -0800
-
-apache-aurora (0.7.0-rc2-0~trusty3) trusty; urgency=medium
-
-  * aurora-tools: fixed /usr/bin/aurora symlink, dropped /usr/bin/aurora2
-
- -- Benjamin Staffin <be...@folsomlabs.com>  Fri, 30 Jan 2015 15:35:23 -0800
-
-apache-aurora (0.7.0-rc2-0~trusty2) trusty; urgency=medium
-
-  * [3fd6b5c] Update vagrant script to match package updates
-  * [3ecd84a] More vagrant/testing improvements
-  * [977d6b4] scheduler: make sure the data dir is owned by aurora
-  * [c3ebeab] aurora-executor: add docker to Recommends
-  * [86560ec] vagrant: make sure aurora owns its replicatedlog
-
- -- Benjamin Staffin <be...@folsomlabs.com>  Wed, 28 Jan 2015 18:36:37 -0800
-
-apache-aurora (0.7.0-rc2-0~trusty1) trusty; urgency=medium
-
-  * [7abb98e] Ditch python-support; doesn't do much for pex scripts
-  * [8d6f377] Reduce pants.ini overrides to avoid weird problems
-  * [304686f] Start a Vagrantfile
-  * [4c1e90f] Expanded vagrantfile, now with provisioning.
-  * [05875d1] Add examples to docs and a default clusters.json
-  * [9f2c53d] A few more tweaks
-  * [ceb09d8] Forgot to install thermos_executor.sh
-  * [bd0e4d7] thermos-related refinement
-  * [733a82d] Update vagrant provision script to keep up
-  * [0343523] Incorporate review feedback
-  * [c4c3400] Further review feedback updates
-  * [a7368cf] Update to Aurora 0.7.0-rc2
-  * [fdc115f] Use upstream/%(version) interim tags
-  * [57f9a64] Patch to allow gradle 2.2.1
-  * [3ecfa8d] Update pants targets for 0.7.0-rc2
-
- -- Benjamin Staffin <be...@folsomlabs.com>  Wed, 28 Jan 2015 05:23:27 -0800
-
-apache-aurora (0.6.0-incubating-0~trusty1) trusty; urgency=medium
-
-  * Initial release.
-
- -- Benjamin Staffin <be...@folsomlabs.com>  Fri, 28 Nov 2014 14:25:08 -0800

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/clusters.json
----------------------------------------------------------------------
diff --git a/debian/clusters.json b/debian/clusters.json
deleted file mode 100644
index 29c2e0b..0000000
--- a/debian/clusters.json
+++ /dev/null
@@ -1,10 +0,0 @@
-[
-  {
-    "auth_mechanism": "UNAUTHENTICATED",
-    "name": "example",
-    "scheduler_zk_path": "/aurora/scheduler",
-    "slave_root": "/var/lib/mesos",
-    "slave_run_directory": "latest",
-    "zk": "127.0.1.1"
-  }
-]

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/compat
----------------------------------------------------------------------
diff --git a/debian/compat b/debian/compat
deleted file mode 100644
index ec63514..0000000
--- a/debian/compat
+++ /dev/null
@@ -1 +0,0 @@
-9

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/control
----------------------------------------------------------------------
diff --git a/debian/control b/debian/control
deleted file mode 100644
index 260ac8f..0000000
--- a/debian/control
+++ /dev/null
@@ -1,78 +0,0 @@
-Source: apache-aurora
-Priority: optional
-Maintainer: The Apache Aurora authors <de...@aurora.apache.org>
-Build-Depends: debhelper (>= 9),
- java8-sdk | openjdk-8-jdk,
- gradle (>= 2.4) | gradle-2.4,
- python-all-dev,
- libkrb5-dev,
- curl,
- git,
- wget,
- thrift-compiler (>= 0.9.1)
-# thrift-compiler version needs to match the ext.thriftRev value from build.gradle
-Section: net
-Standards-Version: 3.9.5
-Homepage: https://aurora.apache.org
-
-Package: aurora-scheduler
-Architecture: any
-Section: net
-Depends: ${shlibs:Depends}, ${misc:Depends},
- adduser,
- openjdk-8-jre-headless | java-runtime-headless (>= 8),
- mesos (>= 0.21.1)
-Recommends: aurora-tools
-Suggests: aurora-doc
-Description: Apache Aurora scheduler
- Aurora is a service scheduler that runs on top of Apache Mesos, enabling you
- to run long-running services that take advantage of Apache Mesos' scalability,
- fault-tolerance, and resource isolation.
- .
- This package contains the Aurora Scheduler daemon.
-
-Package: aurora-tools
-Architecture: any
-Section: net
-Depends: ${shlibs:Depends}, ${misc:Depends},
- python2.7
-Suggests: aurora-doc
-Recommends: libkrb5-3 | libkrb5-26-heimdal
-Description: Apache Aurora commandline tools
- Aurora is a service scheduler that runs on top of Apache Mesos, enabling you
- to run long-running services that take advantage of Apache Mesos' scalability,
- fault-tolerance, and resource isolation.
- .
- This package includes the aurora and aurora-admin commandline utilities for
- interacting with an Aurora scheduler.
-
-Package: aurora-executor
-Architecture: any
-Section: net
-Replaces: aurora-mesos-slave
-Breaks: aurora-mesos-slave
-Depends: ${shlibs:Depends}, ${misc:Depends},
- python2.7
-Recommends:
- aurora-tools,
- lxc-docker (>= 1.0) | docker.io (>= 1.0)
-Suggests: aurora-doc
-Description: Apache Aurora executor deployment
- Aurora is a service scheduler that runs on top of Apache Mesos, enabling you
- to run long-running services that take advantage of Apache Mesos' scalability,
- fault-tolerance, and resource isolation.
- .
- This package contains the components necessary to run Aurora jobs on a Mesos
- slave node: the garbage collection executor, Thermos executor, and Thermos
- observer.
-
-Package: aurora-doc
-Architecture: all
-Section: doc
-Depends: ${misc:Depends}
-Description: Documentation for Apache Aurora
- Aurora is a service scheduler that runs on top of Apache Mesos, enabling you
- to run long-running services that take advantage of Apache Mesos' scalability,
- fault-tolerance, and resource isolation.
- .
- This package contains documentation.

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/copyright
----------------------------------------------------------------------
diff --git a/debian/copyright b/debian/copyright
deleted file mode 100644
index 8c0d0f1..0000000
--- a/debian/copyright
+++ /dev/null
@@ -1,8 +0,0 @@
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: aurora
-Source: http://incubator.apache.org/aurora/
-
-Files: *
-Copyright: 2014 The Apache Software Foundation
-License: Apache-2.0
- /usr/share/common-licenses/Apache-2.0

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/pants.ini
----------------------------------------------------------------------
diff --git a/debian/pants.ini b/debian/pants.ini
deleted file mode 100644
index ed1a5ce..0000000
--- a/debian/pants.ini
+++ /dev/null
@@ -1,9 +0,0 @@
-[DEFAULT]
-pants_cachedir: %(homedir)s/.pants.d
-
-[python-setup]
-download_cache: %(pants_cachedir)s/python/downloads
-install_cache: %(pants_cachedir)s/python/eggs
-
-[python-repos]
-repos: ['third_party/', 'https://svn.apache.org/repos/asf/incubator/aurora/3rdparty/ubuntu/trusty64/python/']

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/rules
----------------------------------------------------------------------
diff --git a/debian/rules b/debian/rules
deleted file mode 100755
index db0f14e..0000000
--- a/debian/rules
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/make -f
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-# Uncomment for debugging.
-#DH_VERBOSE = 1
-
-%:
-	dh $@ --exclude=aurora-scheduler.bat
-
-gradle = $(shell which gradle)
-pants = $(CURDIR)/pants
-PANTS_CONFIG_OVERRIDE = $(CURDIR)/debian/pants.ini
-export PANTS_CONFIG_OVERRIDE
-
-override_dh_auto_build: __gradle_build __pants_build
-
-__gradle_build:
-	$(gradle) installApp
-
-__pants_build:
-	mkdir -p third_party
-	$(pants) binary src/main/python/apache/aurora/admin:kaurora_admin
-	$(pants) binary src/main/python/apache/aurora/client/cli:kaurora
-	$(pants) binary src/main/python/apache/aurora/executor/bin:thermos_executor
-	$(pants) binary src/main/python/apache/thermos/cli/bin:thermos
-	$(pants) binary src/main/python/apache/thermos/bin:thermos_runner
-	$(pants) binary src/main/python/apache/thermos/observer/bin:thermos_observer
-	build-support/embed_runner_in_executor.py
-
-override_dh_installinit:
-	dh_installinit --name=thermos
-	dh_installinit

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/f0fe01fc/debian/source/format
----------------------------------------------------------------------
diff --git a/debian/source/format b/debian/source/format
deleted file mode 100644
index 89ae9db..0000000
--- a/debian/source/format
+++ /dev/null
@@ -1 +0,0 @@
-3.0 (native)


[10/11] aurora-packaging git commit: One python_library per exported setup.py project

Posted by wf...@apache.org.
One python_library per exported setup.py project

This is a mostly red code diff and makes the pants build work similar to
how it already works in an IDE environment while minimizing duplicated
information. This change also removes the confusing versions of
`thermos` and `thermos_observer` in favor of new ones. Because of the
way "covering dependencies" were required it was easier to do this
refactor than more tactically create a working `setup_py` target for
`apache.aurora.tools` without cycles and without duplicated files.

* Remove the `apache.thermos` package.
* Rename the `apache.gen.aurora` package to `apache.aurora.thrift`.
* Rename the `apache.gen.thermos` package to `apache.thermos.thrift`.
* Introduce a new `apache.aurora.tools` package with the `thermos` and `thermos_observer` binaries.
* Create apache.thermos.runner package, rename `thermos/bin` to `thermos/runner`.
* Remove all `*-packaged` and virtual dependency trees, as well as the phrase "covering dependencies."
* Use `_`-prefix naming convention for private target names.
* Replace manual list of targets in `make-python-sdists` with automatically-generated one (using new convention).
* Introduce a new `apache.aurora.kerberos` package with the `kaurora` and `kaurora_admin` binaries.
* Remove all `BUILD` files in `src/main` that don't contain an exported `setup.py` library (except one mentioned in TODO).
* Use dictionary syntax in `with_binaries`.
* Remove unused/unreachable binaries (most `bin/` dirs under `thermos/`).
* Create blank `__init__.py` files in directories that pants warns aren't packages.
* Added `thermos` command to vagrant image.

Testing Done:
./pants test.pytest --no-fast src/test/python::
./build-support/python/make-python-sdists
./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
./build-support/python/make-pycharm-virtualenv

Manually checked that `thermos status` works.

I don't have a test environment for the debian package or the spec file.

Documentation pushed to https://github.com/kevints/aurora/blob/36972/docs/build-system.md

Bugs closed: AURORA-1381

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


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

Branch: refs/heads/master
Commit: 1a7ef26e821c24ee34e095ab230160da825a1449
Parents: 203e627
Author: Kevin Sweeney <ke...@apache.org>
Authored: Mon Aug 3 11:41:33 2015 -0700
Committer: Bill Farner <wf...@twitter.com>
Committed: Tue Aug 4 14:07:42 2015 -0700

----------------------------------------------------------------------
 build-support/packaging/debian/rules    | 8 ++++----
 build-support/packaging/rpm/aurora.spec | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/1a7ef26e/build-support/packaging/debian/rules
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/rules b/build-support/packaging/debian/rules
index 17e00c0..d981400 100755
--- a/build-support/packaging/debian/rules
+++ b/build-support/packaging/debian/rules
@@ -31,12 +31,12 @@ __gradle_build:
 
 __pants_build:
 	mkdir -p third_party
-	$(pants) binary src/main/python/apache/aurora/admin:kaurora_admin
-	$(pants) binary src/main/python/apache/aurora/client/cli:kaurora
-	$(pants) binary src/main/python/apache/aurora/executor/bin:thermos_executor
+	$(pants) binary src/main/python/apache/aurora/executor:thermos_executor
+	$(pants) binary src/main/python/apache/aurora/kerberos:kaurora
+	$(pants) binary src/main/python/apache/aurora/kerberos:kaurora_admin
 	$(pants) binary src/main/python/apache/aurora/tools:thermos
-	$(pants) binary src/main/python/apache/thermos/bin:thermos_runner
 	$(pants) binary src/main/python/apache/aurora/tools:thermos_observer
+	$(pants) binary src/main/python/apache/thermos/runner:thermos_runner
 	build-support/embed_runner_in_executor.py
 
 override_dh_installinit:

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/1a7ef26e/build-support/packaging/rpm/aurora.spec
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/aurora.spec b/build-support/packaging/rpm/aurora.spec
index 7cf8de6..3003ced 100644
--- a/build-support/packaging/rpm/aurora.spec
+++ b/build-support/packaging/rpm/aurora.spec
@@ -178,12 +178,12 @@ popd
 
 # Builds Aurora client PEX binaries.
 ./pants binary src/main/python/apache/aurora/admin:aurora_admin
-./pants binary src/main/python/apache/aurora/client/cli:aurora
+./pants binary src/main/python/apache/aurora/client:aurora
 
 # Builds Aurora Thermos and GC executor PEX binaries.
-./pants binary src/main/python/apache/aurora/executor/bin:thermos_executor
+./pants binary src/main/python/apache/aurora/executor:thermos_executor
 ./pants binary src/main/python/apache/aurora/tools:thermos
-./pants binary src/main/python/apache/thermos/bin:thermos_runner
+./pants binary src/main/python/apache/thermos/runner:thermos_runner
 ./pants binary src/main/python/apache/aurora/tools:thermos_observer
 
 # Packages the Thermos runner within the Thermos executor.


[02/11] aurora-packaging git commit: Use the correct (aurora-specific) python build targets in RPM and deb scripts.

Posted by wf...@apache.org.
Use the correct (aurora-specific) python build targets in RPM and deb scripts.

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


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

Branch: refs/heads/master
Commit: 203e6271408a801a7c7a3a005b600e8b78597f43
Parents: 3a5139d
Author: Bill Farner <wf...@apache.org>
Authored: Thu Jul 30 10:53:11 2015 -0700
Committer: Bill Farner <wf...@twitter.com>
Committed: Tue Aug 4 14:07:42 2015 -0700

----------------------------------------------------------------------
 build-support/packaging/debian/rules    | 2 +-
 build-support/packaging/rpm/aurora.spec | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/203e6271/build-support/packaging/debian/rules
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/rules b/build-support/packaging/debian/rules
index 23828c0..17e00c0 100755
--- a/build-support/packaging/debian/rules
+++ b/build-support/packaging/debian/rules
@@ -34,7 +34,7 @@ __pants_build:
 	$(pants) binary src/main/python/apache/aurora/admin:kaurora_admin
 	$(pants) binary src/main/python/apache/aurora/client/cli:kaurora
 	$(pants) binary src/main/python/apache/aurora/executor/bin:thermos_executor
-	$(pants) binary src/main/python/apache/thermos/cli/bin:thermos
+	$(pants) binary src/main/python/apache/aurora/tools:thermos
 	$(pants) binary src/main/python/apache/thermos/bin:thermos_runner
 	$(pants) binary src/main/python/apache/aurora/tools:thermos_observer
 	build-support/embed_runner_in_executor.py

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/203e6271/build-support/packaging/rpm/aurora.spec
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/aurora.spec b/build-support/packaging/rpm/aurora.spec
index 0c4c106..7cf8de6 100644
--- a/build-support/packaging/rpm/aurora.spec
+++ b/build-support/packaging/rpm/aurora.spec
@@ -182,10 +182,9 @@ popd
 
 # Builds Aurora Thermos and GC executor PEX binaries.
 ./pants binary src/main/python/apache/aurora/executor/bin:thermos_executor
-./pants binary src/main/python/apache/thermos/cli/bin:thermos
-./pants binary src/main/python/apache/thermos/bin:thermos_ckpt
+./pants binary src/main/python/apache/aurora/tools:thermos
 ./pants binary src/main/python/apache/thermos/bin:thermos_runner
-./pants binary src/main/python/apache/thermos/observer/bin:thermos_observer
+./pants binary src/main/python/apache/aurora/tools:thermos_observer
 
 # Packages the Thermos runner within the Thermos executor.
 python <<EOF


[09/11] aurora-packaging git commit: Removes version on virtual pacakge in debian control

Posted by wf...@apache.org.
Removes version on virtual pacakge in debian control

java-runtime-headless is a virtual package and cannot have a version
specified. The consequence of this is that the built packages require openjdk-8
be installed which prevented the packages from working with oracle-java8.
java8-runtime-headless is a virtual package provided by both openjdk-8
and oracle-java8 so the resulting debian packages can be installed on a
machine with either versions of java8 installed.

Testing Done:
Started two docker containers, one with oracle-java8 and the other with
openjdk-8. I was able to install the aurora-scheduler package in both containers
with this change.

Bugs closed: AURORA-1400

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


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

Branch: refs/heads/master
Commit: ccf7543edd90dc18d89da30aeb4baca8d2245ea7
Parents: 928afd4
Author: Andrew Jorgensen <an...@andrewjorgensen.com>
Authored: Wed Jul 15 11:35:01 2015 -0700
Committer: Bill Farner <wf...@twitter.com>
Committed: Tue Aug 4 14:07:42 2015 -0700

----------------------------------------------------------------------
 build-support/packaging/debian/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/ccf7543e/build-support/packaging/debian/control
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/control b/build-support/packaging/debian/control
index ff62ea1..3ece202 100644
--- a/build-support/packaging/debian/control
+++ b/build-support/packaging/debian/control
@@ -20,7 +20,7 @@ Architecture: any
 Section: net
 Depends: ${shlibs:Depends}, ${misc:Depends},
  adduser,
- openjdk-8-jre-headless | java-runtime-headless (>= 8),
+ openjdk-8-jre-headless | java8-runtime-headless,
  mesos (>= 0.21.1)
 Recommends: aurora-tools
 Suggests: aurora-doc


[06/11] aurora-packaging git commit: Removing GC executor code.

Posted by wf...@apache.org.
Removing GC executor code.

Bugs closed: AURORA-1333

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


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

Branch: refs/heads/master
Commit: 6bd5279d453f3b40ae3ee4b391763ed5c64a6999
Parents: 18cfef0
Author: Maxim Khutornenko <ma...@apache.org>
Authored: Thu Jun 25 13:49:15 2015 -0700
Committer: Bill Farner <wf...@twitter.com>
Committed: Tue Aug 4 14:07:42 2015 -0700

----------------------------------------------------------------------
 debian/aurora-executor.install | 1 -
 debian/rules                   | 1 -
 2 files changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/6bd5279d/debian/aurora-executor.install
----------------------------------------------------------------------
diff --git a/debian/aurora-executor.install b/debian/aurora-executor.install
index 8efb130..5d0d1f7 100644
--- a/debian/aurora-executor.install
+++ b/debian/aurora-executor.install
@@ -1,4 +1,3 @@
-dist/gc_executor.pex /usr/share/aurora/bin
 dist/thermos_executor.pex /usr/share/aurora/bin
 dist/thermos_observer.pex /usr/share/aurora/bin
 dist/thermos.pex /usr/share/aurora/bin

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/6bd5279d/debian/rules
----------------------------------------------------------------------
diff --git a/debian/rules b/debian/rules
index 6ba18ce..db0f14e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -33,7 +33,6 @@ __pants_build:
 	mkdir -p third_party
 	$(pants) binary src/main/python/apache/aurora/admin:kaurora_admin
 	$(pants) binary src/main/python/apache/aurora/client/cli:kaurora
-	$(pants) binary src/main/python/apache/aurora/executor/bin:gc_executor
 	$(pants) binary src/main/python/apache/aurora/executor/bin:thermos_executor
 	$(pants) binary src/main/python/apache/thermos/cli/bin:thermos
 	$(pants) binary src/main/python/apache/thermos/bin:thermos_runner


[04/11] aurora-packaging git commit: Native Debian packaging for Aurora

Posted by wf...@apache.org.
Native Debian packaging for Aurora

This uses Debian package dependencies to install gradle and thrift-compiler.  Gradle 2.x isn't in Debian or Ubuntu yet, but you can build your own package easily enough using https://github.com/benley/gradle-packaging

Testing Done:
Built debs in a clean Ubuntu 14.04 environment using git-buildpackage and pbuilder. Have been using debs built from this branch on a testing cluster for a few months now.

Bugs closed: AURORA-951

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


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

Branch: refs/heads/master
Commit: a823409d0bd34a4e4b58efa7651d841d306e28f2
Parents: 
Author: Benjamin Staffin <be...@folsomlabs.com>
Authored: Mon Jun 15 10:31:22 2015 -0400
Committer: Bill Farner <wf...@twitter.com>
Committed: Tue Aug 4 14:07:42 2015 -0700

----------------------------------------------------------------------
 debian/aurora-doc.docs                 |  1 +
 debian/aurora-doc.examples             |  1 +
 debian/aurora-executor.dirs            |  2 +
 debian/aurora-executor.install         |  6 ++
 debian/aurora-executor.links           |  1 +
 debian/aurora-executor.thermos.default | 18 ++++++
 debian/aurora-executor.thermos.init    | 69 +++++++++++++++++++++
 debian/aurora-executor.thermos.upstart | 28 +++++++++
 debian/aurora-scheduler.default        | 80 ++++++++++++++++++++++++
 debian/aurora-scheduler.init           | 96 +++++++++++++++++++++++++++++
 debian/aurora-scheduler.install        |  2 +
 debian/aurora-scheduler.links          |  1 +
 debian/aurora-scheduler.postinst       | 54 ++++++++++++++++
 debian/aurora-scheduler.upstart        | 40 ++++++++++++
 debian/aurora-tools.install            |  2 +
 debian/aurora-tools.links              |  2 +
 debian/changelog                       | 74 ++++++++++++++++++++++
 debian/clusters.json                   | 10 +++
 debian/compat                          |  1 +
 debian/control                         | 78 +++++++++++++++++++++++
 debian/copyright                       |  8 +++
 debian/pants.ini                       |  9 +++
 debian/rules                           | 45 ++++++++++++++
 debian/source/format                   |  1 +
 24 files changed, 629 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-doc.docs
----------------------------------------------------------------------
diff --git a/debian/aurora-doc.docs b/debian/aurora-doc.docs
new file mode 100644
index 0000000..a188e06
--- /dev/null
+++ b/debian/aurora-doc.docs
@@ -0,0 +1 @@
+docs/*

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-doc.examples
----------------------------------------------------------------------
diff --git a/debian/aurora-doc.examples b/debian/aurora-doc.examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/debian/aurora-doc.examples
@@ -0,0 +1 @@
+examples/*

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-executor.dirs
----------------------------------------------------------------------
diff --git a/debian/aurora-executor.dirs b/debian/aurora-executor.dirs
new file mode 100644
index 0000000..f62944b
--- /dev/null
+++ b/debian/aurora-executor.dirs
@@ -0,0 +1,2 @@
+/var/lib/thermos
+/var/lib/thermos/sandbox

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-executor.install
----------------------------------------------------------------------
diff --git a/debian/aurora-executor.install b/debian/aurora-executor.install
new file mode 100644
index 0000000..8efb130
--- /dev/null
+++ b/debian/aurora-executor.install
@@ -0,0 +1,6 @@
+dist/gc_executor.pex /usr/share/aurora/bin
+dist/thermos_executor.pex /usr/share/aurora/bin
+dist/thermos_observer.pex /usr/share/aurora/bin
+dist/thermos.pex /usr/share/aurora/bin
+
+debian/clusters.json /etc/aurora

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-executor.links
----------------------------------------------------------------------
diff --git a/debian/aurora-executor.links b/debian/aurora-executor.links
new file mode 100644
index 0000000..973c7e0
--- /dev/null
+++ b/debian/aurora-executor.links
@@ -0,0 +1 @@
+/usr/share/aurora/bin/thermos_observer.pex /usr/sbin/thermos_observer

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-executor.thermos.default
----------------------------------------------------------------------
diff --git a/debian/aurora-executor.thermos.default b/debian/aurora-executor.thermos.default
new file mode 100644
index 0000000..82ab0c8
--- /dev/null
+++ b/debian/aurora-executor.thermos.default
@@ -0,0 +1,18 @@
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Defaults for thermos observer
+
+# Listen port for thermos_observer
+OBSERVER_PORT=1338

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-executor.thermos.init
----------------------------------------------------------------------
diff --git a/debian/aurora-executor.thermos.init b/debian/aurora-executor.thermos.init
new file mode 100755
index 0000000..24a59d2
--- /dev/null
+++ b/debian/aurora-executor.thermos.init
@@ -0,0 +1,69 @@
+#!/bin/sh
+# Start/stop the thermos-observer daemon.
+#
+### BEGIN INIT INFO
+# Provides:          thermos
+# Required-Start:    $remote_fs $syslog $time
+# Required-Stop:     $remote_fs $syslog $time
+# Should-Start:      $network $named slapd autofs ypbind nscd nslcd
+# Should-Stop:       $network $named slapd autofs ypbind nscd nslcd
+# Default-Start:     2 3 4 5
+# Default-Stop:
+# Short-Description: Thermos observer daemon
+# Description:       Thermos observer is a component of Apache Aurora. It
+#                    provides administrative visibility into the status of
+#                    running tasks on mesos-slave nodes.
+### END INIT INFO
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+DESC="Aurora Thermos observer"
+NAME=thermos
+DAEMON=/usr/sbin/thermos_observer
+PIDFILE=/var/run/thermos_observer.pid
+SCRIPTNAME=/etc/init.d/"$NAME"
+
+test -f $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
+if which initctl >/dev/null && initctl version | grep -q upstart; then
+  if test -e /lib/init/upstart-job -a -e /etc/init/${NAME}.conf; then
+    . /lib/init/upstart-job
+    exit $?
+  fi
+fi
+
+[ -r /etc/default/thermos ] && . /etc/default/thermos
+
+ARGS="--root=/var/run/thermos
+      --port=${OBSERVER_PORT:-1338}
+      --log_to_disk=NONE
+      --log_to_stderr=google:INFO"
+
+case "$1" in
+  start)
+    log_daemon_msg "Starting $DESC" "$NAME"
+    mkdir -p /var/run/thermos
+    start_daemon -p $PIDFILE $DAEMON $ARGS
+    log_end_msg $?
+    ;;
+  stop)
+    log_daemon_msg "Stopping $DESC" "$NAME"
+    killproc -p $PIDFILE $DAEMON
+    RETVAL=$?
+    [ $RETVAL -eq 0 ] && [ -e "$PIDFILE" ] && rm -f $PIDFILE
+    log_end_msg $RETVAL
+    ;;
+  restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME"
+    $0 stop
+    $0 start
+    ;;
+  status)
+    status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
+    ;;
+  *)
+    log_action_msg "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}"
+    exit 2
+    ;;
+esac
+exit 0

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-executor.thermos.upstart
----------------------------------------------------------------------
diff --git a/debian/aurora-executor.thermos.upstart b/debian/aurora-executor.thermos.upstart
new file mode 100644
index 0000000..ffa4f98
--- /dev/null
+++ b/debian/aurora-executor.thermos.upstart
@@ -0,0 +1,28 @@
+# vi:ft=upstart
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+description "Aurora Thermos observer"
+start on stopped rc RUNLEVEL=[2345]
+respawn
+post-stop exec sleep 5
+
+pre-start exec mkdir -p /var/run/thermos
+
+script
+  [ -r /etc/default/thermos ] && . /etc/default/thermos
+  exec start-stop-daemon --start --exec /usr/sbin/thermos_observer -- \
+    --root=/var/run/thermos \
+    --port=${OBSERVER_PORT:-1338} \
+    --log_to_disk=NONE \
+    --log_to_stderr=google:INFO
+end script

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-scheduler.default
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.default b/debian/aurora-scheduler.default
new file mode 100644
index 0000000..47fea5b
--- /dev/null
+++ b/debian/aurora-scheduler.default
@@ -0,0 +1,80 @@
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Defaults for Aurora startup
+
+###
+# Environment variables control the behavior of the Mesos scheduler driver (libmesos).
+GLOG_v=0
+LIBPROCESS_PORT=8083
+#LIBPROCESS_IP=192.168.33.7
+###
+
+###
+# Flags that control the behavior of the JVM.
+#JAVA_OPTS='-Djava.library.path=/usr/local/lib -Dlog4j.configuration="file:///etc/zookeeper/conf/log4j.properties"'
+JAVA_OPTS='-Djava.library.path=/usr/local/lib'
+###
+
+AURORA_HOME="/var/lib/aurora"
+
+# Name of the cluster. Please change this.
+CLUSTER_NAME="example"
+
+# Listening port for the scheduler
+HTTP_PORT=8081
+
+# Replicated log quorum size. Set to (floor(number_of_schedulers / 2) + 1)
+QUORUM_SIZE=1
+
+# List of zookeeper endpoints
+ZK_ENDPOINTS="localhost:2181"
+
+# Zookeeper path or URL to mesos master
+MESOS_MASTER="zk://${ZK_ENDPOINTS}/mesos"
+
+# Zookeeper ServerSet path to register at
+ZK_SERVERSET_PATH="/aurora/scheduler"
+
+# Log path in zookeeper
+ZK_LOGDB_PATH="/aurora/replicated-log"
+
+# Where to store the replicated log on disk
+LOGDB_FILE_PATH="${AURORA_HOME}/scheduler/db"
+
+# Where to store backups on disk
+BACKUP_DIR="${AURORA_HOME}/scheduler/backups"
+
+# Path (on the slave nodes) or URL to thermos executor or wrapper script
+THERMOS_EXECUTOR_PATH="/usr/share/aurora/bin/thermos_executor.pex"
+
+# A comma seperated list of additional resources to copy into the sandbox.
+# Note: if thermos_executor_path is not the thermos_executor.pex file itself,
+# this must include it.
+THERMOS_EXECUTOR_RESOURCES=""
+
+# Extra arguments to be passed to the thermos executor
+THERMOS_EXECUTOR_FLAGS=""
+
+# Container types that are allowed to be used by jobs.
+ALLOWED_CONTAINER_TYPES="MESOS,DOCKER"
+
+# Path (on the slave nodes) or URL to garbage collection executor
+GC_EXECUTOR_PATH="/usr/share/aurora/bin/gc_executor.pex"
+
+# Scheduler log verbosity
+LOG_LEVEL="INFO"
+
+# Any args you want to add to the aurora-scheduler invocation:
+EXTRA_SCHEDULER_ARGS="-enable_beta_updater=true"

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-scheduler.init
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.init b/debian/aurora-scheduler.init
new file mode 100755
index 0000000..2ed0159
--- /dev/null
+++ b/debian/aurora-scheduler.init
@@ -0,0 +1,96 @@
+#!/bin/sh
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# Start/stop the aurora-scheduler daemon.
+#
+### BEGIN INIT INFO
+# Provides:          aurora-scheduler
+# Required-Start:    $remote_fs $syslog $time
+# Required-Stop:     $remote_fs $syslog $time
+# Should-Start:      $network $named slapd autofs ypbind nscd nslcd
+# Should-Stop:       $network $named slapd autofs ypbind nscd nslcd
+# Default-Start:     2 3 4 5
+# Default-Stop:
+# Short-Description: Apache Aurora scheduler daemon
+# Description:       Aurora is service scheduler that runs on top of Apache
+#                    Mesos, enabling you to run long-running services that take
+#                    advantage of Apache Mesos' scalability, fault-tolerance,
+#                    and resource isolation.
+### END INIT INFO
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+DESC="Aurora scheduler"
+NAME=aurora-scheduler
+DAEMON=/usr/sbin/aurora-scheduler
+PIDFILE=/var/run/aurora-scheduler.pid
+SCRIPTNAME=/etc/init.d/"$NAME"
+
+test -f $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+
+if which initctl >/dev/null && initctl version | grep -q upstart; then
+  if test -e /lib/init/upstart-job -a -e /etc/init/${NAME}.conf; then
+    . /lib/init/upstart-job
+    exit $?
+  fi
+fi
+
+[ -r /etc/default/aurora-scheduler ] && . /etc/default/aurora-scheduler
+
+ARGS="-cluster_name=$CLUSTER_NAME
+  -http_port=$HTTP_PORT
+  -native_log_quorum_size=$QUORUM_SIZE
+  -zk_endpoints=$ZK_ENDPOINTS
+  -mesos_master_address=$MESOS_MASTER
+  -serverset_path=$ZK_SERVERSET_PATH
+  -native_log_zk_group_path=$ZK_LOGDB_PATH
+  -native_log_file_path=$LOGDB_FILE_PATH
+  -backup_dir=$BACKUP_DIR
+  -thermos_executor_path=$THERMOS_EXECUTOR_PATH
+  -thermos_executor_resources=$THERMOS_EXECUTOR_RESOURCES
+  -thermos_executor_flags=$THERMOS_EXECUTOR_FLAGS
+  -allowed_container_types=$ALLOWED_CONTAINER_TYPES
+  -gc_executor_path=$GC_EXECUTOR_PATH
+  -vlog=$LOG_LEVEL
+  $EXTRA_SCHEDULER_ARGS"
+
+export JAVA_OPTS GLOG_v LIBPROCESS_PORT LIBPROCESS_IP
+
+case "$1" in
+  start)
+    log_daemon_msg "Starting $DESC" "$NAME"
+    start_daemon -p $PIDFILE $DAEMON $ARGS
+    log_end_msg $?
+    ;;
+  stop)
+    log_daemon_msg "Stopping $DESC" "$NAME"
+    killproc -p $PIDFILE $DAEMON
+    RETVAL=$?
+    [ $RETVAL -eq 0 ] && [ -e "$PIDFILE" ] && rm -f $PIDFILE
+    log_end_msg $RETVAL
+    ;;
+  restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME"
+    $0 stop
+    $0 start
+    ;;
+  status)
+    status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
+    ;;
+  *)
+    log_action_msg "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}"
+    exit 2
+    ;;
+esac
+exit 0

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-scheduler.install
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.install b/debian/aurora-scheduler.install
new file mode 100644
index 0000000..94ae762
--- /dev/null
+++ b/debian/aurora-scheduler.install
@@ -0,0 +1,2 @@
+dist/install/aurora-scheduler/bin /usr/share/aurora
+dist/install/aurora-scheduler/lib /usr/share/aurora

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-scheduler.links
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.links b/debian/aurora-scheduler.links
new file mode 100644
index 0000000..bed1c65
--- /dev/null
+++ b/debian/aurora-scheduler.links
@@ -0,0 +1 @@
+/usr/share/aurora/bin/aurora-scheduler /usr/sbin/aurora-scheduler

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-scheduler.postinst
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.postinst b/debian/aurora-scheduler.postinst
new file mode 100644
index 0000000..0d019b6
--- /dev/null
+++ b/debian/aurora-scheduler.postinst
@@ -0,0 +1,54 @@
+#!/bin/sh
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# postinst script for #PACKAGE#
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+      adduser --quiet --group --system --home /var/lib/aurora aurora
+      chown -R aurora:aurora /var/lib/aurora
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-scheduler.upstart
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.upstart b/debian/aurora-scheduler.upstart
new file mode 100644
index 0000000..ed7fe09
--- /dev/null
+++ b/debian/aurora-scheduler.upstart
@@ -0,0 +1,40 @@
+# vi:ft=upstart
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+description "Aurora scheduler"
+start on stopped rc RUNLEVEL=[2345]
+respawn
+post-stop exec sleep 5
+
+script
+  . /etc/default/aurora-scheduler
+  export JAVA_OPTS GLOG_v LIBPROCESS_PORT LIBPROCESS_IP
+  exec start-stop-daemon --start -c aurora \
+    --exec /usr/share/aurora/bin/aurora-scheduler -- \
+      -cluster_name="$CLUSTER_NAME" \
+      -http_port="$HTTP_PORT" \
+      -native_log_quorum_size="$QUORUM_SIZE" \
+      -zk_endpoints="$ZK_ENDPOINTS" \
+      -mesos_master_address="$MESOS_MASTER" \
+      -serverset_path="$ZK_SERVERSET_PATH" \
+      -native_log_zk_group_path="$ZK_LOGDB_PATH" \
+      -native_log_file_path="$LOGDB_FILE_PATH" \
+      -backup_dir="$BACKUP_DIR" \
+      -thermos_executor_path="$THERMOS_EXECUTOR_PATH" \
+      -thermos_executor_resources="$THERMOS_EXECUTOR_RESOURCES" \
+      -thermos_executor_flags="$THERMOS_EXECUTOR_FLAGS" \
+      -allowed_container_types="$ALLOWED_CONTAINER_TYPES" \
+      -gc_executor_path="$GC_EXECUTOR_PATH" \
+      -vlog="$LOG_LEVEL" \
+      $EXTRA_SCHEDULER_ARGS
+end script

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-tools.install
----------------------------------------------------------------------
diff --git a/debian/aurora-tools.install b/debian/aurora-tools.install
new file mode 100644
index 0000000..ac8d032
--- /dev/null
+++ b/debian/aurora-tools.install
@@ -0,0 +1,2 @@
+dist/kaurora_admin.pex /usr/share/aurora/bin
+dist/kaurora.pex /usr/share/aurora/bin

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/aurora-tools.links
----------------------------------------------------------------------
diff --git a/debian/aurora-tools.links b/debian/aurora-tools.links
new file mode 100644
index 0000000..2d69bc5
--- /dev/null
+++ b/debian/aurora-tools.links
@@ -0,0 +1,2 @@
+/usr/share/aurora/bin/kaurora_admin.pex /usr/bin/aurora-admin
+/usr/share/aurora/bin/kaurora.pex /usr/bin/aurora

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/changelog
----------------------------------------------------------------------
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8446464
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,74 @@
+apache-aurora (0.9.0-SNAPSHOT) UNRELEASED; urgency=medium
+
+  * unreleased
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Mon, 16 Feb 2015 13:05:46 -0800
+
+apache-aurora (0.7.0-rc3-2~trusty1) trusty; urgency=medium
+
+  * Expose more parameters in /etc/default/aurora-scheduler for container
+    types and Thermos executor flags/resources.
+  * Eliminate the thermos_executor.sh wrapper script in favor of using
+    -thermos_executor_flags on the scheduler.
+  * Don't package /var/run/thermos; create it at runtime.
+  * Mildly cleanup embed-runner-in-executor.py
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Wed, 04 Feb 2015 21:12:02 -0800
+
+apache-aurora (0.7.0-rc3-1~trusty1) trusty; urgency=medium
+
+  * Added sysvinit script for thermos_observer to improve compatibility with
+    Debian.
+  * Listening port for thermos_observer is now configurable in
+    /etc/default/thermos.
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Mon, 02 Feb 2015 12:47:33 -0800
+
+apache-aurora (0.7.0-rc3-0~trusty1) trusty; urgency=medium
+
+  * New upstream release.
+  * Fixed thermos_executor.sh wrapper to correctly source /etc/default/thermos
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Mon, 02 Feb 2015 11:14:32 -0800
+
+apache-aurora (0.7.0-rc2-0~trusty3) trusty; urgency=medium
+
+  * aurora-tools: fixed /usr/bin/aurora symlink, dropped /usr/bin/aurora2
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Fri, 30 Jan 2015 15:35:23 -0800
+
+apache-aurora (0.7.0-rc2-0~trusty2) trusty; urgency=medium
+
+  * [3fd6b5c] Update vagrant script to match package updates
+  * [3ecd84a] More vagrant/testing improvements
+  * [977d6b4] scheduler: make sure the data dir is owned by aurora
+  * [c3ebeab] aurora-executor: add docker to Recommends
+  * [86560ec] vagrant: make sure aurora owns its replicatedlog
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Wed, 28 Jan 2015 18:36:37 -0800
+
+apache-aurora (0.7.0-rc2-0~trusty1) trusty; urgency=medium
+
+  * [7abb98e] Ditch python-support; doesn't do much for pex scripts
+  * [8d6f377] Reduce pants.ini overrides to avoid weird problems
+  * [304686f] Start a Vagrantfile
+  * [4c1e90f] Expanded vagrantfile, now with provisioning.
+  * [05875d1] Add examples to docs and a default clusters.json
+  * [9f2c53d] A few more tweaks
+  * [ceb09d8] Forgot to install thermos_executor.sh
+  * [bd0e4d7] thermos-related refinement
+  * [733a82d] Update vagrant provision script to keep up
+  * [0343523] Incorporate review feedback
+  * [c4c3400] Further review feedback updates
+  * [a7368cf] Update to Aurora 0.7.0-rc2
+  * [fdc115f] Use upstream/%(version) interim tags
+  * [57f9a64] Patch to allow gradle 2.2.1
+  * [3ecfa8d] Update pants targets for 0.7.0-rc2
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Wed, 28 Jan 2015 05:23:27 -0800
+
+apache-aurora (0.6.0-incubating-0~trusty1) trusty; urgency=medium
+
+  * Initial release.
+
+ -- Benjamin Staffin <be...@folsomlabs.com>  Fri, 28 Nov 2014 14:25:08 -0800

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/clusters.json
----------------------------------------------------------------------
diff --git a/debian/clusters.json b/debian/clusters.json
new file mode 100644
index 0000000..29c2e0b
--- /dev/null
+++ b/debian/clusters.json
@@ -0,0 +1,10 @@
+[
+  {
+    "auth_mechanism": "UNAUTHENTICATED",
+    "name": "example",
+    "scheduler_zk_path": "/aurora/scheduler",
+    "slave_root": "/var/lib/mesos",
+    "slave_run_directory": "latest",
+    "zk": "127.0.1.1"
+  }
+]

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/compat
----------------------------------------------------------------------
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/control
----------------------------------------------------------------------
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..260ac8f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,78 @@
+Source: apache-aurora
+Priority: optional
+Maintainer: The Apache Aurora authors <de...@aurora.apache.org>
+Build-Depends: debhelper (>= 9),
+ java8-sdk | openjdk-8-jdk,
+ gradle (>= 2.4) | gradle-2.4,
+ python-all-dev,
+ libkrb5-dev,
+ curl,
+ git,
+ wget,
+ thrift-compiler (>= 0.9.1)
+# thrift-compiler version needs to match the ext.thriftRev value from build.gradle
+Section: net
+Standards-Version: 3.9.5
+Homepage: https://aurora.apache.org
+
+Package: aurora-scheduler
+Architecture: any
+Section: net
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ adduser,
+ openjdk-8-jre-headless | java-runtime-headless (>= 8),
+ mesos (>= 0.21.1)
+Recommends: aurora-tools
+Suggests: aurora-doc
+Description: Apache Aurora scheduler
+ Aurora is a service scheduler that runs on top of Apache Mesos, enabling you
+ to run long-running services that take advantage of Apache Mesos' scalability,
+ fault-tolerance, and resource isolation.
+ .
+ This package contains the Aurora Scheduler daemon.
+
+Package: aurora-tools
+Architecture: any
+Section: net
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ python2.7
+Suggests: aurora-doc
+Recommends: libkrb5-3 | libkrb5-26-heimdal
+Description: Apache Aurora commandline tools
+ Aurora is a service scheduler that runs on top of Apache Mesos, enabling you
+ to run long-running services that take advantage of Apache Mesos' scalability,
+ fault-tolerance, and resource isolation.
+ .
+ This package includes the aurora and aurora-admin commandline utilities for
+ interacting with an Aurora scheduler.
+
+Package: aurora-executor
+Architecture: any
+Section: net
+Replaces: aurora-mesos-slave
+Breaks: aurora-mesos-slave
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ python2.7
+Recommends:
+ aurora-tools,
+ lxc-docker (>= 1.0) | docker.io (>= 1.0)
+Suggests: aurora-doc
+Description: Apache Aurora executor deployment
+ Aurora is a service scheduler that runs on top of Apache Mesos, enabling you
+ to run long-running services that take advantage of Apache Mesos' scalability,
+ fault-tolerance, and resource isolation.
+ .
+ This package contains the components necessary to run Aurora jobs on a Mesos
+ slave node: the garbage collection executor, Thermos executor, and Thermos
+ observer.
+
+Package: aurora-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Description: Documentation for Apache Aurora
+ Aurora is a service scheduler that runs on top of Apache Mesos, enabling you
+ to run long-running services that take advantage of Apache Mesos' scalability,
+ fault-tolerance, and resource isolation.
+ .
+ This package contains documentation.

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/copyright
----------------------------------------------------------------------
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8c0d0f1
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,8 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: aurora
+Source: http://incubator.apache.org/aurora/
+
+Files: *
+Copyright: 2014 The Apache Software Foundation
+License: Apache-2.0
+ /usr/share/common-licenses/Apache-2.0

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/pants.ini
----------------------------------------------------------------------
diff --git a/debian/pants.ini b/debian/pants.ini
new file mode 100644
index 0000000..ed1a5ce
--- /dev/null
+++ b/debian/pants.ini
@@ -0,0 +1,9 @@
+[DEFAULT]
+pants_cachedir: %(homedir)s/.pants.d
+
+[python-setup]
+download_cache: %(pants_cachedir)s/python/downloads
+install_cache: %(pants_cachedir)s/python/eggs
+
+[python-repos]
+repos: ['third_party/', 'https://svn.apache.org/repos/asf/incubator/aurora/3rdparty/ubuntu/trusty64/python/']

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/rules
----------------------------------------------------------------------
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..6ba18ce
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,45 @@
+#!/usr/bin/make -f
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Uncomment for debugging.
+#DH_VERBOSE = 1
+
+%:
+	dh $@ --exclude=aurora-scheduler.bat
+
+gradle = $(shell which gradle)
+pants = $(CURDIR)/pants
+PANTS_CONFIG_OVERRIDE = $(CURDIR)/debian/pants.ini
+export PANTS_CONFIG_OVERRIDE
+
+override_dh_auto_build: __gradle_build __pants_build
+
+__gradle_build:
+	$(gradle) installApp
+
+__pants_build:
+	mkdir -p third_party
+	$(pants) binary src/main/python/apache/aurora/admin:kaurora_admin
+	$(pants) binary src/main/python/apache/aurora/client/cli:kaurora
+	$(pants) binary src/main/python/apache/aurora/executor/bin:gc_executor
+	$(pants) binary src/main/python/apache/aurora/executor/bin:thermos_executor
+	$(pants) binary src/main/python/apache/thermos/cli/bin:thermos
+	$(pants) binary src/main/python/apache/thermos/bin:thermos_runner
+	$(pants) binary src/main/python/apache/thermos/observer/bin:thermos_observer
+	build-support/embed_runner_in_executor.py
+
+override_dh_installinit:
+	dh_installinit --name=thermos
+	dh_installinit

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/a823409d/debian/source/format
----------------------------------------------------------------------
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)


[07/11] aurora-packaging git commit: Tidying RPM packaging README and specfile

Posted by wf...@apache.org.
Tidying RPM packaging README and specfile

Bugs closed: AURORA-1391

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


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

Branch: refs/heads/master
Commit: 928afd401fd05bfa24f85fd47c43ad8a472c755a
Parents: f0fe01f
Author: Steve Salevan <st...@gmail.com>
Authored: Tue Jul 14 10:50:34 2015 -0700
Committer: Bill Farner <wf...@twitter.com>
Committed: Tue Aug 4 14:07:42 2015 -0700

----------------------------------------------------------------------
 build-support/packaging/rpm/README.md   | 15 +++------------
 build-support/packaging/rpm/aurora.spec |  2 ++
 2 files changed, 5 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/928afd40/build-support/packaging/rpm/README.md
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/README.md b/build-support/packaging/rpm/README.md
index c5916e0..2432dc7 100644
--- a/build-support/packaging/rpm/README.md
+++ b/build-support/packaging/rpm/README.md
@@ -1,14 +1,5 @@
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+Building Aurora RPMs
+====================
 
 This directory contains all necessary scripting to support the building of Aurora
 nightly and release RPMs.  Building and deployment have been tested against the following
@@ -18,7 +9,7 @@ Red Hat flavors:
  * Fedora 19/20 on x86_64
 
 How to build using Make and rpmbuild
-====================================
+------------------------------------
 
 1. Install the necessary build dependencies via yum-builddep:
 

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/928afd40/build-support/packaging/rpm/aurora.spec
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/aurora.spec b/build-support/packaging/rpm/aurora.spec
index 03b9ee3..0c4c106 100644
--- a/build-support/packaging/rpm/aurora.spec
+++ b/build-support/packaging/rpm/aurora.spec
@@ -85,7 +85,9 @@ BuildRequires: unzip
 BuildRequires: wget
 BuildRequires: zlib-devel
 
+%if 0%{?rhel} && 0%{?rhel} < 7
 Requires:      daemonize
+%endif
 Requires:      java-%{JAVA_VERSION}-openjdk
 Requires:      mesos = %{MESOS_VERSION}
 


[11/11] aurora-packaging git commit: Updates debian rules to use different thermos_observer.

Posted by wf...@apache.org.
Updates debian rules to use different thermos_observer.

The old thermos_observer is missing the --mesos-root flag thats needed
to tell the thermos_observer where it can find the mesos root directory.
It currently defaults to /var/lib/mesos in the old observer entry point.

Testing Done:
1. Built aurora with dpkg-buildpackage -us -uc -d
2. Installed executor deb: dpkg --install aurora-executor_0.9.0-SNAPSHOT_amd64.deb
3. thermos_observer --long-help
Options:
  -h, --help, --short-help
                        show this help message and exit.
  --long-help           show options from all registered modules, not just the
                        __main__ module.
  --root=ROOT           The thermos checkpoint root directory to search for
                        Thermos tasks [default: /var/run/thermos]
  --mesos-root=MESOS_ROOT
                        The mesos root directory to search for Thermos
                        executor sandboxes [default: /var/lib/mesos]
  --port=PORT           The port on which the observer should listen.
                        [default: 1338]
  --polling_interval_secs=POLLING_INTERVAL_SECS
                        The number of seconds between observer refresh
                        attempts. [default: 5]

I am in the process of building and deploying this change to production and can report
back when that is complete.

Bugs closed: AURORA-1403

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


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

Branch: refs/heads/master
Commit: 3a5139d097222d3ef39bb396be32a09e8ce35a15
Parents: ccf7543
Author: Andrew Jorgensen <an...@andrewjorgensen.com>
Authored: Tue Jul 21 13:26:29 2015 -0700
Committer: Bill Farner <wf...@twitter.com>
Committed: Tue Aug 4 14:07:42 2015 -0700

----------------------------------------------------------------------
 build-support/packaging/debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/3a5139d0/build-support/packaging/debian/rules
----------------------------------------------------------------------
diff --git a/build-support/packaging/debian/rules b/build-support/packaging/debian/rules
index db0f14e..23828c0 100755
--- a/build-support/packaging/debian/rules
+++ b/build-support/packaging/debian/rules
@@ -36,7 +36,7 @@ __pants_build:
 	$(pants) binary src/main/python/apache/aurora/executor/bin:thermos_executor
 	$(pants) binary src/main/python/apache/thermos/cli/bin:thermos
 	$(pants) binary src/main/python/apache/thermos/bin:thermos_runner
-	$(pants) binary src/main/python/apache/thermos/observer/bin:thermos_observer
+	$(pants) binary src/main/python/apache/aurora/tools:thermos_observer
 	build-support/embed_runner_in_executor.py
 
 override_dh_installinit:


[08/11] aurora-packaging git commit: Adds RPM specfile and support scripting

Posted by wf...@apache.org.
Adds RPM specfile and support scripting

Bugs closed: AURORA-1116

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


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

Branch: refs/heads/master
Commit: df6325c872c5c6a7b1a01adcad98a940730bcf5e
Parents: 6bd5279
Author: Steve Salevan <st...@gmail.com>
Authored: Mon Jul 6 14:57:34 2015 -0700
Committer: Bill Farner <wf...@twitter.com>
Committed: Tue Aug 4 14:07:42 2015 -0700

----------------------------------------------------------------------
 build-support/packaging/rpm/Makefile            | 101 ++++++
 build-support/packaging/rpm/README.md           |  42 +++
 build-support/packaging/rpm/aurora.init.sh      | 199 +++++++++++
 build-support/packaging/rpm/aurora.logrotate    |  24 ++
 build-support/packaging/rpm/aurora.service      |  27 ++
 build-support/packaging/rpm/aurora.spec         | 344 +++++++++++++++++++
 build-support/packaging/rpm/aurora.startup.sh   |  27 ++
 build-support/packaging/rpm/aurora.sysconfig    |  79 +++++
 build-support/packaging/rpm/clusters.json       |   6 +
 .../packaging/rpm/thermos-observer.init.sh      | 197 +++++++++++
 .../packaging/rpm/thermos-observer.logrotate    |  24 ++
 .../packaging/rpm/thermos-observer.service      |  27 ++
 .../packaging/rpm/thermos-observer.startup.sh   |  19 +
 .../packaging/rpm/thermos-observer.sysconfig    |  22 ++
 14 files changed, 1138 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/df6325c8/build-support/packaging/rpm/Makefile
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/Makefile b/build-support/packaging/rpm/Makefile
new file mode 100644
index 0000000..1833a25
--- /dev/null
+++ b/build-support/packaging/rpm/Makefile
@@ -0,0 +1,101 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+GIT_COMMIT ?= HEAD
+
+USING_GIT ?= $(shell git status >/dev/null 2>&1 && echo 'true' || echo 'false')
+ifeq ($(USING_GIT),true)
+	VERSION_SUFFIX := .$(shell git rev-parse --short $(GIT_COMMIT))
+else
+	VERSION_SUFFIX :=
+endif
+
+CURRENT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
+
+TOPDIR ?= $(CURRENT_DIR)/../../..
+DIST_DIR ?= $(TOPDIR)/dist
+RPM_TOPDIR ?= $(DIST_DIR)
+
+DATETIME ?= $(shell date +%Y%m%d%H%M)
+
+SOURCE_TARGET ?= $(RPM_TOPDIR)/rpmbuild/SOURCES/aurora.tar.gz
+
+AURORA_VERSION ?= $(shell cat $(TOPDIR)/.auroraversion | tr '-' '.')
+MESOS_VERSION ?= $(shell sed -n 's/.*mesos\.native==\(.*\)/\1/p' $(TOPDIR)/3rdparty/python/requirements.txt)
+
+
+PHONY: all nightly_version release_version get_source_target clean mkdir srpm nightly_srpm nightly_rpm release_srpm release_rpm tar_source
+
+all: release_rpm
+
+nightly_version:
+	$(eval AURORA_VERSION := $(AURORA_VERSION).$(DATETIME)$(VERSION_SUFFIX))
+
+release_version:
+	$(eval AURORA_VERSION := $(AURORA_VERSION))
+
+clean:
+	rm -rf $(RPM_TOPDIR)/rpmbuild
+
+mkdir: clean
+	mkdir -p $(RPM_TOPDIR)/rpmbuild/BUILD
+	mkdir -p $(RPM_TOPDIR)/rpmbuild/BUILDROOT
+	mkdir -p $(RPM_TOPDIR)/rpmbuild/RPMS
+	mkdir -p $(RPM_TOPDIR)/rpmbuild/SOURCES
+	mkdir -p $(RPM_TOPDIR)/rpmbuild/SRPMS
+
+tar_source: mkdir
+	if [[ "$(USING_GIT)" == 'true' ]]; then \
+		cd `git rev-parse --show-toplevel` && git archive --format=tar --prefix=aurora/ $(GIT_COMMIT) | gzip > $(SOURCE_TARGET); \
+	else \
+		tmp_dir=`mktemp -d '/tmp/aurorabuild.XXXXXX'`; \
+		mkdir $${tmp_dir}/aurora; \
+		cp -r $(TOPDIR)/* $${tmp_dir}/aurora; \
+		cd $${tmp_dir}; \
+		tar cvzf $(SOURCE_TARGET) aurora; \
+		rm -rf $${tmp_dir}; \
+	fi
+
+srpm: tar_source
+	rpmbuild $(RPM_OPTS) \
+		--define "_topdir $(RPM_TOPDIR)" \
+		--define "_builddir %{_topdir}/rpmbuild/BUILD" \
+		--define "_buildrootdir %{_topdir}/rpmbuild/BUILDROOT" \
+		--define "_rpmdir %{_topdir}/rpmbuild/RPMS" \
+		--define "_srcrpmdir %{_topdir}/rpmbuild/SRPMS" \
+		--define "_specdir %(pwd)" \
+		--define "_sourcedir  %{_topdir}/rpmbuild/SOURCES" \
+		--define "AURORA_VERSION $(AURORA_VERSION)" \
+		--define "MESOS_VERSION $(MESOS_VERSION)" \
+		--nodeps -bs aurora.spec
+
+rpm: tar_source
+	rpmbuild $(RPM_OPTS) \
+		--define "_topdir $(RPM_TOPDIR)" \
+		--define "_builddir %{_topdir}/rpmbuild/BUILD" \
+		--define "_buildrootdir %{_topdir}/rpmbuild/BUILDROOT" \
+		--define "_rpmdir %{_topdir}/rpmbuild/RPMS" \
+		--define "_srcrpmdir %{_topdir}/rpmbuild/SRPMS" \
+		--define "_specdir %(pwd)" \
+		--define "_sourcedir  %{_topdir}/rpmbuild/SOURCES" \
+		--define "AURORA_VERSION $(AURORA_VERSION)" \
+		--define "MESOS_VERSION $(MESOS_VERSION)" \
+		-ba aurora.spec
+
+nightly_srpm: nightly_version srpm
+
+nightly_rpm: nightly_version rpm
+
+release_srpm: release_version srpm
+
+release_rpm: release_version rpm

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/df6325c8/build-support/packaging/rpm/README.md
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/README.md b/build-support/packaging/rpm/README.md
new file mode 100644
index 0000000..c5916e0
--- /dev/null
+++ b/build-support/packaging/rpm/README.md
@@ -0,0 +1,42 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+This directory contains all necessary scripting to support the building of Aurora
+nightly and release RPMs.  Building and deployment have been tested against the following
+Red Hat flavors:
+
+ * CentOS 6/7 on x86_64
+ * Fedora 19/20 on x86_64
+
+How to build using Make and rpmbuild
+====================================
+
+1. Install the necessary build dependencies via yum-builddep:
+
+```bash
+cd build-support/packaging/rpm
+sudo yum install -y make rpm-build yum-utils
+make srpm
+sudo yum-builddep ../../../dist/rpmbuild/SRPMS/*
+```
+
+2. Build the RPM via Make.
+
+```bash
+make rpm
+```
+
+3. After the RPM building process has concluded, RPMs will land here:
+
+```
+$AURORA_HOME/dist/rpmbuild/RPMS
+```

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/df6325c8/build-support/packaging/rpm/aurora.init.sh
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/aurora.init.sh b/build-support/packaging/rpm/aurora.init.sh
new file mode 100644
index 0000000..ac4c438
--- /dev/null
+++ b/build-support/packaging/rpm/aurora.init.sh
@@ -0,0 +1,199 @@
+#!/bin/bash
+#
+# aurora Starts the Aurora task scheduler for Mesos.
+#
+# chkconfig:   345 55 25
+# description: This script starts the Aurora service scheduler for Apache Mesos, \
+#              used for scheduling and executing long-running tasks and \
+#              cron jobs.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+### BEGIN INIT INFO
+# Provides: aurora
+# Required-Start:
+# Required-Stop:
+# Should-Start:
+# Should-Stop:
+# Default-Start: 3 4 5
+# Default-Stop: 0 1 2 6
+# Short-Description: Starts the Aurora task scheduler for Mesos.
+# Description: Starts the Aurora task scheduler for Mesos.
+### END INIT INFO
+
+# Source LSB function library.
+. /lib/lsb/init-functions
+
+aurora_user="aurora"
+exec="/usr/bin/aurora-scheduler-startup"
+prog="aurora"
+logdir="/var/log/aurora"
+lockfile="/var/run/aurora.lock"
+pid_file="/var/run/aurora.pid"
+stderr_log="${logdir}/aurora.log"
+
+# Get a sane screen width
+[ -z "${COLUMNS:-}" ] && COLUMNS=80
+[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"
+
+# Read in init configuration.
+if [ -z "${BOOTUP:-}" ]; then
+  if [ -f /etc/sysconfig/init ]; then
+    . /etc/sysconfig/init
+  else
+    BOOTUP=color
+    RES_COL=60
+    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
+    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
+    SETCOLOR_FAILURE="echo -en \\033[1;31m"
+    SETCOLOR_WARNING="echo -en \\033[1;33m"
+    SETCOLOR_NORMAL="echo -en \\033[0;39m"
+    LOGLEVEL=1
+  fi
+  if [ "$CONSOLETYPE" = "serial" ]; then
+    BOOTUP=serial
+    MOVE_TO_COL=
+    SETCOLOR_SUCCESS=
+    SETCOLOR_FAILURE=
+    SETCOLOR_WARNING=
+    SETCOLOR_NORMAL=
+  fi
+fi
+
+function usage {
+  err "Starts the Aurora task scheduler for Mesos."
+  err "Usage: ${0} (restart|start|stop|status)"
+}
+
+function out {
+  printf '%s\n' "$*";
+}
+
+function msg {
+  out "$*" >&2;
+}
+
+function err {
+  local x=${?};
+  msg "$*";
+  return $(( ${x} == 0 ? 1 : ${x} ));
+}
+
+function echo_success {
+  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
+  echo -n "["
+  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
+  echo -n $"  OK  "
+  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
+  echo -n "]"
+  echo -ne "\r"
+  return 0
+}
+
+function echo_failure {
+  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
+  echo -n "["
+  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
+  echo -n $"FAILED"
+  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
+  echo -n "]"
+  echo -ne "\r"
+  return 1
+}
+
+# Parse arguments.
+ACTION=${1}
+
+# Ensures that action is.
+if [ -z ${ACTION} ]; then
+  err "ERROR: No action specified."
+  usage
+  exit -1
+fi
+
+start() {
+  [ -x ${exec} ] || exit 5
+  [ -f ${config} ] || exit 6
+  echo -n $"Starting $prog: "
+  start_daemon daemonize -u ${aurora_user} -e ${stderr_log} -p ${pid_file} ${exec}
+  retval=$?
+  [ $retval -eq 0 ] && (echo_success; touch $lockfile) || echo_failure
+  echo
+  return $retval
+}
+
+stop() {
+  echo -n $"Stopping $prog: "
+  killproc -p ${pid_file} ${exec}
+  retval=$?
+  [ $retval -eq 0 ] && (echo_success; rm -f $lockfile) || echo_failure
+  echo
+  return $retval
+}
+
+restart() {
+  stop
+  start
+}
+
+reload() {
+  restart
+}
+
+force_reload() {
+  restart
+}
+
+rh_status() {
+  pid=$(pidofproc -p ${pid_file} ${prog})
+  if [ $? -eq 0 ]; then
+    echo "${prog} (pid ${pid}) is running..."
+    return 0
+  else
+    if [ -e $lockfile ]; then
+      echo "${prog} dead but lockfile exists"
+      return 2
+    else
+      echo "${prog} is stopped"
+      return 1
+    fi
+  fi
+}
+
+rh_status_q() {
+  rh_status >/dev/null 2>&1
+}
+
+# Executes the requested daemon action.
+case "${ACTION}" in
+  start)
+    rh_status_q && rh_status && exit 0
+    start
+    ;;
+  stop)
+    stop
+    ;;
+  status)
+    rh_status
+    ;;
+  restart)
+    restart
+    ;;
+  *)
+    err "ERROR: Invalid action specified."
+    usage
+    exit -3
+esac
+
+exit $?

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/df6325c8/build-support/packaging/rpm/aurora.logrotate
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/aurora.logrotate b/build-support/packaging/rpm/aurora.logrotate
new file mode 100644
index 0000000..1c43073
--- /dev/null
+++ b/build-support/packaging/rpm/aurora.logrotate
@@ -0,0 +1,24 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+/var/log/aurora/*.log {
+
+  daily
+  missingok
+  rotate 14
+  compress
+  delaycompress
+  notifempty
+  copytruncate
+
+}

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/df6325c8/build-support/packaging/rpm/aurora.service
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/aurora.service b/build-support/packaging/rpm/aurora.service
new file mode 100644
index 0000000..b81cb63
--- /dev/null
+++ b/build-support/packaging/rpm/aurora.service
@@ -0,0 +1,27 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+[Unit]
+Description=Aurora Scheduler
+After=network.target
+Wants=network.target
+
+[Service]
+ExecStart=/usr/bin/aurora-scheduler-startup
+User=aurora
+Group=aurora
+Restart=always
+RestartSec=20
+LimitNOFILE=16384
+
+[Install]
+WantedBy=multi-user.target

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/df6325c8/build-support/packaging/rpm/aurora.spec
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/aurora.spec b/build-support/packaging/rpm/aurora.spec
new file mode 100644
index 0000000..d5d5c9f
--- /dev/null
+++ b/build-support/packaging/rpm/aurora.spec
@@ -0,0 +1,344 @@
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Overridable variables;
+%if %{?!AURORA_VERSION:1}0
+%global AURORA_VERSION 0.9.0
+%endif
+
+%if %{?!AURORA_USER:1}0
+%global AURORA_USER aurora
+%endif
+
+%if %{?!AURORA_GROUP:1}0
+%global AURORA_GROUP aurora
+%endif
+
+%if %{?!GRADLE_BASEURL:1}0
+%global GRADLE_BASEURL https://services.gradle.org/distributions
+%endif
+
+%if %{?!GRADLE_VERSION:1}0
+%global GRADLE_VERSION 2.4
+%endif
+
+%if %{?!JAVA_VERSION:!}0
+%global JAVA_VERSION 1.8.0
+%endif
+
+%if %{?!MESOS_BASEURL:1}0
+%global MESOS_BASEURL https://archive.apache.org/dist/mesos
+%endif
+
+%if %{?!MESOS_VERSION:1}0
+%global MESOS_VERSION 0.22.0
+%endif
+
+%if %{?!PEX_BINARIES:1}0
+%global PEX_BINARIES aurora aurora_admin thermos thermos_executor thermos_runner thermos_observer
+%endif
+
+%if %{?!PYTHON_VERSION:1}0
+%global PYTHON_VERSION 2.7
+%endif
+
+
+Name:          aurora
+Version:       %{AURORA_VERSION}
+Release:       1%{?dist}.aurora
+Summary:       A Mesos framework for scheduling and executing long-running services and cron jobs.
+Group:         Applications/System
+License:       ASL 2.0
+URL:           https://%{name}.apache.org/
+
+Source0:       https://github.com/apache/%{name}/archive/%{version}/%{name}.tar.gz
+
+BuildRequires: apr-devel
+BuildRequires: cyrus-sasl-devel
+BuildRequires: gcc
+BuildRequires: gcc-c++
+BuildRequires: git
+BuildRequires: java-%{JAVA_VERSION}-openjdk-devel
+BuildRequires: libcurl-devel
+BuildRequires: patch
+%if 0%{?rhel} && 0%{?rhel} < 7
+BuildRequires: python27
+BuildRequires: python27-scldevel
+%else
+BuildRequires: python
+BuildRequires: python-devel
+%endif
+BuildRequires: subversion-devel
+BuildRequires: tar
+BuildRequires: unzip
+BuildRequires: wget
+BuildRequires: zlib-devel
+
+Requires:      daemonize
+Requires:      java-%{JAVA_VERSION}-openjdk
+Requires:      mesos = %{MESOS_VERSION}
+
+
+%description
+Apache Aurora is a service scheduler that runs on top of Mesos, enabling you to schedule
+long-running services that take advantage of Mesos' scalability, fault-tolerance, and
+resource isolation.
+
+
+%package client
+Summary: A client for scheduling services against the Aurora scheduler
+Group: Development/Tools
+
+%if 0%{?rhel} && 0%{?rhel} < 7
+Requires: python27
+%else
+Requires: python
+%endif
+
+%description client
+A set of command-line applications used for interacting with and administering Aurora
+schedulers.
+
+
+%package thermos
+Summary: Mesos executor that runs and monitors tasks scheduled by the Aurora scheduler
+Group: Applications/System
+
+Requires: cyrus-sasl
+Requires: daemonize
+%if 0%{?rhel} && 0%{?rhel} < 7
+Requires: docker-io
+%else
+Requires: docker
+%endif
+Requires: mesos = %{MESOS_VERSION}
+%if 0%{?rhel} && 0%{?rhel} < 7
+Requires: python27
+%else
+Requires: python
+%endif
+
+%description thermos
+Thermos a simple process management framework used for orchestrating dependent processes
+within a single Mesos chroot.  It works in tandem with Aurora to ensure that tasks
+scheduled by it are properly executed on Mesos slaves and provides a Web UI to monitor the
+state of all running tasks.
+
+
+%prep
+%setup -n %{name}
+
+
+%build
+# Preferences SCL-installed Python 2.7 if we're building on EL6.
+%if 0%{?rhel} && 0%{?rhel} < 7
+export PATH=/opt/rh/python27/root/usr/bin${PATH:+:${PATH}}
+export LD_LIBRARY_PATH=/opt/rh/python27/root/usr/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
+export MANPATH=/opt/rh/python27/root/usr/share/man:${MANPATH}
+# For systemtap
+export XDG_DATA_DIRS=/opt/rh/python27/root/usr/share${XDG_DATA_DIRS:+:${XDG_DATA_DIRS}}
+# For pkg-config
+export PKG_CONFIG_PATH=/opt/rh/python27/root/usr/lib64/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}}
+%endif
+
+# Preferences Java 1.8 over any other Java version.
+export PATH=/usr/lib/jvm/java-1.8.0/bin:${PATH}
+
+# Downloads Gradle executable.
+wget %{GRADLE_BASEURL}/gradle-%{GRADLE_VERSION}-bin.zip
+unzip gradle-%{GRADLE_VERSION}-bin.zip
+
+# Creates Pants directory where we'll store our native Mesos Python eggs.
+mkdir -p .pants.d/python/eggs/
+
+# Builds mesos-native and mesos-interface eggs if not currently packaged.
+wget "%{MESOS_BASEURL}/%{MESOS_VERSION}/mesos-%{MESOS_VERSION}.tar.gz"
+tar xvzf mesos-%{MESOS_VERSION}.tar.gz
+pushd mesos-%{MESOS_VERSION}
+./configure --disable-java
+make
+find . -name '*.egg' -exec cp -v {} ../.pants.d/python/eggs/ \;
+popd
+
+# Builds the Aurora scheduler.
+./gradle-%{GRADLE_VERSION}/bin/gradle installDist
+
+# Builds Aurora client PEX binaries.
+./pants binary src/main/python/apache/aurora/admin:aurora_admin
+./pants binary src/main/python/apache/aurora/client/cli:aurora
+
+# Builds Aurora Thermos and GC executor PEX binaries.
+./pants binary src/main/python/apache/aurora/executor/bin:thermos_executor
+./pants binary src/main/python/apache/thermos/cli/bin:thermos
+./pants binary src/main/python/apache/thermos/bin:thermos_ckpt
+./pants binary src/main/python/apache/thermos/bin:thermos_runner
+./pants binary src/main/python/apache/thermos/observer/bin:thermos_observer
+
+# Packages the Thermos runner within the Thermos executor.
+python <<EOF
+import contextlib
+import zipfile
+with contextlib.closing(zipfile.ZipFile('dist/thermos_executor.pex', 'a')) as zf:
+  zf.writestr('apache/aurora/executor/resources/__init__.py', '')
+  zf.write('dist/thermos_runner.pex', 'apache/aurora/executor/resources/thermos_runner.pex')
+EOF
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# Builds installation directory structure.
+mkdir -p %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
+mkdir -p %{buildroot}%{_prefix}/lib/%{name}
+mkdir -p %{buildroot}%{_sharedstatedir}
+mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}
+mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
+mkdir -p %{buildroot}%{_localstatedir}/log/thermos
+mkdir -p %{buildroot}%{_localstatedir}/run/thermos
+mkdir -p %{buildroot}%{_sysconfdir}/%{name}
+mkdir -p %{buildroot}%{_sysconfdir}/init.d
+mkdir -p %{buildroot}%{_sysconfdir}/systemd/system
+mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
+mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
+
+# Installs the Aurora scheduler that was just built into /usr/lib/aurora.
+cp -r dist/install/aurora-scheduler/* %{buildroot}%{_prefix}/lib/%{name}
+
+# Installs all PEX binaries.
+for pex_binary in %{PEX_BINARIES}; do
+  install -m 755 dist/${pex_binary}.pex %{buildroot}%{_bindir}/${pex_binary}
+done
+
+# Installs all support scripting.
+%if 0%{?fedora} || 0%{?rhel} > 6
+install -m 644 build-support/packaging/rpm/%{name}.service %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service
+install -m 644 build-support/packaging/rpm/thermos-observer.service %{buildroot}%{_sysconfdir}/systemd/system/thermos-observer.service
+%else
+install -m 755 build-support/packaging/rpm/%{name}.init.sh %{buildroot}%{_sysconfdir}/init.d/%{name}
+install -m 755 build-support/packaging/rpm/thermos-observer.init.sh %{buildroot}%{_sysconfdir}/init.d/thermos-observer
+%endif
+
+install -m 755 build-support/packaging/rpm/%{name}.startup.sh %{buildroot}%{_bindir}/%{name}-scheduler-startup
+install -m 755 build-support/packaging/rpm/thermos-observer.startup.sh %{buildroot}%{_bindir}/thermos-observer-startup
+
+install -m 644 build-support/packaging/rpm/%{name}.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}
+install -m 644 build-support/packaging/rpm/thermos-observer.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/thermos-observer
+
+install -m 644 build-support/packaging/rpm/%{name}.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
+install -m 644 build-support/packaging/rpm/thermos-observer.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/thermos-observer
+
+install -m 644 build-support/packaging/rpm/clusters.json %{buildroot}%{_sysconfdir}/%{name}/clusters.json
+
+
+%pre
+getent group %{AURORA_GROUP} > /dev/null || groupadd -r %{AURORA_GROUP}
+getent passwd %{AURORA_USER} > /dev/null || \
+    useradd -r -d %{_localstatedir}/lib/%{name} -g %{AURORA_GROUP} \
+    -s /bin/bash -c "Aurora Scheduler" %{AURORA_USER}
+exit 0
+
+# Pre/post installation scripts:
+%post
+%if 0%{?fedora} || 0%{?rhel} > 6
+%systemd_post %{name}.service
+%else
+/sbin/chkconfig --add %{name}
+%endif
+
+%preun
+%if 0%{?fedora} || 0%{?rhel} > 6
+%systemd_preun %{name}.service
+%else
+/sbin/service %{name} stop >/dev/null 2>&1
+/sbin/chkconfig --del %{name}
+%endif
+
+%postun
+%if 0%{?fedora} || 0%{?rhel} > 6
+%systemd_postun_with_restart %{name}.service
+%else
+/sbin/service %{name} start >/dev/null 2>&1
+%endif
+
+
+%post thermos
+%if 0%{?fedora} || 0%{?rhel} > 6
+%systemd_post thermos-observer.service
+%else
+/sbin/chkconfig --add thermos-observer
+%endif
+
+%preun thermos
+%if 0%{?fedora} || 0%{?rhel} > 6
+%systemd_preun thermos-observer.service
+%else
+/sbin/service thermos-observer stop >/dev/null 2>&1
+/sbin/chkconfig --del thermos-observer
+%endif
+
+%postun thermos
+%if 0%{?fedora} || 0%{?rhel} > 6
+%systemd_postun_with_restart thermos-observer.service
+%else
+/sbin/service thermos-observer start >/dev/null 2>&1
+%endif
+
+
+%files
+%defattr(-,root,root,-)
+%doc docs/*.md
+%{_bindir}/aurora-scheduler-startup
+%attr(-,%{AURORA_USER},%{AURORA_GROUP}) %{_localstatedir}/lib/%{name}
+%attr(-,%{AURORA_USER},%{AURORA_GROUP}) %{_localstatedir}/log/%{name}
+%{_prefix}/lib/%{name}/bin/*
+%{_prefix}/lib/%{name}/etc/*
+%{_prefix}/lib/%{name}/lib/*
+%if 0%{?fedora} || 0%{?rhel} > 6
+%{_sysconfdir}/systemd/system/%{name}.service
+%else
+%{_sysconfdir}/init.d/%{name}
+%endif
+%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
+%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
+
+
+%files client
+%defattr(-,root,root,-)
+%{_bindir}/%{name}
+%{_bindir}/%{name}_admin
+%config(noreplace) %{_sysconfdir}/%{name}/clusters.json
+
+
+%files thermos
+%defattr(-,root,root,-)
+%{_bindir}/thermos
+%{_bindir}/thermos_executor
+%{_bindir}/thermos_observer
+%{_bindir}/thermos_runner
+%{_bindir}/thermos-observer-startup
+%{_localstatedir}/log/thermos
+%{_localstatedir}/run/thermos
+%if 0%{?fedora} || 0%{?rhel} > 6
+%{_sysconfdir}/systemd/system/thermos-observer.service
+%else
+%{_sysconfdir}/init.d/thermos-observer
+%endif
+%config(noreplace) %{_sysconfdir}/logrotate.d/thermos-observer
+%config(noreplace) %{_sysconfdir}/sysconfig/thermos-observer
+
+
+%changelog
+* Tue Apr 14 2015 Steve Salevan <st...@gmail.com>
+- Initial specfile writeup.

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/df6325c8/build-support/packaging/rpm/aurora.startup.sh
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/aurora.startup.sh b/build-support/packaging/rpm/aurora.startup.sh
new file mode 100644
index 0000000..3c444d9
--- /dev/null
+++ b/build-support/packaging/rpm/aurora.startup.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+#
+# Starts up an Aurora scheduler process.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+source /etc/sysconfig/aurora
+
+# Environment variables control the behavior of the Mesos scheduler driver (libmesos).
+export GLOG_v LIBPROCESS_PORT LIBPROCESS_IP
+export JAVA_OPTS="${JAVA_OPTS[*]}"
+
+# Preferences Java 1.8 over any other Java version.
+export PATH=/usr/lib/jvm/java-1.8.0/bin:${PATH}
+
+exec /usr/lib/aurora/bin/aurora-scheduler "${AURORA_FLAGS[@]}"

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/df6325c8/build-support/packaging/rpm/aurora.sysconfig
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/aurora.sysconfig b/build-support/packaging/rpm/aurora.sysconfig
new file mode 100644
index 0000000..b2a974f
--- /dev/null
+++ b/build-support/packaging/rpm/aurora.sysconfig
@@ -0,0 +1,79 @@
+#!/bin/bash
+# Configuration used when executing the Aurora task scheduler process.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+GLOG_v=0
+
+LIBPROCESS_PORT=8083
+LIBPROCESS_IP='127.0.0.1'
+
+# Flags that control the behavior of the JVM.
+JAVA_OPTS=(
+  # Uses server-level GC optimizations, as this is a server.
+  -server
+
+  # Location of libmesos-XXXX.so / libmesos-XXXX.dylib
+  -Djava.library.path='/usr/lib;/usr/lib64'
+)
+
+# Flags control the behavior of the Aurora scheduler.
+# For a full list of available flags, run /usr/lib/aurora/bin/aurora-scheduler -help
+AURORA_FLAGS=(
+  # The name of this cluster.
+  -cluster_name='main'
+
+  # The HTTP port upon which Aurora will listen.
+  -http_port=8081
+
+  # The ZooKeeper URL of the ZNode where the Mesos master has registered.
+  -mesos_master_address='zk://127.0.0.1:2181/mesos/master'
+
+  # The ZooKeeper quorum to which Aurora will register itself.
+  -zk_endpoints='127.0.0.1:2181'
+
+  # The ZooKeeper ZNode within the specified quorum to which Aurora will register its
+  # ServerSet, which keeps track of all live Aurora schedulers.
+  -serverset_path='/aurora/scheduler'
+
+  # The log level of the built-in logger.
+  -vlog='INFO'
+
+  # Allows the scheduling of containers of the provided type.
+  -allowed_container_types='DOCKER,MESOS'
+
+  ### Native Log Settings ###
+
+  # The native log serves as a replicated database which stores the state of the
+  # scheduler, allowing for multi-master operation.
+
+  # Size of the quorum of Aurora schedulers which possess a native log.  If running in
+  # multi-master mode, consult the following document to determine appropriate values:
+  #
+  # https://aurora.apache.org/documentation/latest/deploying-aurora-scheduler/#replicated-log-configuration
+  -native_log_quorum_size='1'
+  # The ZooKeeper ZNode to which Aurora will register the locations of its replicated log.
+  -native_log_zk_group_path='/aurora/native-log'
+  # The local directory in which an Aurora scheduler can find Aurora's replicated log.
+  -native_log_file_path='/var/lib/aurora/db'
+  # The local directory in which Aurora schedulers will place state backups.
+  -backup_dir='/var/lib/aurora/backups'
+
+  ### Thermos Settings ###
+
+  # The local path of the Thermos executor binary.
+  -thermos_executor_path='/usr/bin/thermos_executor'
+  # Flags to pass to the Thermos executor.
+  -thermos_executor_flags='--announcer-enable --announcer-ensemble 127.0.0.1:2181'
+)

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/df6325c8/build-support/packaging/rpm/clusters.json
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/clusters.json b/build-support/packaging/rpm/clusters.json
new file mode 100644
index 0000000..133013b
--- /dev/null
+++ b/build-support/packaging/rpm/clusters.json
@@ -0,0 +1,6 @@
+[{
+  "name": "main",
+  "zk": "127.0.0.1",
+  "scheduler_zk_path": "/aurora/scheduler",
+  "auth_mechanism": "UNAUTHENTICATED"
+}]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/df6325c8/build-support/packaging/rpm/thermos-observer.init.sh
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/thermos-observer.init.sh b/build-support/packaging/rpm/thermos-observer.init.sh
new file mode 100644
index 0000000..65a2452
--- /dev/null
+++ b/build-support/packaging/rpm/thermos-observer.init.sh
@@ -0,0 +1,197 @@
+#!/bin/bash
+#
+# thermos-observer Starts the Thermos task observer.
+#
+# chkconfig:   345 55 25
+# description: This script starts the Thermos task observer, which provides a WebUI for \
+#              viewing the state of tasks launched by the Thermos executor.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+### BEGIN INIT INFO
+# Provides: thermos-observer
+# Required-Start:
+# Required-Stop:
+# Should-Start:
+# Should-Stop:
+# Default-Start: 3 4 5
+# Default-Stop: 0 1 2 6
+# Short-Description: Starts the Thermos task observer.
+# Description: Starts the Thermos task observer.
+### END INIT INFO
+
+# Source LSB function library.
+. /lib/lsb/init-functions
+
+exec="/usr/bin/thermos-observer-startup"
+prog="thermos-observer"
+logdir="/var/log/thermos"
+lockfile="/var/run/thermos-observer.lock"
+pid_file="/var/run/thermos-observer.pid"
+
+stderr_log="${logdir}/observer.log"
+
+# Get a sane screen width
+[ -z "${COLUMNS:-}" ] && COLUMNS=80
+[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"
+
+# Read in init configuration.
+if [ -z "${BOOTUP:-}" ]; then
+  if [ -f /etc/sysconfig/init ]; then
+    . /etc/sysconfig/init
+  else
+    BOOTUP=color
+    RES_COL=60
+    MOVE_TO_COL="echo -en \\033[${RES_COL}G"
+    SETCOLOR_SUCCESS="echo -en \\033[1;32m"
+    SETCOLOR_FAILURE="echo -en \\033[1;31m"
+    SETCOLOR_WARNING="echo -en \\033[1;33m"
+    SETCOLOR_NORMAL="echo -en \\033[0;39m"
+    LOGLEVEL=1
+  fi
+  if [ "$CONSOLETYPE" = "serial" ]; then
+    BOOTUP=serial
+    MOVE_TO_COL=
+    SETCOLOR_SUCCESS=
+    SETCOLOR_FAILURE=
+    SETCOLOR_WARNING=
+    SETCOLOR_NORMAL=
+  fi
+fi
+
+function usage {
+  err "Starts the Thermos task observer."
+  err "Usage: ${0} (restart|start|stop|status)"
+}
+
+function out {
+  printf '%s\n' "$*";
+}
+
+function msg {
+  out "$*" >&2;
+}
+
+function err {
+  local x=${?};
+  msg "$*";
+  return $(( ${x} == 0 ? 1 : ${x} ));
+}
+
+function echo_success {
+  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
+  echo -n "["
+  [ "$BOOTUP" = "color" ] && $SETCOLOR_SUCCESS
+  echo -n $"  OK  "
+  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
+  echo -n "]"
+  echo -ne "\r"
+  return 0
+}
+
+function echo_failure {
+  [ "$BOOTUP" = "color" ] && $MOVE_TO_COL
+  echo -n "["
+  [ "$BOOTUP" = "color" ] && $SETCOLOR_FAILURE
+  echo -n $"FAILED"
+  [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL
+  echo -n "]"
+  echo -ne "\r"
+  return 1
+}
+
+# Parse arguments.
+ACTION=${1}
+
+# Ensures that action is.
+if [ -z ${ACTION} ]; then
+  err "ERROR: No action specified."
+  usage
+  exit -1
+fi
+
+start() {
+  [ -x ${exec} ] || exit 5
+  [ -f ${config} ] || exit 6
+  echo -n $"Starting $prog: "
+  start_daemon daemonize -e ${stderr_log} -p ${pid_file} ${exec}
+  retval=$?
+  [ $retval -eq 0 ] && (echo_success; touch $lockfile) || echo_failure
+  echo
+  return $retval
+}
+
+stop() {
+  echo -n $"Stopping $prog: "
+  killproc -p ${pid_file} ${exec}
+  retval=$?
+  [ $retval -eq 0 ] && (echo_success; rm -f $lockfile) || echo_failure
+  echo
+  return $retval
+}
+
+restart() {
+  stop
+  start
+}
+
+reload() {
+  restart
+}
+
+force_reload() {
+  restart
+}
+
+rh_status() {
+  pid=$(pidofproc -p ${pid_file} ${prog})
+  if [ $? -eq 0 ]; then
+    echo "${prog} (pid ${pid}) is running..."
+    return 0
+  else
+    if [ -e $lockfile ]; then
+      echo "${prog} dead but lockfile exists"
+      return 2
+    else
+      echo "${prog} is stopped"
+      return 1
+    fi
+  fi
+}
+
+rh_status_q() {
+  rh_status >/dev/null 2>&1
+}
+
+# Executes the requested daemon action.
+case "${ACTION}" in
+  start)
+    rh_status_q && rh_status && exit 0
+    start
+    ;;
+  stop)
+    stop
+    ;;
+  status)
+    rh_status
+    ;;
+  restart)
+    restart
+    ;;
+  *)
+    err "ERROR: Invalid action specified."
+    usage
+    exit -3
+esac
+
+exit $?

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/df6325c8/build-support/packaging/rpm/thermos-observer.logrotate
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/thermos-observer.logrotate b/build-support/packaging/rpm/thermos-observer.logrotate
new file mode 100644
index 0000000..a6a7f5c
--- /dev/null
+++ b/build-support/packaging/rpm/thermos-observer.logrotate
@@ -0,0 +1,24 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+/var/log/thermos/*.log {
+
+  daily
+  missingok
+  rotate 14
+  compress
+  delaycompress
+  notifempty
+  copytruncate
+
+}

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/df6325c8/build-support/packaging/rpm/thermos-observer.service
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/thermos-observer.service b/build-support/packaging/rpm/thermos-observer.service
new file mode 100644
index 0000000..d019635
--- /dev/null
+++ b/build-support/packaging/rpm/thermos-observer.service
@@ -0,0 +1,27 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+[Unit]
+Description=Thermos Observer
+After=network.target
+Wants=network.target
+
+[Service]
+ExecStart=/usr/bin/thermos-observer-startup
+User=root
+Group=root
+Restart=always
+RestartSec=20
+LimitNOFILE=16384
+
+[Install]
+WantedBy=multi-user.target

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/df6325c8/build-support/packaging/rpm/thermos-observer.startup.sh
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/thermos-observer.startup.sh b/build-support/packaging/rpm/thermos-observer.startup.sh
new file mode 100644
index 0000000..2d94fd9
--- /dev/null
+++ b/build-support/packaging/rpm/thermos-observer.startup.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+# Starts up a Thermos observer process.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+source /etc/sysconfig/thermos-observer
+
+exec /usr/bin/thermos_observer "${OBSERVER_ARGS[@]}"

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/df6325c8/build-support/packaging/rpm/thermos-observer.sysconfig
----------------------------------------------------------------------
diff --git a/build-support/packaging/rpm/thermos-observer.sysconfig b/build-support/packaging/rpm/thermos-observer.sysconfig
new file mode 100644
index 0000000..4bc5430
--- /dev/null
+++ b/build-support/packaging/rpm/thermos-observer.sysconfig
@@ -0,0 +1,22 @@
+#!/bin/bash
+# Configuration used when executing the Thermos observer process.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+OBSERVER_ARGS=(
+  --root=/var/run/thermos
+  --port=1338
+  --log_to_disk=NONE
+  --log_to_stderr=google:INFO
+)


[05/11] aurora-packaging git commit: Removing GcExecutorLauncher code.

Posted by wf...@apache.org.
Removing GcExecutorLauncher code.

Bugs closed: AURORA-1334

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


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

Branch: refs/heads/master
Commit: 18cfef0efc4547afdc605f705285d97aad82bd2a
Parents: a823409
Author: Maxim Khutornenko <ma...@apache.org>
Authored: Tue Jun 23 11:08:55 2015 -0700
Committer: Bill Farner <wf...@twitter.com>
Committed: Tue Aug 4 14:07:42 2015 -0700

----------------------------------------------------------------------
 debian/aurora-scheduler.default | 3 ---
 debian/aurora-scheduler.init    | 1 -
 debian/aurora-scheduler.upstart | 1 -
 3 files changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/18cfef0e/debian/aurora-scheduler.default
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.default b/debian/aurora-scheduler.default
index 47fea5b..bc30627 100644
--- a/debian/aurora-scheduler.default
+++ b/debian/aurora-scheduler.default
@@ -70,9 +70,6 @@ THERMOS_EXECUTOR_FLAGS=""
 # Container types that are allowed to be used by jobs.
 ALLOWED_CONTAINER_TYPES="MESOS,DOCKER"
 
-# Path (on the slave nodes) or URL to garbage collection executor
-GC_EXECUTOR_PATH="/usr/share/aurora/bin/gc_executor.pex"
-
 # Scheduler log verbosity
 LOG_LEVEL="INFO"
 

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/18cfef0e/debian/aurora-scheduler.init
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.init b/debian/aurora-scheduler.init
index 2ed0159..59b200f 100755
--- a/debian/aurora-scheduler.init
+++ b/debian/aurora-scheduler.init
@@ -62,7 +62,6 @@ ARGS="-cluster_name=$CLUSTER_NAME
   -thermos_executor_resources=$THERMOS_EXECUTOR_RESOURCES
   -thermos_executor_flags=$THERMOS_EXECUTOR_FLAGS
   -allowed_container_types=$ALLOWED_CONTAINER_TYPES
-  -gc_executor_path=$GC_EXECUTOR_PATH
   -vlog=$LOG_LEVEL
   $EXTRA_SCHEDULER_ARGS"
 

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/18cfef0e/debian/aurora-scheduler.upstart
----------------------------------------------------------------------
diff --git a/debian/aurora-scheduler.upstart b/debian/aurora-scheduler.upstart
index ed7fe09..1ceb704 100644
--- a/debian/aurora-scheduler.upstart
+++ b/debian/aurora-scheduler.upstart
@@ -34,7 +34,6 @@ script
       -thermos_executor_resources="$THERMOS_EXECUTOR_RESOURCES" \
       -thermos_executor_flags="$THERMOS_EXECUTOR_FLAGS" \
       -allowed_container_types="$ALLOWED_CONTAINER_TYPES" \
-      -gc_executor_path="$GC_EXECUTOR_PATH" \
       -vlog="$LOG_LEVEL" \
       $EXTRA_SCHEDULER_ARGS
 end script