Merge branch 'master' of git.clinicalfuture.com:arvados
[arvados.git] / docker / README
1 Deploying Arvados in Docker Containers
2 ======================================
3
4 This file explains how to build and deploy Arvados servers in Docker
5 containers, so that they can be run easily in different environments
6 (a dedicated server, a developer's laptop, a virtual machine,
7 etc).
8
9 This is a work in progress; instructions will almost certainly be
10 incomplete and possibly out of date.
11
12 PREREQUISITES
13 -------------
14
15 * Docker
16
17   Docker is a Linux container management system based on LXC. It is a
18   very young system but is being developed rapidly.  See
19   http://www.docker.io/gettingstarted/#h_installation for an
20   installation package for your platform.
21
22 * Ruby (any version)
23
24 BUILDING
25 --------
26
27 1. Copy `config.yml.example' to `config.yml' and edit it with settings
28    for your installation.
29
30 2. Run `make' to build the following Docker images:
31
32      arvados/api       - the Arvados API server
33      arvados/docserver - Arvados documentation
34      arvados/warehouse - Keep, the Arvados content-addressable filesystem
35      arvados/workbench - the Arvados console
36
37    You may also run `make api', `make docserver', etc. to make
38    images for individual Arvados services.
39
40 DEPLOYING
41 ---------
42
43 1. Make sure the ARVADOS_DNS_SERVER has been provisioned with the
44    following DNS entries, resolving to the appropriate IP addresses
45    where each service will be deployed.
46
47    $API_HOSTNAME
48    keep0.$API_HOSTNAME
49    compute0.$API_HOSTNAME
50    controller.$API_HOSTNAME
51    workbench.$API_HOSTNAME
52
53 2. Deploying API:
54    docker run -p 80:80 -p 443:443 arvados/api
55
56 3. Deploying Keep:
57    mkdir /tmp/keepfs
58    mount -t tmpfs -o size=512M tmpfs /tmp/keepfs
59    docker run -p 25107:25107 -v /tmp/keepfs:/dev/keep-0 arvados/warehouse
60