Blame view

software/nayuos/instance.cfg 3.71 KB
iv committed
1 2 3
[buildout]
parts =
  parameters
iv committed
4
  template-full-build-script
iv committed
5 6
  template-sudo-wrapper
  template-cros-sdk-wrapper
iv committed
7

iv committed
8
# standard declaration of eggs directories
iv committed
9 10 11 12 13
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}

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

iv committed
14
[depot-tools]
iv committed
15 16 17 18
# 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
iv committed
19
git-executable = {{ git_path }}/git
iv committed
20

iv committed
21 22 23 24
[customize-path]
# add depot tools directory (for cros_sdk binary among others) and git directory to the path
command =
  export PATH="${directory:wrapper_dir}":"{{ git_path }}":"{{ curl_path }}":"${depot-tools:location}":"$PATH";
iv committed
25 26 27 28

[nayuos-ebuilds]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/nayuos-ebuilds.git
iv committed
29
branch = master
iv committed
30
git-executable = {{ git_path }}/git
iv committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45

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

[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}

iv committed
46 47 48 49
[directory]
recipe = slapos.cookbook:mkdirectory
log = ${buildout:directory}/var/log
run = ${buildout:directory}/etc/run
iv committed
50
wrapper_dir = ${buildout:directory}/wrapper_bin
iv committed
51
cros_location = ${buildout:directory}/parts/chromiumos
iv committed
52
ebuilds_dir = ${nayuos-ebuilds:location}
iv committed
53
scripts_dir = {{ scripts_dir }}
iv committed
54
logo_dir = {{ logo_dir }}
iv committed
55

iv committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
[bin]
wrapper_cros_sdk=${directory:wrapper_dir}/wrapper_cros_sdk
bash=/bin/bash
sudo=/usr/bin/sudo

[template-sudo-wrapper]
recipe = slapos.recipe.template:jinja2
template = {{ scripts_dir }}/wrapper_sudo.in
rendered = ${directory:wrapper_dir}/sudo
md5sum = ded5a92be4e37ec32eb9d3087d3e19bd
mode = 0700
context =
  key fake_cros_sdk_path bin:wrapper_cros_sdk
  key bash_path bin:bash
  key host_sudo_path bin:sudo

[template-cros-sdk-wrapper]
recipe = slapos.recipe.template:jinja2
template = {{ scripts_dir }}/wrapper_cros_sdk.in
rendered = ${bin:wrapper_cros_sdk}
md5sum = 7159fe3d5b85a283733cf686c4ee0a74
mode = 0700
context =
# XXX bash path is the one from the host
  key bash_path bin:bash
iv committed
81
  raw git_path  {{ git_path }}
iv committed
82 83
  raw curl_path {{ curl_path }}

iv committed
84
[template-full-build-script]
iv committed
85
# create the rendered script in the buildout-directory/etc/run
iv committed
86 87
# (use jinja for templating)
recipe = slapos.recipe.template:jinja2
iv committed
88 89
template = {{ scripts_dir }}/cros_full_build.in
rendered = ${directory:run}/cros_full_build
iv committed
90
md5sum = d6342b3a578fecd50ef86c6efd7b68bb
iv committed
91
mode = 0700
iv committed
92
context =
iv committed
93 94 95 96 97 98 99 100 101 102 103
  key bash_path                         bin:bash
  key instance_log_dir                  directory:log
  key cros_location                     directory:cros_location
  key export_path_cmd                   customize-path:command
  key branch                            parameters:configuration.branch
  key boards_list                       parameters:configuration.boards
  key keep_cache                        parameters:configuration.keep_cache
  key ebuilds_dir                       directory:ebuilds_dir
  key scripts_dir                       directory:scripts_dir
  key logo_dir                          directory:logo_dir
  raw nayu_dev_rootfs_packages          app-misc/nayuos-chromium-policy
Romain Courteaud committed
104
  raw nayu_dev_packages net-libs/nodejs net-misc/re6stnet dev-vcs/git dev-python/flask dev-python/virtualenv sys-fs/cryptsetup