/[drupal]/contributions/modules/autopilot/README.txt
ViewVC logotype

Contents of /contributions/modules/autopilot/README.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sat Aug 30 14:02:58 2008 UTC (14 months, 3 weeks ago) by souvent22
Branch: MAIN
CVS Tags: DRUPAL-5--2-0-BETA4, DRUPAL-5--2-0-BETA1, DRUPAL-5--2-0-BETA3, DRUPAL-5--2-0-BETA2, DRUPAL-5--1-4, DRUPAL-5--1-3, HEAD
Branch point for: DRUPAL-5--2
File MIME type: text/plain
- Updating to the new community version of AP
1 AutoPilot 2.0
2 =============
3
4 AutoPilot is a build and deployment management system for Drupal. Using AutoPilot, you can easily migrate code and configuration changes from development environments to QA and production environments. This document will help you get started with AutoPilot.
5
6 CONTENTS OF THIS FILE
7 ---------------------
8
9 * Requirements
10 * Optional Tasks
11 * Pear Version Control Installation
12 * Installation
13 * Basic Setup
14
15 REQUIREMENTS
16 ------------
17
18 AutoPilot requires Drupal 5.x and PHP 5 (5.2.0 or greater) (http://www.php.net/).
19
20 The Pear VersionControl_SVN is also required to use the SVN repository.
21
22 It also requires the PHP SSH2 library (http://pecl.php.net/package/ssh2). This
23 will probably have to be compiled from source as it is not a standard library.
24
25 The PHP mcrypt library is also required (http://php.net/mcrypt).
26
27 For more detailed information on the php ssh2 library, see the Workhabit Blog post (TBD)
28 on the Workhabit site.
29
30 PEAR VERSIONCONTROL INSTALLATION
31 --------------------------------
32
33 1. INSTALL PEAR
34
35 Make sure that PEAR is installed on your system (http://pear.net).
36
37 2. INSTALL VERSIONCONTROL
38
39 Install the VersionControl_SVN pear module. You may have to use the "-alpha" mod.
40
41 pear install VersionControl_SVN-alpha
42
43
44 INSTALLATION
45 ------------
46
47 1. DOWNLOAD DRUPAL
48
49 Download Drupal (http://www.drupal.org) and install Drupal as you normally would.
50
51 2. DOWNLOAD AutoPilot AND DEPENDENCIES
52
53 You will need to download AutoPilot from the Workhabit repositories.
54
55 You will also need to download the following dependent modules from the Workhabit
56 repository:
57 - Ponto Version Control (ponto_vc)
58 - Ponto KeyChains (ponto_keychains)
59 - Subversion implementation for Ponto Version Control (svn)
60
61 3. ENABLE THE MODULES
62 Enable the following modules:
63 - AutoPilot
64 - AutoPilot Feature Sets
65 - Ponto Keychains
66 - Ponto VC
67 - SVN for Ponto VC
68
69 BASIC SETUP
70 -----------
71
72 After AutoPilot and it's modules are installed, there are some basic setup procedures that one should implement.
73
74 1. INITIALIZE THE KEYCHAIN KEY
75
76 Navigate to the settings page for the Ponto Keychain (admin/settings/keychains).
77 Click "save" to set that as the crypt key to use.
78
79 2. CREATE A KEYCHAIN(S)
80
81 A Keychain is the way one authenticates to various resources. With that said, it
82 follows that it is a very important building block of the system. To start off
83 it is recommended that one creates keychains to authenticate to the code repository
84 and to the environment boxes where one will be building their sites to, as you will
85 need these later.
86
87 When you create them be SURE to create SYSTEM keychain types.
88
89 3. SETUP A BASIC REPOSITORY
90
91 Navigate to the ponto_vc settings to setup a code repository to use (admin/ponto_vc).
92 Use the "Add Repository" section to setup a repository.
93
94 You may want to click "update logs" a few times to go ahead and get the logs read in
95 if your cron has not run yet. It should be noted that the logs are refreshed only on
96 cron runs unless they are manually triggered using this page.
97
98 4. CREATE AN AUTOPILOT
99
100 Now we can create an AutoPilot (node/add/autopilot). Just give it a name and description.
101 Something like:
102
103 Title: My Quotes Project
104 Description: This is my personal project. This AutoPilot houses all the
105 buildplans and information for my "Quotes" project.
106
107 5. CREATE A WEB TARGET
108
109 One we have our AutoPilot, we can start to create some items that the AutoPilot (AP)
110 will need to do its job. One of these is a Web Target. This is basically the place
111 that your web pages are served from and/or your web server (most likely just a linux box).
112
113 - Click the "Setup" tab while inside your AutoPilot.
114 - Click "Targets"
115 - Click "Add target"
116 - Select "Web/HTTP Target Server" from the drop down
117 - Enter in the necessary information.
118
119 6. CREATE A MYSQL TARGET
120
121 Now we need to create a MySQL target. This is where the database resides.
122 - Click the "Setup" tab while inside your AutoPilot.
123 - Click "Targets"
124 - Click "Add target"
125 - Select "MySQL Target Server" from the drop down (Postgres coming soon)
126 - Enter in the necessary information.
127
128 7. CREATE A BUILD
129
130 A "build" is basically our code bundle. A build is composed of:
131 1) Repository root path
132 2) Path in the repository to the code.
133
134 So if your repository is:
135 http://svn.example.com/myproject
136
137 Then your "build" for your code maybe:
138 /html ==> (which is: http://svn.example.com/myproject/html)
139
140 And your SQL "build" maybe:
141 /sql ==> (which is: http://svn.example.com/myproject/sql)
142
143 1) Click "Setup"
144 2) Click "Builds"
145 3) Example the "Add New Build"
146 4) Select your repository from the drop down
147 5) Select the path to your code in the "Path" section
148 6) Give it a title
149 7) Select the type of build (code or SQL)
150 8) Click "Add Build" ( This adds it as a general "build" you can select and add
151 to different project/AP's.)
152 9) Expand the "Add Existing Build" section
153 10) Select the build your just created.
154 11) Click "Add Build to AutoPilot"
155
156 8. CREATE A BUILDPLAN
157
158 Now we can create a Build Plan. This is what actually creates our site. It is the
159 collection of targets and builds that makes our build plan.
160
161 1) Click "Create new Buildplan" while inside your AP
162 2) Give the Buildplan a title (HEAD - Quotes Project)
163 3) Give a description.
164 4) Select a "Label"
165
166 Build Matrix
167
168 You will be presented with a "Build Matrix".
169 The rows on the table represent an "Endpoint", like a webserver
170 or database server.
171
172 The columns of the table represent the "builds" or "codes" and where that
173 should go.
174 So if you are reading the table from left to right, the first row would
175 read something like:
176
177 "For my webserver (col. 1), I want my trunk code (col 2) to go to my
178 development server (col 3).".
179
180 You will notice in the drop downs that you can select any of the targets
181 and/or builds that you have created.
182
183 5) Click "Create Build Plan"
184
185 9. RUN A BUILDPLAN
186
187 Select the build plan you have just created by clicking "view" on the "Buildplan"
188 section of your AP.
189
190 From there, select what repository version you wish to use, and just click
191 "Run Build".

  ViewVC Help
Powered by ViewVC 1.1.2