summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-04-04 10:11:55 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2015-04-04 10:11:55 +0200
commit844deb35f5b4f837699c1a8611f4e5be848ce59f (patch)
tree7c98c8c5081fec0adec9a078c290e2eeb7378e5f /examples
parentaa4a7caf98ecad31c5a83e60ad586a2cd3da8483 (diff)
downloadbiruda-844deb35f5b4f837699c1a8611f4e5be848ce59f.tar.gz
biruda-844deb35f5b4f837699c1a8611f4e5be848ce59f.tar.bz2
added a README for gold example
Diffstat (limited to 'examples')
-rw-r--r--examples/build_gold_image/README57
-rw-r--r--examples/build_gold_image/biruda.conf3
2 files changed, 59 insertions, 1 deletions
diff --git a/examples/build_gold_image/README b/examples/build_gold_image/README
new file mode 100644
index 0000000..ce781b3
--- /dev/null
+++ b/examples/build_gold_image/README
@@ -0,0 +1,57 @@
+Requirements
+------------
+
+Your distribution needs a running 'rpm', so on ArchLinux this can be
+achieved by installing '
+This example runs a single-node biruda installing a Centos 6 image
+in a chroot.
+
+Start the node with (as root, because we have to be able to 'chroot'):
+
+biruda -f -c biruda.conf
+
+In another shell start the interactive cli:
+
+biruda> status
+coordinator eeepc cpe:/o:arch:arch:rolling i686 1 alive 1428133209 (0)
+worker example_build_gold stopped direct /bin/sh ./build_centos6.sh x86_64 (0)
+worker example_run stopped direct /bin/chroot rhel6-x64 /bin/bash -c '/bin/cat /etc/redhat-release' (1)
+
+We see one coordinator running on ArchLinux ('cpe:/o:arch:arch:rolling')
+and two workers: 'example_build_gold' builds the image, 'example_run'
+runs a command in the chrooted Centos.
+
+We start the first worker by calling:
+
+biruda> start
+worker> example_build_gold
+Request queued
+
+The messages command shows us the output of the worker:
+
+biruda> messages
+output example_build_gold:
+1428133254 example_build_gold --- STARTED 19698 ---
+1428133255 example_build_gold stderr --2015-04-04 09:40:55-- http://mirror.centos.org/centos/6.6/os/x86_64/Packages/centos-release-6-6.el6.centos.12.2.x86_64.rpm
+1428133255 example_build_gold stderr Resolving mirror.centos.org (mirror.centos.org)... 95.211.98.141
+
+The daemon spools the output of a worker in a file 'example_build_gold.output',
+you can also have a look at that:
+
+shell> tail -f example_build_gold.output
+
+The worker is now running:
+
+biruda> status
+coordinator eeepc cpe:/o:arch:arch:rolling i686 1 alive 1428134192 (0)
+worker example_build_gold running direct /bin/sh ./build_centos6.sh x86_64 (0)
+worker example_run stopped direct /bin/chroot rhel6-x64 /bin/bash -c '/bin/cat /etc/redhat-release' (1)
+
+We get a chroot environment installed in the directory running the biruda
+node in 'rhel6-x64':
+
+shell> ls rhel6-x64
+
+bin boot dev etc home lib media mnt opt proc
+root sbin selinux srv sys tmp usr var
+
diff --git a/examples/build_gold_image/biruda.conf b/examples/build_gold_image/biruda.conf
index 6dd9199..10cdca4 100644
--- a/examples/build_gold_image/biruda.conf
+++ b/examples/build_gold_image/biruda.conf
@@ -23,7 +23,8 @@ worker example_build_gold
execution = direct
- command = "/bin/sh ./build_centos6.sh x86_64"
+# command = "/bin/sh ./build_centos6.sh x86_64"
+ command = "/bin/sh ./build_centos6.sh i686"
}
worker example_run