Merge lp:~smoser/maas-images/trunk.ppa-proposed-doc into lp:maas-images

Proposed by Scott Moser
Status: Merged
Merged at revision: 381
Proposed branch: lp:~smoser/maas-images/trunk.ppa-proposed-doc
Merge into: lp:maas-images
Diff against target: 44 lines (+34/-0)
1 file modified
README (+34/-0)
To merge this branch: bzr merge lp:~smoser/maas-images/trunk.ppa-proposed-doc
Reviewer Review Type Date Requested Status
Lee Trager (community) Approve
Review via email: mp+331974@code.launchpad.net

Commit message

README: add info about building with ppa or proposed.

This just documents functionality that was previously exposed.
The usage of PPA is specifically nice for testing things.

To post a comment you must log in.
Revision history for this message
Lee Trager (ltrager) wrote :

LGTM thanks for adding some documentation!

review: Approve
382. By Scott Moser

minor updates

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README'
2--- README 2016-01-25 15:52:31 +0000
3+++ README 2017-10-06 20:42:39 +0000
4@@ -67,6 +67,40 @@
5 It will produce output that looks much like the final output, but
6 runs in seconds rather than minutes.
7
8+=== Enabling Proposed ===
9+For development and test purposes using Ubuntu proposed or PPA can
10+be very useful.
11+
12+You can enable the proposed archive by simply editing the config
13+file conf/meph-v3.yaml and specifying '--conf=conf/meph-v3.yaml'.
14+
15+ enable_proposed: True
16+
17+Alternatively, you can simply pass '--proposed' to 'meph2-build' or
18+to 'meph2-cloudimg-sync'.
19+
20+=== Adding PPAs ===
21+You can build images with any number of PPAs added and additional
22+packages installed into the image through the environment variables
23+M2E_ADD_REPOS and M2E_ADD_PACKAGES which are read by
24+maas-cloudimg2ephemeral.
25+
26+M2E_ADD_REPOS is a space-delimited list of repositories to pass
27+to 'add-apt-repository'. M2E_ADD_PACKAGES is a space-delimited
28+list of packages that will be installed into the image, and will
29+thus affect both the image and the initramfs produced from it.
30+
31+For example:
32+
33+ $ rel=xenial ; arch=amd64
34+ $ burl=http://cloud-images.ubuntu.com/
35+ $ file=$rel-server-cloudimg-amd64.squashfs
36+ $ wget $burl/$rel/current/$rel-server-cloudimg-amd64.squashfs -O "$file"
37+
38+ $ export M2E_ADD_REPOS=ppa:smoser/lp1711760
39+ $ meph2-build --config=conf/meph-v3.yaml \
40+ $arch $rel $(date +"%Y%m%d") $file $rel-output.d/
41+
42 == streams management ==
43 Building as above will create out.d that has *metadata* describing
44 everything that is in the source stream and also the things that were

Subscribers

People subscribed via source and target branches