instance.cfg 2.23 KB
Newer Older
iv's avatar
iv committed
1 2 3
[buildout]
parts =
  parameters
4
  template-full-build-script
iv's avatar
iv committed
5 6 7 8 9 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

# eggs given by software.cfg
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}

#################################### Tools, sources getter ##################################

[clone-depot-tools]
# needed for the "repo" command (to download many git repositories)
recipe = slapos.recipe.build:gitclone
repository = https://chromium.googlesource.com/chromium/tools/depot_tools.git
branch = master

[depot-tools]
export-path =
  export PATH=${clone-depot-tools:location}:"$PATH";

############################################################################################

[parameters]
# for use of the "parameters" XML configuration given from the
# webrunner interface
# if needed, .serialized => json (more complex structures are OK, but need another 
# jinja template for reading the content of the parameters)
recipe = slapos.cookbook:slapconfiguration
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}

36 37 38 39 40
[directory]
recipe = slapos.cookbook:mkdirectory
log = ${buildout:directory}/var/log
run = ${buildout:directory}/etc/run
cros_location = ${buildout:directory}/parts/chromiumos
41 42
ebuilds_dir = {{ ebuilds_dir }}
scripts_dir = {{ scripts_dir }}
43
logo_dir = {{ logo_dir }}
44

45 46 47 48
[template-full-build-script]
# create the instance.cfg file in the buildout directory
# (use jinja for templating)
recipe = slapos.recipe.template:jinja2
49 50
template = {{ scripts_dir }}/cros_full_build.in
rendered = ${directory:run}/cros_full_build
iv's avatar
iv committed
51
md5sum = 0657492802013f6c1a65c886eb59068f
52 53 54 55 56 57 58
mode = 0770
context =
# for access to the eggs from the instance
  key instance_log_dir directory:log
  key cros_location directory:cros_location
  key depot_tools_export_path_cmd depot-tools:export-path
  key branch parameters:configuration.branch
59
  key boards_list parameters:configuration.boards
60
  key keep_cache parameters:configuration.keep_cache
61
  key ebuilds_dir directory:ebuilds_dir
iv's avatar
iv committed
62
  key scripts_dir directory:scripts_dir
63 64
  key logo_dir directory:logo_dir
  raw nayu_dev_packages net-libs/nodejs net-misc/re6stnet dev-vcs/git dev-python/flask sys-fs/cryptsetup