@@ -155,6 +155,52 @@ After the installation step has been completed, you need to create the Rally dat
155
155
And finally you are able to :ref: `use Rally <usage >`!
156
156
157
157
158
+ Rally & Docker
159
+ ^^^^^^^^^^^^^^
160
+
161
+ There is an image on dokerhub with rally installed. To pull this image just execute:
162
+
163
+ .. code-block: none
164
+
165
+ docker pull rallyforge/rally
166
+
167
+ Or you may want to build rally image from source:
168
+
169
+ .. code-block: none
170
+
171
+ # first cd to rally source root dir
172
+ docker build -t myrally .
173
+
174
+ Since rally stores local settings in user's home dir and the database in /var/lib/rally/database,
175
+ you may want to keep this directories outside of container. This may be done by the following steps:
176
+
177
+ .. code-block: none
178
+
179
+ cd ~ #go to your home directory
180
+ mkdir rally_home rally_db
181
+ docker run -t -i -v ~/rally_home:/home/rally -v ~/rally_db:/var/lib/rally/database rallyforge/rally
182
+
183
+ You may want to save last command as an alias:
184
+
185
+ .. code-block: none
186
+
187
+ echo 'alias dock_rally="docker run -t -i -v ~/rally_home:/home/rally -v ~/rally_db:/var/lib/rally/database rallyforge/rally"' >> ~.bashrc
188
+
189
+ After executing ``dock_rally `` alias, or ``docker run `` you got bash running inside container with
190
+ rally installed. You may do anytnig with rally, but you need to create db first:
191
+
192
+ .. code-block: none
193
+
194
+ user@box:~/rally$ dock_rally
195
+ rally@1cc98e0b5941:~$ rally-manage db recreate
196
+ rally@1cc98e0b5941:~$ rally deployment list
197
+ There are no deployments. To create a new deployment, use:
198
+ rally deployment create
199
+ rally@1cc98e0b5941:~$
200
+
201
+ More about docker: `https://www.docker.com/ <https://www.docker.com/ >`_
202
+
203
+
158
204
Running Rally's Unit Tests
159
205
--------------------------
160
206
0 commit comments