~ubuntu-branches/ubuntu/vivid/simplestreams/vivid-updates

« back to all changes in this revision

Viewing changes to README.txt

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2013-06-28 16:23:11 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20130628162311-zit9qzwvhsexcarl
Tags: 0.1.0~bzr266-0ubuntu1
* New upstream snapshot.
  * include sstream-query, improved sstream-sync
  * supports python3

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
= Mirroring ==
14
14
To mirror one source (http or file) to a local directory, see tools/do-mirror.
15
15
For example, to mirror the 'foocloud' example content, do:
16
 
   ./tools/tenv do-mirror examples/foocloud/ my.out streams/v1/index.js
 
16
   ./tools/tenv do-mirror examples/foocloud/ my.out streams/v1/index.json
17
17
 
18
18
That will create a full mirror in my.out/.
19
19
 
30
30
For an example, the following runs the debug hook against the example 'foocloud'
31
31
data:
32
32
   ./tools/tenv sstream-sync --hook=hook-debug \
33
 
       --path=streams/v1/index.js examples/foocloud/
 
33
       --path=streams/v1/index.json examples/foocloud/
34
34
 
35
35
You can also run it with cloud-images.ubuntu.com data like this:
36
36
 
37
37
  ./tools/tenv sstream-sync \
38
38
     --item-skip-download --hook=./tools/hook-debug \
39
 
     --path=streams/v1/index.sjs http://cloud-images.ubuntu.com/eightprotons/
 
39
     --path=streams/v1/index.sjson http://cloud-images.ubuntu.com/releases/
40
40
 
41
41
The 'hook-debug' program simply outputs the data it is invoked with.  It does
42
42
not actually mirror anything.
49
49
./tools/sstream-mirror-glance --region=RegionOne \
50
50
   --cloud-name=localcloud "--content-id=localcloud.%(region)s:partners" \
51
51
   --output-swift=published/ --max=1 --name-prefix="ubuntu/" \
52
 
   http://cloud-images.ubuntu.com/eightprotons/ streams/v1/index.js
 
52
   http://cloud-images.ubuntu.com/releases/ streams/v1/index.json