ReferencePlatforms/UnitTestOnly/Fedora: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with '=Install OS= Use [http://mirrors.kernel.org/fedora/releases/12/Fedora/i386/iso/Fedora-12-i386-netinst.iso fedora 12 i386 net install] to install a base os. I did the install wit…')
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Install OS=
=Install OS=
Use [http://mirrors.kernel.org/fedora/releases/12/Fedora/i386/iso/Fedora-12-i386-netinst.iso fedora 12 i386 net install] to install a base os.  I did the install with 256mb of memory installed and it gave me a very basic system install.  I am not sure if this is the same installed state you would have if there was > 256mb of ram.
Use [http://mirrors.kernel.org/fedora/releases/12/Fedora/i386/iso/Fedora-12-i386-netinst.iso fedora 12 i386 net install] to install a base os.  I did the install with 256mb of memory installed and it gave me a very basic system install.  I am not sure if this is the same installed state you would have if there was > 256mb of ram.
=Create cltbld user=
As root:
useradd cltbld
passwd cltbld


=Install Packages=
=Install Packages=
We need some packages to get things running.  The firefox install is to make sure all the runtime libraries are present.
We need some packages to get things running.  The firefox install is to make sure all the runtime libraries are present.
  yum install -y openssh-clients Xvfb firefox wget mercurial
  yum install -y openssh-clients Xvfb firefox wget mercurial python-devel metacity dejavu-s*
 
=Install Mozilla Packages=
cd ~
hg clone http://hg.mozilla.org/build/buildbot
cd buildbot
python setup.py build
su -c 'python setup.py install'
 
=Create Slave=
su -c 'mkdir /builds'
su -c 'chown cltbld:cltbld /builds'
cd /builds
buildbot create-slave slave 10.250.48.137:9989 <host> <password>
buildbot start slave
 
=Get CPU info=
uname -a > /builds/slave/info/host
cat /proc/cpuinfo >> /builds/slave/info/host


=Autostart buildbot=
=Autostart buildbot=
Line 11: Line 34:
if [ ! -f /builds/slave/twistd.pid ] ; then
if [ ! -f /builds/slave/twistd.pid ] ; then
   echo Starting buildbot
   echo Starting buildbot
   /usr/local/bin/buildbot start /builds/slave/
   /usr/bin/buildbot start /builds/slave/
fi</pre>
fi</pre>
and make it executable <code>chmod +x /builds/slave/start.sh</code>
and make it executable <code>chmod +x /builds/slave/start.sh</code>
Line 28: Line 51:
*/5 * * * * /builds/slave/start.sh
*/5 * * * * /builds/slave/start.sh
</pre>
</pre>
=Disable SELinux=
su -
vim /etc/selinux
and change
SELINUX=enforcing
to
SELINUX=disabled

Latest revision as of 16:07, 25 June 2010

Install OS

Use fedora 12 i386 net install to install a base os. I did the install with 256mb of memory installed and it gave me a very basic system install. I am not sure if this is the same installed state you would have if there was > 256mb of ram.

Create cltbld user

As root:

useradd cltbld
passwd cltbld

Install Packages

We need some packages to get things running. The firefox install is to make sure all the runtime libraries are present.

yum install -y openssh-clients Xvfb firefox wget mercurial python-devel metacity dejavu-s*

Install Mozilla Packages

cd ~
hg clone http://hg.mozilla.org/build/buildbot
cd buildbot
python setup.py build
su -c 'python setup.py install'

Create Slave

su -c 'mkdir /builds'
su -c 'chown cltbld:cltbld /builds'
cd /builds
buildbot create-slave slave 10.250.48.137:9989 <host> <password>
buildbot start slave

Get CPU info

uname -a > /builds/slave/info/host
cat /proc/cpuinfo >> /builds/slave/info/host

Autostart buildbot

Put this script into /builds/slave/start.sh

#!/bin/sh
if [ ! -f /builds/slave/twistd.pid ] ; then
  echo Starting buildbot
  /usr/bin/buildbot start /builds/slave/
fi

and make it executable chmod +x /builds/slave/start.sh

Set up Xvfb and start.sh

# Make sure Xvfb is running on :2
@reboot     ps -C Xvfb | grep -q Xvfb || exec Xvfb :2 -screen 0 1280x1024x24 &
*/5 * * * * ps -C Xvfb | grep -q Xvfb || exec Xvfb :2 -screen 0 1280x1024x24 &

# Make sure metacity is running on :2
@reboot     ps -C metacity -f | grep -q :2 || exec metacity --display :2 --replace &
*/5 * * * * ps -C metacity -f | grep -q :2 || exec metacity --display :2 --replace &

# Make sure buildbot is always running
*/5 * * * * /builds/slave/start.sh

Disable SELinux

su -
vim /etc/selinux

and change

SELINUX=enforcing

to

SELINUX=disabled