CDImageSetup

Differences between revisions 5 and 12 (spanning 7 versions)
Revision 5 as of 2013-08-07 23:31:17
Size: 1503
Editor: 82-69-40-219
Comment: run test suite
Revision 12 as of 2023-08-30 12:51:14
Size: 1447
Editor: sil2100
Comment: ancientminister is ancient and no longer here
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Release team members often need to work on the code which builds our CD images. While there are public branches for this on Launchpad, for mostly historical reasons some of the master copies of these are actually hosted on the CD image build machine, and are readable/writable directly by Canonical staff with access to that machine (currently `nusakan`). Release team members often need to work on the code which builds our CD images. While there are public branches for this on Launchpad, for mostly historical reasons some of the master copies of these are actually hosted on the CD image build machine, and are readable/writable directly by Canonical staff with access to that machine (currently `cdimage-master`).
Line 3: Line 3:
Please do not commit directly on `nusakan`. Although our processes aren't the best, it's intended to be a production machine, not a development machine. Please check out branches on your normal development system and commit there, and then deploy those commits to `nusakan`. Please do not commit directly on `cdimage-master`. Although our processes aren't the best, it's intended to be a production machine, not a development machine. Please check out branches on your normal development system and commit there, and then deploy those commits to `cdimage-master`.
Line 5: Line 5:
Setup (replace `nusakan` in the following with `nusakan.canonical.com` if that's how you ssh to that machine): Setup (replace `cdimage-master` in the following with `cdimage-master.internal` if that's how you ssh to that machine):
Line 8: Line 8:
bzr checkout lp:ubuntu-cdimage cdimage
bzr checkout bzr+ssh://nusakan/srv/cdimage.ubuntu.com/bzr/debian-cd
bzr checkou
t bzr+ssh://nusakan/srv/cdimage.ubuntu.com/bzr/private/production
git clone lp:ubuntu-cdimage cdimage
git clone lp:~ubuntu-cdimage/debian-cd/+git/ubuntu debian-cd
gi
t clone git+ssh://cdimage-master/srv/cdimage.ubuntu.com/git/private/production
Line 13: Line 13:
You can now `bzr update` in each of those branches to update, and `bzr commit` to commit. (Since this is a bound branch, `bzr` will automatically refuse to commit if you aren't up to date, and there's no need for a separate push step.) You can now `git pull` in each of those branches to update, `git commit` to commit, and `git push` to push changes to the server.
Line 23: Line 23:
To deploy, as `cdimage@nusakan`: To deploy, as `cdimage@cdimage-master`:
Line 27: Line 27:
bzr up ~/cdimage
bzr
pull -d ~/cdimage/debian-cd
bzr
pull -d ~/cdimage/production
(cd ~/cdimage && git pull)
(c
d ~/cdimage/debian-cd && git pull)
(c
d ~/cdimage/production && git pull)

Release team members often need to work on the code which builds our CD images. While there are public branches for this on Launchpad, for mostly historical reasons some of the master copies of these are actually hosted on the CD image build machine, and are readable/writable directly by Canonical staff with access to that machine (currently cdimage-master).

Please do not commit directly on cdimage-master. Although our processes aren't the best, it's intended to be a production machine, not a development machine. Please check out branches on your normal development system and commit there, and then deploy those commits to cdimage-master.

Setup (replace cdimage-master in the following with cdimage-master.internal if that's how you ssh to that machine):

git clone lp:ubuntu-cdimage cdimage
git clone lp:~ubuntu-cdimage/debian-cd/+git/ubuntu debian-cd
git clone git+ssh://cdimage-master/srv/cdimage.ubuntu.com/git/private/production

You can now git pull in each of those branches to update, git commit to commit, and git push to push changes to the server.

Make sure to run the tests before committing to lp:ubuntu-cdimage:

./run-tests

There are some test dependencies, documented in that script.

To deploy, as cdimage@cdimage-master:

sudo -u cdimage -i
(cd ~/cdimage && git pull)
(cd ~/cdimage/debian-cd && git pull)
(cd ~/cdimage/production && git pull)

ReleaseTeam/CDImageSetup (last edited 2023-08-30 12:51:14 by sil2100)