Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: third_party/gsutil/cloudreader/README.google

Issue 12042069: Scripts to download files from google storage based on sha1 sums (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Removed gsutil/tests and gsutil/docs Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 This directory contains an example app ("cloudreader") that runs in the
2 Python version of the Google App Engine, accessing Google storage via the
3 Google-modified version of the boto open source Python library.
4
5 To install and try the cloudreader app, take the following steps:
6
7 1. The current code assumes you are already familiar with Google
8 App Engine, and have it installed. If that's not true, start at
9 http://code.google.com/appengine/
10
11 In the remainder of these instructions, we assume you have gsutil unpacked
12 in /usr/local/gsutil, and Google App Engine installed at /usr/local/google_appen gine
13
14 2. Copy the boto and cloudreader code into the google_appengine directory:
15 % cp -pr /usr/local/gsutil/cloudreader /usr/local/google_appengine
16 % cp -pr /usr/local/gsutil/boto/boto /usr/local/google_appengine/cloudreade r
17
18 3. Edit cloudreader/boto.cfg to contain the keys you received from Google
19 (and Amazon, if you also want to use those keys):
20 % vim /usr/local/google_appengine/cloudreader/boto.cfg
21 (or use your favorite text editor)
22
23 FYI, the cloudreader app reads a publicly readable object
24 (gs://pub/shakespeare/rose.txt), but that the boto library requires
25 credentials for all accesses, even to public objects.
26
27 4. Try running it:
28 % cd /usr/local/google_appengine
29 % ./dev_appserver.py cloudreader
30 and then open your browser to http://localhost:8080
31
32 If it works, you should see a short Shakespeare quote.
33
34 5. A note about key security: Be careful not to put
35 the boto.cfg file in any directory that app.yaml defines as serving
36 static content. The example (cloudreader) app is correctly configured in
37 this regard, and is important to make sure your configuration continues
38 to enforce this constraint when you incorporate the code and config file
39 into your real app.
40
41 For good measure, whenever you change configurations you should try
42 opening your web browser to http://localhost:8080/boto.cfg (or whatever
43 path your app.yaml would map to where your boto.cfg file is located).
44 This should *fail* to open your boto.cfg file!
45
46 6. At this point you can upload your app to Google
47 infrastructure, following the instructions at
48 http://code.google.com/appengine/docs/python/gettingstarted/uploading.html
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698