Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
storagedriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a501415f
authored
Nov 11, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: addding install documents
parent
7e45262c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
0 deletions
+62
-0
docs/install.rst
+62
-0
No files found.
docs/install.rst
0 → 100644
View file @
a501415f
Installation of a storage machine
=================================
.. highlight:: bash
Setting up required software
----------------------------
Update the package lists, and install the required system software::
$ sudo apt-get update
$ sudo apt-get install --yes qemu-utils virtualenvwrapper git \
python-pip
Setting up NFS share
--------------------
Install the nfs-server package::
$ sudo apt-get install nfs-server
Create the datastore directory::
$ mkdir /datastore
$ sudo chown cloud:cloud /datastore
Edit NFS exports::
$ vim /etc/exports
Restert the nfs service::
$ sudo /etc/init.d/nfs-kernel-server restart
Setting up Storage itself
-------------------------
Clone the git repository::
$ git clone git@git.ik.bme.hu:circle/storagedriver.git storagedriver
Set up *virtualenvwrapper* and the *virtual Python environment* for the
project::
$ source /etc/bash_completion.d/virtualenvwrapper
$ mkvirtualenv storage
Set up default Storage configuration and activate the virtual environment::
$ cat >>/home/cloud/.virtualenvs/storage/bin/postactivate <<END
export AMQP_URI='amqp://cloud:password@host:5672/circle'
END
$ workon circle
$ cd ~/storagedriver
Install the required Python libraries to the virtual environment::
$ pip install -r requirements/local.txt
Copy the upstart scripts for celery services::
$ sudo cp miscellaneous/storagecelery.conf /etc/init/
Start celery daemons::
$ sudo start storagecelery
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment