software.cfg 2.87 KB
Newer Older
1 2 3 4 5 6 7 8
[buildout]
extends =
  ../../stack/slapos.cfg
  ../../component/vm-img/debian.cfg
  ../../component/rina-tools/buildout.cfg
parts =
  slapos-cookbook
  template
9
download-cache = ${:directory}/download-cache
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41

[template]
recipe = slapos.recipe.template:jinja2
# XXX: "template.cfg" is hardcoded in instanciation recipe
rendered = ${buildout:directory}/template.cfg
template = inline:
  [buildout]
  eggs-directory = ${buildout:eggs-directory}
  develop-eggs-directory = ${buildout:develop-eggs-directory}
  parts = runTestSuite
  [slap-configuration]
  recipe = slapos.cookbook:slapconfiguration.serialised
  computer = $${slap-connection:computer-id}
  partition = $${slap-connection:partition-id}
  url = $${slap-connection:server-url}
  key = $${slap-connection:key-file}
  cert = $${slap-connection:cert-file}
  [directory]
  recipe = slapos.cookbook:mkdirectory
  bin = $${buildout:directory}/bin
  [runTestSuite]
  recipe = slapos.recipe.template:jinja2
  rendered = $${directory:bin}/$${:_buildout_section_name_}
  template = ${:_profile_base_location_}/$${:_buildout_section_name_}.in
  mode = 0755
  context =
  {##} section buildout buildout
  {##} section parameter_dict runTestSuite-parameters
  {##} key slapparameter_dict slap-configuration:configuration
  [runTestSuite-parameters]
  environment = {{dumps(environment)}}
  vm = {{dumps(vm)}}
42
  download-cache = ${buildout:download-cache}
43 44
  runTestSuite_py = ${buildout:bin-directory}/${runTestSuite_py:interpreter}
  profile_base_location = ${:_profile_base_location_}
45
  irati_stack = ${irati-stack:location}
46 47 48 49 50 51 52 53
  slapos_package = ${slapos.package-repository:location}
context =
  section environment vm-run-environment
  section vm vm-debian

[runTestSuite_py]
recipe = zc.recipe.egg
eggs = erp5.util
54
  zc.buildout
55 56
interpreter = ${:_buildout_section_name_}

57
[irati-stack]
58
sparse-checkout = /.gitignore
59 60 61 62 63 64
# When run from erp5.util:testnode (and this always the case), shared=true is
# added to this section and the path in .git/objects/info/alternates is outside
# the 'rina' mount point of the VM. Let's mount the testnode working copy
# directly. Comment the following 2 lines if 'repository' is a URL.
recipe =
location = ${:repository}
65 66 67 68 69 70 71 72 73 74

[slapos.package-repository]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/slapos.package.git
git-executable = ${git:location}/bin/git
sparse-checkout = /playbook/roles/rina

[vm-debian]
# building a generic Debian kernel uses a lot of space
size = 16Gi
75
dists = debian-jessie
76 77 78 79 80 81 82
packages +=
# generic (another SR that build packages automatically would use the same list)
  apt-utils build-essential devscripts equivs lsb-release
# specific
  git ca-certificates python
# biggest and common build-deps for RINA
  dh-autoreconf pkg-config doxygen maven xmlto
83 84
# hellorina (shouldn't parts like lxml-python depend on the python of the SR?)
  python-dev
Julien Muchembled's avatar
Julien Muchembled committed
85 86 87 88

[versions]
erp5.util = 0.4.51
slapos.recipe.template = 4.3