Merge lp:~pwlars/ubuntu-ci-services-itself/image-builder-docs into lp:ubuntu-ci-services-itself

Proposed by Paul Larson
Status: Merged
Approved by: Francis Ginther
Approved revision: 21
Merged at revision: 27
Proposed branch: lp:~pwlars/ubuntu-ci-services-itself/image-builder-docs
Merge into: lp:ubuntu-ci-services-itself
Diff against target: 56 lines (+29/-3)
1 file modified
docs/components/image-builder.rst (+29/-3)
To merge this branch: bzr merge lp:~pwlars/ubuntu-ci-services-itself/image-builder-docs
Reviewer Review Type Date Requested Status
Francis Ginther Approve
Andy Doan (community) Approve
Review via email: mp+198486@code.launchpad.net

Commit message

Document API for the Image Builder component

To post a comment you must log in.
Revision history for this message
Andy Doan (doanac) wrote :

44 + * base_image : {"image_type": IMAGE_TYPE, "url_list": [...],
45 + "series": SERIES}

Nice - you are the first person to bite the bullet and try to think about different types of images!

review: Approve
Revision history for this message
Francis Ginther (fginther) wrote :

Approve.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'docs/components/image-builder.rst'
2--- docs/components/image-builder.rst 2013-12-09 16:33:26 +0000
3+++ docs/components/image-builder.rst 2013-12-11 03:32:47 +0000
4@@ -9,7 +9,8 @@
5 * Adding the requested PPAs and packages
6 * Repacking the image
7
8-*Deployment*
9+Deployment
10+----------
11
12 * Can run as a juju service.
13 * Needs relationship to the Lander and the Data Store.
14@@ -18,7 +19,8 @@
15 Glance credentials
16 * No public access needed.
17
18-*Interactions:*
19+Interactions
20+-------------
21
22 * Lander - Get the PPA to use, list of packages, and URL to the
23 base image. Send back the location of the rebuilt image.
24@@ -26,7 +28,31 @@
25 * Data Store - Push rebuilt image. For cloud images, this will go to
26 Glance rather than Swift.
27
28-*Development Plan:*
29+REST API
30+--------
31+
32+status
33+~~~~~~
34+Return the current status of the image builder. Not needed by any other
35+components, but useful for debugging.
36+
37+ curl --dump-header - http://localhost:8000/api/v1/imagebuilder/status
38+
39+build_image
40+~~~~~~~~~~~
41+Build an image including the requested PPAs and packages.
42+
43+parameters:
44+ * base_image : {"image_type": IMAGE_TYPE, "url_list": [...],
45+ "series": SERIES}
46+ * ppa_list : [...]
47+ * package_list : [...]
48+ * progress_trigger : URL
49+
50+ curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"base_image": {"image_type": "cloud", "url_list": ["http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img"], "series": "trusty"}, "ppa_list": ["ppa:project/ppaname"], "package_list": ["libfoo", "baz-utils"]}' http://localhost:8000/api/v1/build_image/
51+
52+Development Plan
53+----------------
54
55 * Define APIs.
56 * Prototype the process.

Subscribers

People subscribed via source and target branches