Merge branch '1578-api-server-in-docker' of git.clinicalfuture.com:arvados into 1578...
[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 `./config.rb' to generate configuration files.
31
32 3. Make sure the ARVADOS_DNS_SERVER has been provisioned with the
33    following DNS entries, resolving to the appropriate IP addresses
34    where each service will be deployed.
35
36    $API_HOSTNAME
37    keep0
38    compute0
39    controller
40    git
41    shell
42
43 4. Provision your Omniauth server with the APP_ID and
44    APP_SECRET from api/omniauth.rb.
45
46 5. Run `./build.sh' to build the following Docker images:
47
48      arvados/api    - the Arvados API server
49      arvados/keep   - Keep, the Arvados content-addressable filesystem
50      arvados/crunch - Crunch, a compute node for Arvados
51