Changes between Version 3 and Version 4 of SettingUpABuildServer
- Timestamp:
- 10/30/12 11:49:15 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SettingUpABuildServer
v3 v4 1 1. Install either Debian testing (or stable, if it's new enough, but 2 see the note about sbuild below) or the latest Ubuntu release. 3 The build server must be installed with free space in an LVM 4 volume group. The build chroots consume 4GB each. 1 = Setting Up A Build Server = 5 2 6 As of Oct 2012, we're using Precise, and we should prefer an Ubuntu LTS to Debian testing or unstable or experimental, per Ops' preferences.3 *Note:* Every effort should be made to ensure that we use stock versions of the build tools wherever possible. Where we can't, ensure that detailed build instructions, as well as a list of patches we apply, are available. As of October 2012, we use stock versions of sbuild and schroot. 7 4 8 2. Install debathena-login as per the the instructions in 9 http://debathena.mit.edu/install. 5 1. The build server should ideally be an Ubuntu LTS (as of Oct 2012, Precise). Ops prefers Ubuntu to Debian testing/unstable/experimental because they already maintain Ubuntu LTS servers (the dialups). It should have free space in an LVM volume group (ideally named "builder", but configurable in most cases). The build chroots consume 4GB each, and there are 2 architectures for each distro we support. As of Oct 2012, a 50G LVM is sufficient, but this may change in the future. 10 6 7 2. Install debathena-login, as well as debathena-debian-dev. 8 * If you install debathena manually (please don't), ensure that you add the apt key, either via the debathena-archive-keyring package, or with `apt-key add /afs/sipb.mit.edu/project/debathena/apt/debathena-archive-keyring.asc`. If you're very paranoid, you can run apt-key export on the old build server and then apt-key add on the new one. 11 9 10 3. Install the packages listed in scripts/build-server/packages. debathena-debian-dev should have taken care of most of these. 12 11 13 add the apt-key (though 14 3. apt-key add 15 /afs/sipb.mit.edu/project/debathena/apt/debathena-archive-keyring.asc 12 4. If we're still using a unioning filesystem, ensure that the necessary kernel modules are available. See above about using stock versions wherever possible. As of Oct 2012, the filesystems we use (overlayfs) and those we used in the past (aufs) are part of the stock kernel. 16 13 17 For maximum paranoia, run apt-key export on the old build server and then apt-key add on the new one.14 5. Append to /etc/approx/approx.conf the contents of `scripts/build-server/approx.conf.tail`. Restart approx (as of precise, approx is run from inetd). 18 15 19 4. Install the packages listed in scripts/build-server/packages20 (using "aptitude install").21 22 Or apt-get install, until aptitude becomes less stupid about Multiarch support.23 24 Note that currently the build system uses the latest version of25 sbuild, so if you have not installed Debian testing, you'll need26 to set up apt pinning to grab sbuild from there. See the27 apt_preferences man page. You'll also need to grab schroot from28 Debian experimental.29 30 Also, WTF, why are these not part of debathena-build-depends or debathena-debian-dev or whatever?31 32 5. Install the aufs-modules-2.6-amd64 package.33 34 No, we now use overlayfs. Also, both overlayfs and aufs are in the standard kernel packages.35 36 37 6. Append to /etc/approx/approx.conf the contents of38 scripts/build-server/approx.conf.tail.39 16 Run: /etc/init.d/approx restart 40 17