aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject aurora-packaging git commit: Make copy & paste of example jobs easier.
Date Sun, 12 Jun 2016 11:42:18 GMT
Repository: aurora-packaging
Updated Branches:
  refs/heads/master b4f1a4529 -> aa5830237


Make copy & paste of example jobs easier.

Otherwise, the leading whitespace will lead to invalid Python code that
needs to be fixed manually within the Vagrant box.


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

Branch: refs/heads/master
Commit: aa58302370022fcbf9545ccb17a18fa45e11d3fc
Parents: b4f1a45
Author: Stephan Erb <serb@apache.org>
Authored: Sun Jun 12 13:40:21 2016 +0200
Committer: Stephan Erb <serb@apache.org>
Committed: Sun Jun 12 13:40:39 2016 +0200

----------------------------------------------------------------------
 test/deb/debian-jessie/README.md | 18 ++++++++++--------
 test/deb/ubuntu-trusty/README.md | 19 ++++++++++---------
 test/rpm/centos-7/README.md      | 18 ++++++++++--------
 3 files changed, 30 insertions(+), 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/aa583023/test/deb/debian-jessie/README.md
----------------------------------------------------------------------
diff --git a/test/deb/debian-jessie/README.md b/test/deb/debian-jessie/README.md
index a695854..b84ffd9 100644
--- a/test/deb/debian-jessie/README.md
+++ b/test/deb/debian-jessie/README.md
@@ -44,14 +44,16 @@ has to be initialized manually:
 
 ## Create a job
 
-    echo "
-    task = SequentialTask(
-      processes = [Process(name = 'hello', cmdline = 'echo hello')],
-      resources = Resources(cpu = 0.5, ram = 128*MB, disk = 128*MB))
-    jobs = [Service(
-      task = task, cluster = 'example', role = 'www-data', environment = 'prod', name = 'hello')]"
> hello_world.aurora
-
-    aurora job create example/www-data/prod/hello hello_world.aurora
+```
+echo "
+task = SequentialTask(
+  processes = [Process(name = 'hello', cmdline = 'echo hello')],
+  resources = Resources(cpu = 0.5, ram = 128*MB, disk = 128*MB))
+jobs = [Service(
+  task = task, cluster = 'example', role = 'www-data', environment = 'prod', name = 'hello')]"
> hello_world.aurora
+
+aurora job create example/www-data/prod/hello hello_world.aurora
+```
 
 ## Troubleshooting
 

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/aa583023/test/deb/ubuntu-trusty/README.md
----------------------------------------------------------------------
diff --git a/test/deb/ubuntu-trusty/README.md b/test/deb/ubuntu-trusty/README.md
index 124b8f1..bb79341 100644
--- a/test/deb/ubuntu-trusty/README.md
+++ b/test/deb/ubuntu-trusty/README.md
@@ -44,15 +44,16 @@ has to be initialized manually:
 
 ## Create a job
 
-    echo "
-    task = SequentialTask(
-      processes = [Process(name = 'hello', cmdline = 'echo hello')],
-      resources = Resources(cpu = 0.5, ram = 128*MB, disk = 128*MB))
-    jobs = [Service(
-      task = task, cluster = 'example', role = 'www-data', environment = 'prod', name = 'hello')]"
> hello_world.aurora
-
-    aurora job create example/www-data/prod/hello hello_world.aurora
-
+```
+echo "
+task = SequentialTask(
+  processes = [Process(name = 'hello', cmdline = 'echo hello')],
+  resources = Resources(cpu = 0.5, ram = 128*MB, disk = 128*MB))
+jobs = [Service(
+  task = task, cluster = 'example', role = 'www-data', environment = 'prod', name = 'hello')]"
> hello_world.aurora
+
+aurora job create example/www-data/prod/hello hello_world.aurora
+```
 ## Troubleshooting
 
 * Mesos: `/var/log/mesos`

http://git-wip-us.apache.org/repos/asf/aurora-packaging/blob/aa583023/test/rpm/centos-7/README.md
----------------------------------------------------------------------
diff --git a/test/rpm/centos-7/README.md b/test/rpm/centos-7/README.md
index 5fa398b..bb34fb6 100644
--- a/test/rpm/centos-7/README.md
+++ b/test/rpm/centos-7/README.md
@@ -42,14 +42,16 @@ for installing released packages or release candidate packages.
 
 ## Create a job
 
-    echo "
-    task = SequentialTask(
-      processes = [Process(name = 'hello', cmdline = 'echo hello')],
-      resources = Resources(cpu = 0.5, ram = 128*MB, disk = 128*MB))
-    jobs = [Service(
-      task = task, cluster = 'main', role = 'vagrant', environment = 'prod', name = 'hello')]"
> hello_world.aurora
-
-    aurora job create main/vagrant/prod/hello hello_world.aurora
+```
+echo "
+task = SequentialTask(
+  processes = [Process(name = 'hello', cmdline = 'echo hello')],
+  resources = Resources(cpu = 0.5, ram = 128*MB, disk = 128*MB))
+jobs = [Service(
+  task = task, cluster = 'main', role = 'vagrant', environment = 'prod', name = 'hello')]"
> hello_world.aurora
+
+aurora job create main/vagrant/prod/hello hello_world.aurora
+```
 
 ## Troubleshooting
 


Mime
View raw message