Skip to content
This repository has been archived by the owner on May 26, 2018. It is now read-only.

Commit

Permalink
Update installation_guide.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Oodnadatta committed Apr 29, 2017
1 parent 89c1c8d commit a5f351a
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions docs/installation_guide.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Documentation in progress

## Run Pirus in a container (optional)

### Run containers inside containers
Expand All @@ -24,7 +26,7 @@ If you have stopped a container either manually or by stopping the host computer
## Run Pirus

You can run Pirus on a fresh install of Ubuntu Xenial either on bare metal or in a container (see above).
The following commands starting with a # have to be run as root.
The following commands starting with a `#` have to be run as root.

Install Pirus dependencies:

Expand All @@ -35,7 +37,16 @@ Setup lxd for Pirus containers (FIXME):

# newgrp lxd
# lxd init


If you have choosen to run Pirus in a LXC contrainer, you have to configure it with `lxd init`:
* Name of the storage backend to use (dir or zfs): dir
* Would you like to have your containers share their parent's allocation (yes/no): yes
* Would you like LXD to be available over the network (yes/no): yes
* Address to bind LXD to (not including port): all
* Port to bind LXD to: 8443
* Trust password for new clients: password
* Do you want to configure the LXD bridge: no

Add an user account for Pirus and allow it to use lxd:

# useradd pirus --create-home
Expand All @@ -46,13 +57,12 @@ Create Pirus directories:
# mkdir -p /var/regovar/pirus/{cache,downloads,files,databases,pipelines,runs}
# chown -R pirus:pirus /var/regovar/pirus

Launch a LXD container to get an Ubuntu Xenial image:
Launch a LXD container to get an Ubuntu Xenial image. This will generate a client certificate and make the subsequent container creations faster.

# su pirus
$ lxc launch images:ubuntu/xenial firstContainerToInitLxd
$ lxc delete firstContainerToInitLxd --force



$ git clone https://github.com/REGOVAR/Pirus.git ~/Pirus
$ cd ~/Pirus
Expand Down

0 comments on commit a5f351a

Please sign in to comment.