From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QfFls-0008QU-LU for garchives@archives.gentoo.org; Fri, 08 Jul 2011 18:27:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1533621C021; Fri, 8 Jul 2011 18:27:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CAC5021C021 for ; Fri, 8 Jul 2011 18:27:10 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3A51B2AC004 for ; Fri, 8 Jul 2011 18:27:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 943698003D for ; Fri, 8 Jul 2011 18:27:09 +0000 (UTC) From: "Liam McLoughlin" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Liam McLoughlin" Message-ID: <336a7138d7c1cfc8d4db234ed65eb66adb3689d2.hexxeh@gentoo> Subject: [gentoo-commits] proj/gentoaster:master commit in: / X-VCS-Repository: proj/gentoaster X-VCS-Files: README create_image.sh daemon.php X-VCS-Directories: / X-VCS-Committer: hexxeh X-VCS-Committer-Name: Liam McLoughlin X-VCS-Revision: 336a7138d7c1cfc8d4db234ed65eb66adb3689d2 Date: Fri, 8 Jul 2011 18:27:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 11bc2d61faa04a203735e06f3a2d5fda commit: 336a7138d7c1cfc8d4db234ed65eb66adb3689d2 Author: Liam McLoughlin hexxeh net> AuthorDate: Fri Jul 8 18:26:47 2011 +0000 Commit: Liam McLoughlin hexxeh net> CommitDate: Fri Jul 8 18:26:47 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoaster.gi= t;a=3Dcommit;h=3D336a7138 Added a README with some basic installation/running instructions, removed= cachedkernel as default in daemon --- README | 68 +++++++++++++++++++++++++++++++++++++++++++++++++= ++++++ create_image.sh | 2 - daemon.php | 2 +- 3 files changed, 69 insertions(+), 3 deletions(-) diff --git a/README b/README new file mode 100644 index 0000000..3019ba6 --- /dev/null +++ b/README @@ -0,0 +1,68 @@ +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +=3D Gentoaster README =3D +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Foreword +=3D=3D=3D=3D=3D=3D=3D +Right now I'm developing this on Ubuntu/Debian, so the following instruc= tions are for those platforms. This will eventually run on Gentoo, of cou= rse. + + +Prerequisites +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +php5-cli +php5-dev +php5-mysql +gearman-job-server +gearman-php-ext +qemu-utils +extlinux +sfdisk +git + +There might be more, I'll update this list at some point. Install these = as follows: sudo apt-get install php5-cli php5-dev php5-mysql gearman-job= -server qemu-utils extlinux sfdisk git + +The Gearman PHP extension has to be installed manually, as follows: + +wget http://pecl.php.net/get/gearman-0.7.0.tgz +tar xvf gearman-0.7.0.tgz +cd gearman-0.7.0 +phpize +./configure +make +sudo make install + +Add "extension=3Dgearman.so" to your php.ini (probably /etc/php5/cli/php= .ini) + +Installation +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +cd /usr/share +git clone http://git.overlays.gentoo.org/gitroot/proj/gentoaster.git + + +Running +=3D=3D=3D=3D=3D=3D=3D + +There's no init script for the daemon yet, so simply run as follows: + +cd /usr/share/gentoaster +sudo php5 daemon.php + +Note the use of sudo, the daemon MUST be ran as root for it to work, oth= erwise all builds will fail. + +Now that the daemon is running, you can try a build, using the sample cl= ient: + +php5 client.php + +This will give you some output similar to the following: + +Job sent, handle was H:lucidity:3 - hash 6085655f187a8442f82c43ebf98e5fd= b + +You can check on the status of that build by running the following: + +php5 status.php + +Where is the hash returned by client.php (for example 6085= 655f187a8442f82c43ebf98e5fdb) + +If the build is still running, you'll get a progress percentage. If it's= finished, the return code and result message will be shown. diff --git a/create_image.sh b/create_image.sh index d70cda5..b2d264c 100755 --- a/create_image.sh +++ b/create_image.sh @@ -137,7 +137,6 @@ cd rootfs =20 if [ ! -f ${TOOL_RES_PATH}/stage3.tar.bz2 ]; then - echo "Downloading Stage 3" wget ${STAGE3_URL} -O ${TOOL_RES_PATH}/stage3.tar.bz2 &>> ${LOG_FILE} |= | handle_error "Error downloading Stage3 tarball" fi =20 @@ -146,7 +145,6 @@ tar jxf ${TOOL_RES_PATH}/stage3.tar.bz2 &>> ${LOG_FIL= E} || handle_error "Error e =20 if [ ! -f ${TOOL_RES_PATH}/portage-latest.tar.bz2 ]; then - echo "Downloading Portage snapshot" wget ${PORTAGE_URL} -O ${TOOL_RES_PATH}/portage-latest.tar.bz2 &>> ${LO= G_FILE} || handle_error "Error downloading Portage snapshot" fi =20 diff --git a/daemon.php b/daemon.php index a7090f5..8f58076 100644 --- a/daemon.php +++ b/daemon.php @@ -45,7 +45,7 @@ if(is_writable($build_path)) { chdir($build_path); file_put_contents("config.ini", $configuration_string); - $tool_args =3D "--config config.ini --cachedkernel"; + $tool_args =3D "--config config.ini"; $process_handle =3D popen($gentoaster_path."/".$tool_name." ".$tool_= args." 2>&1", "r"); =20 $nonstatus_output =3D "";