~gmdduf/lava-dispatcher/gauss-support

« back to all changes in this revision

Viewing changes to doc/standalonesetup.rst

Update l-m-c cmdline options

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Quick Developer Setup
2
 
=====================
3
 
*NOTE:* You should most likely follow the normal installation instructions
4
 
defined at http://lava.readthedocs.org/en/latest. However, these steps can
5
 
get you a quick setup for local development on just the dispatcher::
6
 
 
7
 
  # get code
8
 
  $ sudo apt-get install python-virtualenv
9
 
  $ bzr branch lp:lava-dispatcher
10
 
  $ cd lava-dispatcher
11
 
  # set up virtual environment for development
12
 
  $ virtualenv .venv
13
 
  $ . .venv/bin/activate
14
 
  $ pip install keyring
15
 
  $ ./setup.py develop
16
 
  # setup configuration
17
 
  $ mkdir .venv/etc
18
 
  $ cp -r ./lava_dispatcher/default-config/lava-dispatcher .venv/etc/
19
 
  $ cat >.venv/etc/lava-dispatcher/devices/qemu01.conf
20
 
  device_type = qemu
21
 
  $ echo "LAVA_IMAGE_TMPDIR = /tmp" >> .venv/etc/lava-dispatcher/lava-dispatcher.conf
22
 
 
23
 
The set up a minimal job like::
24
 
 
25
 
    # /tmp/qemu.json
26
 
    {
27
 
      "timeout": 18000,
28
 
      "job_name": "qemu-test",
29
 
      "device_type": "qemu",
30
 
      "target": "qemu01",
31
 
      "actions": [
32
 
        {
33
 
          "command": "deploy_linaro_image",
34
 
          "parameters": {
35
 
            "image": "file:///tmp/beagle-nano.img.gz"
36
 
            }
37
 
        },
38
 
        {
39
 
          "command": "boot_linaro_image"
40
 
        }
41
 
      ]
42
 
    }
43
 
 
44
 
And execute the dispatcher with::
45
 
 
46
 
  $ lava-dispatch /tmp/qemu.json
47
 
 
48
 
.. seealso:: For writing a new dispatcher job file see :ref:`jobfile`