Merge lp:~letterj/swift/addpackagedoc into lp:~hudson-openstack/swift/trunk

Proposed by Jay Payne
Status: Merged
Approved by: gholt
Approved revision: 57
Merged at revision: 57
Proposed branch: lp:~letterj/swift/addpackagedoc
Merge into: lp:~hudson-openstack/swift/trunk
Diff against target: 158 lines (+144/-0)
2 files modified
doc/source/debian_package_guide.rst (+143/-0)
doc/source/index.rst (+1/-0)
To merge this branch: bzr merge lp:~letterj/swift/addpackagedoc
Reviewer Review Type Date Requested Status
gholt (community) Approve
Review via email: mp+33044@code.launchpad.net

Commit message

Added howto doc about Debian packaging

Description of the change

Docs need to be added to the swift branch

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

Thanks J!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'doc/source/debian_package_guide.rst'
2--- doc/source/debian_package_guide.rst 1970-01-01 00:00:00 +0000
3+++ doc/source/debian_package_guide.rst 2010-08-18 19:29:39 +0000
4@@ -0,0 +1,143 @@
5+=======================================================
6+Building and Deploying Custom Debian packages for Swift
7+=======================================================
8+
9+This documents setting up the prerequisites, downloading the code and building
10+Debian packages necessary to deploy the various components of the swift
11+project code. These steps were done on a server running
12+*Ubuntu 10.04 LTS (Lucid Lynx)*, but should give a good idea what to do on
13+other distros.
14+
15+------------------------------------------
16+Instructions for Deploying Swift-Core PPAs
17+------------------------------------------
18+
19+These packages are built from the current development branch "trunk"
20+
21+* Add swift-core/ppa repository. As root:::
22+
23+ apt-get install python-software-properties
24+ add-apt-repository ppa:swift-core/trunk
25+ apt-get update
26+
27+* Install the swift base packages::
28+
29+ apt-get install python-swift
30+ apt-get install swift
31+
32+* Install the swift packages depending on your implementations::
33+
34+ apt-get install swift-auth
35+ apt-get install swift-proxy
36+ apt-get install swift-account
37+ apt-get install swift-container
38+ apt-get install swift-object
39+
40+* Copy sample configuration files to `/etc/swift` directory
41+ and rename them to `*.conf files`::
42+
43+ cp -a /usr/share/doc/swift/*.conf-sample /etc/swift/
44+ cd /etc/swift ; rename 's/\-sample$//' *.conf-sample
45+
46+* For servers running the swift-account, swift-container or
47+ swift-object the rsync.conf file should be moved to
48+ the `/etc` directory::
49+
50+ cd /etc/swift
51+ mv rsyncd.conf /etc
52+
53+* Modify configuration files to meet your implementation requirements
54+ the defaults have been not been geared to a multi-server implementation.
55+
56+---------------------------------------------------
57+Instructions for Building Debian Packages for Swift
58+---------------------------------------------------
59+
60+* Add swift-core/ppa repository and install prerequisites. As root::
61+
62+ apt-get install python-software-properties
63+ add-apt-repository ppa:swift-core/ppa
64+ apt-get update
65+ apt-get install curl gcc bzr python-configobj python-coverage python-dev
66+ python-nose python-setuptools python-simplejson python-xattr
67+ python-webob python-eventlet python-greenlet debhelper python-sphinx
68+ python-all python-openssl
69+
70+* As you
71+
72+ #. Tell bzr who you are::
73+
74+ bzr whoami '<Your Name> <youremail@.example.com>'
75+ bzr lp-login <your launchpad id>
76+
77+ #. Create a local bazaar repository for dev/testing::
78+
79+ bzr init-repo swift
80+
81+ #. Pull down the swift/debian files::
82+
83+ cd swift
84+ bzr branch lp:~swift-core/swift/debian
85+
86+ #. If you want to merge in a branch::
87+
88+ cd debian
89+ bzr merge lp:<path-to-branch>
90+
91+ #. Create the debian packages::
92+
93+ cd debian
94+ bzr bd --builder='debuild -uc -us'
95+
96+ #. Upload packages to your target servers::
97+
98+ cd ..
99+ scp *.deb root@<swift-target-server>:~/.
100+
101+
102+----------------------------------------------------
103+Instructions for Deploying Debian Packages for Swift
104+----------------------------------------------------
105+
106+* On a Target Server, As root:
107+
108+ #. Setup the swift ppa::
109+
110+ add-apt-repository ppa:swift-core/ppa
111+ apt-get update
112+
113+ #. Install dependencies::
114+
115+ apt-get install rsync python-openssl python-setuptools python-webob
116+ python-simplejson python-xattr python-greenlet python-eventlet
117+
118+ #. Install base packages::
119+
120+ dpkg -i python-swift_<version>_all.deb
121+ dpkg -i swift_<version>_all.deb
122+
123+ #. Install packages depending on your implementation::
124+
125+ dpkg -i swift-auth_<version>_all.deb
126+ dpkg -i swift-proxy_<version>_all.deb
127+ dpkg -i swift-account_<version>_all.deb
128+ dpkg -i swift-container_<version>_all.deb
129+ dpkg -i swift-object_<version>_all.deb
130+ dpkg -i swift-doc_<version>_all.deb
131+
132+ #. Copy sample configuration files to `/etc/swift` directory
133+ and rename them to `*.conf files`::
134+
135+ cp -a /usr/share/doc/swift/*.conf-sample /etc/swift/
136+ cd /etc/swift
137+ rename 's/\-sample$//' *.conf-sample
138+
139+ #. For servers running the swift-account, swift-container or
140+ swift-object the rsync.conf file should be moved to
141+ the `/etc` directory::
142+
143+ cd /etc/swift/
144+ mv rsyncd.conf /etc
145+
146+ #. Modify configuration files to meet your implementation requirements
147+ the defaults have been not been geared to a multi-server implementation.
148
149=== modified file 'doc/source/index.rst'
150--- doc/source/index.rst 2010-08-14 16:46:32 +0000
151+++ doc/source/index.rst 2010-08-18 19:29:39 +0000
152@@ -40,6 +40,7 @@
153
154 deployment_guide
155 admin_guide
156+ debian_package_guide
157
158 End User Guides:
159