Commit 37a01fc6 authored by Julien Muchembled's avatar Julien Muchembled

build-rina: cache downloads

This is possible because this SR is only supposed to be run by a test node:
in this case, the owner of the software is the same as for the instance.

Buildout 2.x is required for automatic creation of the 'download-cache' folder.
parent 27ccd773
...@@ -4,6 +4,7 @@ extends = ...@@ -4,6 +4,7 @@ extends =
parts = parts =
debuild-rina-tools debuild-rina-tools
test-rina test-rina
download-cache = download-cache
[vm-run-base] [vm-run-base]
smp = 4 smp = 4
...@@ -93,6 +94,7 @@ finalize = ...@@ -93,6 +94,7 @@ finalize =
[test-rina] [test-rina]
<= vm-run-base <= vm-run-base
rina-tools-deps rina-tools-deps
mount.download-cache = ${buildout:download-cache}
mount.rina = ${irati-stack:location} mount.rina = ${irati-stack:location}
mount.slapos = ${:_profile_base_location_}/../.. mount.slapos = ${:_profile_base_location_}/../..
mount.slapos.package = ${slapos.package-repository:location} mount.slapos.package = ${slapos.package-repository:location}
...@@ -106,6 +108,7 @@ install = ...@@ -106,6 +108,7 @@ install =
[buildout] [buildout]
extends = /mnt/slapos/software/hellorina/software.cfg extends = /mnt/slapos/software/hellorina/software.cfg
develop = /mnt/slapos develop = /mnt/slapos
download-cache = /mnt/download-cache
[slapos-cookbook-develop] [slapos-cookbook-develop]
recipe = recipe =
setup = setup =
......
...@@ -94,6 +94,7 @@ relative-paths = true ...@@ -94,6 +94,7 @@ relative-paths = true
extends = {{parameter_dict['profile_base_location']}}/build.cfg extends = {{parameter_dict['profile_base_location']}}/build.cfg
develop-eggs-directory = {{buildout['develop-eggs-directory']}} develop-eggs-directory = {{buildout['develop-eggs-directory']}}
eggs-directory = {{buildout['eggs-directory']}} eggs-directory = {{buildout['eggs-directory']}}
download-cache = {{parameter_dict['download-cache']}}
[vm-run-base] [vm-run-base]
environment = environment =
......
...@@ -6,6 +6,7 @@ extends = ...@@ -6,6 +6,7 @@ extends =
parts = parts =
slapos-cookbook slapos-cookbook
template template
download-cache = download-cache
[template] [template]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
...@@ -38,6 +39,7 @@ template = inline: ...@@ -38,6 +39,7 @@ template = inline:
[runTestSuite-parameters] [runTestSuite-parameters]
environment = {{dumps(environment)}} environment = {{dumps(environment)}}
vm = {{dumps(vm)}} vm = {{dumps(vm)}}
download-cache = ${buildout:download-cache}
runTestSuite_py = ${buildout:bin-directory}/${runTestSuite_py:interpreter} runTestSuite_py = ${buildout:bin-directory}/${runTestSuite_py:interpreter}
profile_base_location = ${:_profile_base_location_} profile_base_location = ${:_profile_base_location_}
irati_stack = ${irati-stack:location} irati_stack = ${irati-stack:location}
...@@ -71,3 +73,7 @@ packages += ...@@ -71,3 +73,7 @@ packages +=
git ca-certificates python git ca-certificates python
# biggest and common build-deps for RINA # biggest and common build-deps for RINA
dh-autoreconf pkg-config doxygen maven xmlto dh-autoreconf pkg-config doxygen maven xmlto
[versions]
zc.buildout = 2.5.2+slapos005
zc.recipe.egg = 2.0.3+slapos002
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment