Add nayuos software recipe.
[slapos.git] / software / nayuos / instance.cfg
1 [buildout]
2 parts =
3   parameters
4   template-full-build-script
5
6 # eggs given by software.cfg
7 eggs-directory = {{ eggs_directory }}
8 develop-eggs-directory = {{ develop_eggs_directory }}
9
10 #################################### Tools, sources getter ##################################
11
12 [depot-tools]
13 # needed for the "repo" command (to download many git repositories)
14 recipe = slapos.recipe.build:gitclone
15 repository = https://chromium.googlesource.com/chromium/tools/depot_tools.git
16 branch = master
17
18 [use-depot-tools]
19 export-path =
20   export PATH=${depot-tools:location}:"$PATH";
21
22 [nayuos-ebuilds]
23 recipe = slapos.recipe.build:gitclone
24 repository = https://lab.nexedi.com/nexedi/nayuos-ebuilds.git
25
26 ############################################################################################
27
28 [parameters]
29 # for use of the "parameters" XML configuration given from the
30 # webrunner interface
31 # if needed, .serialized => json (more complex structures are OK, but need another 
32 # jinja template for reading the content of the parameters)
33 recipe = slapos.cookbook:slapconfiguration
34 computer = ${slap_connection:computer_id}
35 partition = ${slap_connection:partition_id}
36 url = ${slap_connection:server_url}
37 key = ${slap_connection:key_file}
38 cert = ${slap_connection:cert_file}
39
40 [directory]
41 recipe = slapos.cookbook:mkdirectory
42 log = ${buildout:directory}/var/log
43 run = ${buildout:directory}/etc/run
44 cros_location = ${buildout:directory}/parts/chromiumos
45 ebuilds_dir = ${nayuos-ebuilds:location}
46 scripts_dir = {{ scripts_dir }}
47 logo_dir = {{ logo_dir }}
48
49 [template-full-build-script]
50 # create the instance.cfg file in the buildout directory
51 # (use jinja for templating)
52 recipe = slapos.recipe.template:jinja2
53 template = {{ scripts_dir }}/cros_full_build.in
54 rendered = ${directory:run}/cros_full_build
55 md5sum = 76942f32e682b36397b41db28297625d
56 mode = 0770
57 context =
58 # for access to the eggs from the instance
59   key instance_log_dir directory:log
60   key cros_location directory:cros_location
61   key depot_tools_export_path_cmd use-depot-tools:export-path
62   key branch parameters:configuration.branch
63   key boards_list parameters:configuration.boards
64   key keep_cache parameters:configuration.keep_cache
65   key ebuilds_dir directory:ebuilds_dir
66   key scripts_dir directory:scripts_dir
67   key logo_dir directory:logo_dir
68   raw nayu_dev_packages net-libs/nodejs net-misc/re6stnet dev-vcs/git dev-python/flask dev-python/virtualenv sys-fs/cryptsetup