CDImageSetup

Differences between revisions 10 and 11
Revision 10 as of 2022-11-16 20:06:17
Size: 1452
Editor: vorlon
Comment:
Revision 11 as of 2022-11-17 01:21:06
Size: 1454
Editor: vorlon
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
bzr checkout bzr+ssh://ancientminister/srv/cdimage.ubuntu.com/bzr/private/production git clone git+ssh://ancientminister/srv/cdimage.ubuntu.com/git/private/production
Line 29: Line 29:
bzr pull -d ~/cdimage/production (cd ~/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 ancientminister).

Please do not commit directly on ancientminister. 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 ancientminister.

Setup (replace ancientminister in the following with ancientminister.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://ancientminister/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@ancientminister:

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)