From 9b1d1d1d7ff1d5271491185f97348c8bcbb3ddec Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 4 Apr 2015 13:00:11 +0200 Subject: some fixes in the example --- examples/build_gold_image/README | 14 ++++++++------ examples/build_gold_image/biruda.conf | 8 ++++---- 2 files changed, 12 insertions(+), 10 deletions(-) (limited to 'examples') diff --git a/examples/build_gold_image/README b/examples/build_gold_image/README index a5726aa..fd7121b 100644 --- a/examples/build_gold_image/README +++ b/examples/build_gold_image/README @@ -9,7 +9,7 @@ Running ------- This example runs a single-node biruda installing a Centos 6 image -in a chroot. +in a chrooted environment. Start the node with (as root, because we have to be able to 'chroot'): @@ -20,7 +20,7 @@ In another shell start the interactive cli: shell> biruda -i -c biruda.conf biruda> status -coordinator eeepc cpe:/o:arch:arch:rolling i686 1 alive 1428133209 (0) +coordinator eeepc cpe:/o:arch:arch:rolling x86_64 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) @@ -34,13 +34,14 @@ biruda> start worker> example_build_gold Request queued -The messages command shows us the output of the worker: +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: @@ -50,11 +51,11 @@ 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) +coordinator eeepc cpe:/o:arch:arch:rolling x86_64 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 +We get the chrooted environment installed in the directory running the biruda node in 'rhel6-x64': shell> ls rhel6-x64 @@ -62,7 +63,7 @@ shell> ls rhel6-x64 bin boot dev etc home lib media mnt opt proc root sbin selinux srv sys tmp usr var -When the installation finished we can run the other worker which just +When the installation has finished we can run the other worker which just makes a cat of the Redhat version file '/etc/redhat-release': biruda> start @@ -70,3 +71,4 @@ worker> example_run Request queued biruda> messages CentOS release 6.6 (Final) +biruda> diff --git a/examples/build_gold_image/biruda.conf b/examples/build_gold_image/biruda.conf index fb27401..1344f6c 100644 --- a/examples/build_gold_image/biruda.conf +++ b/examples/build_gold_image/biruda.conf @@ -23,8 +23,8 @@ worker example_build_gold execution = direct -# command = "/bin/sh ./build_centos6.sh x86_64" - command = "/bin/sh ./build_centos6.sh i686" + command = "/bin/sh ./build_centos6.sh x86_64" +# command = "/bin/sh ./build_centos6.sh i686" } worker example_run @@ -35,8 +35,8 @@ worker example_run execution = direct -# command = "/bin/chroot rhel6-x64 /bin/bash -c '/bin/cat /etc/redhat-release'" - command = "/bin/chroot rhel6-686 /bin/bash -c '/bin/cat /etc/redhat-release'" + command = "/bin/chroot rhel6-x64 /bin/bash -c '/bin/cat /etc/redhat-release'" +# command = "/bin/chroot rhel6-i686 /bin/bash -c '/bin/cat /etc/redhat-release'" } webserver -- cgit v1.2.3-54-g00ecf