Repository: aurora Updated Branches: refs/heads/master b472af8c0 -> 3e85d5c50
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/repo Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/3e85d5c5 Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/3e85d5c5 Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/3e85d5c5 Branch: refs/heads/master Commit: 3e85d5c502b5c8eefbc5d483b4e1cd69da392ebc Parents: b472af8 Author: Bill Farner <[email protected]> Authored: Thu Jul 9 14:28:20 2015 -0700 Committer: Bill Farner <[email protected]> Committed: Thu Jul 9 14:28:20 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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> Wed, 28 Jan 2015 05:23:27 -0800 + +apache-aurora (0.6.0-incubating-0~trusty1) trusty; urgency=medium + + * Initial release. + + -- Benjamin Staffin <[email protected]> Fri, 28 Nov 2014 14:25:08 -0800 http://git-wip-us.apache.org/repos/asf/aurora/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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 <[email protected]> +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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> Wed, 28 Jan 2015 05:23:27 -0800 - -apache-aurora (0.6.0-incubating-0~trusty1) trusty; urgency=medium - - * Initial release. - - -- Benjamin Staffin <[email protected]> Fri, 28 Nov 2014 14:25:08 -0800 http://git-wip-us.apache.org/repos/asf/aurora/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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 <[email protected]> -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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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/blob/3e85d5c5/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)
