software.cfg 2.46 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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
sparse-checkout = /.gitignore

[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
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
76 77
# hellorina (shouldn't parts like lxml-python depend on the python of the SR?)
  python-dev