From e757b1ba3faa792ef1f61d65c65be59e4d182d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 9 Apr 2020 10:42:11 +0200 Subject: [PATCH] stack/slapos: Introduce `slapos-command` section This section installs a slapos command with network cache enabled, for softwares using an embedded slapos. --- software/erp5testnode/software.cfg | 1 + software/slaprunner/software.cfg | 1 + stack/slapos.cfg | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/software/erp5testnode/software.cfg b/software/erp5testnode/software.cfg index 0c6d4f9000..7fb38e2f3f 100644 --- a/software/erp5testnode/software.cfg +++ b/software/erp5testnode/software.cfg @@ -14,6 +14,7 @@ extends = ../../stack/monitor/buildout.cfg parts = + slapos-command slapos-cookbook template eggs diff --git a/software/slaprunner/software.cfg b/software/slaprunner/software.cfg index 1920abf7e5..279f13ad91 100644 --- a/software/slaprunner/software.cfg +++ b/software/slaprunner/software.cfg @@ -37,6 +37,7 @@ shared-part-list = # to avoid versioning issues common-parts = + slapos-command slapos-cookbook template instance-runner-import diff --git a/stack/slapos.cfg b/stack/slapos.cfg index 40aa5b62d9..485b0bab7d 100644 --- a/stack/slapos.cfg +++ b/stack/slapos.cfg @@ -98,6 +98,14 @@ eggs = pyOpenSSL slapos.cookbook +# Install a slapos command with networkcache enabled in ${buildout:bin-directory} +[slapos-command] +recipe = zc.recipe.egg +eggs = + ${lxml-python:egg} + slapos.core + slapos.libnetworkcache + [versions] setuptools = 44.0.0 # Use SlapOS patched zc.buildout -- 2.30.9