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
=== modified file 'docs/components/image-builder.rst'
--- docs/components/image-builder.rst 2013-12-09 16:33:26 +0000
+++ docs/components/image-builder.rst 2013-12-11 03:32:47 +0000
@@ -9,7 +9,8 @@
9 * Adding the requested PPAs and packages9 * Adding the requested PPAs and packages
10 * Repacking the image10 * Repacking the image
1111
12*Deployment*12Deployment
13----------
1314
14* Can run as a juju service.15* Can run as a juju service.
15* Needs relationship to the Lander and the Data Store.16* Needs relationship to the Lander and the Data Store.
@@ -18,7 +19,8 @@
18 Glance credentials19 Glance credentials
19* No public access needed.20* No public access needed.
2021
21*Interactions:*22Interactions
23-------------
2224
23* Lander - Get the PPA to use, list of packages, and URL to the25* Lander - Get the PPA to use, list of packages, and URL to the
24 base image. Send back the location of the rebuilt image.26 base image. Send back the location of the rebuilt image.
@@ -26,7 +28,31 @@
26* Data Store - Push rebuilt image. For cloud images, this will go to28* Data Store - Push rebuilt image. For cloud images, this will go to
27 Glance rather than Swift.29 Glance rather than Swift.
2830
29*Development Plan:*31REST API
32--------
33
34status
35~~~~~~
36Return the current status of the image builder. Not needed by any other
37components, but useful for debugging.
38
39 curl --dump-header - http://localhost:8000/api/v1/imagebuilder/status
40
41build_image
42~~~~~~~~~~~
43Build an image including the requested PPAs and packages.
44
45parameters:
46 * base_image : {"image_type": IMAGE_TYPE, "url_list": [...],
47 "series": SERIES}
48 * ppa_list : [...]
49 * package_list : [...]
50 * progress_trigger : URL
51
52 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/
53
54Development Plan
55----------------
3056
31* Define APIs.57* Define APIs.
32* Prototype the process.58* Prototype the process.

Subscribers

People subscribed via source and target branches