Commit 39522def authored by Jérome Perrin's avatar Jérome Perrin

WIP: include nxdbom

parent 93c50b62
...@@ -37,7 +37,7 @@ filename = template-crontab.in ...@@ -37,7 +37,7 @@ filename = template-crontab.in
md5sum = f1f82101258de19068262b7213fc478b md5sum = f1f82101258de19068262b7213fc478b
[status2rss] [status2rss]
filename = status2rss.py filename = status2rss.py.in
md5sum = 432d22bb0f67df5203bbc5d1134a952b md5sum = 432d22bb0f67df5203bbc5d1134a952b
[template-update-rss-script] [template-update-rss-script]
......
...@@ -15,8 +15,8 @@ recipe = zc.recipe.egg ...@@ -15,8 +15,8 @@ recipe = zc.recipe.egg
[instance-profile] [instance-profile]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg.in url = ${:_profile_base_location_}/instance.cfg.in
rendered = ${buildout:directory}/instance.cfg output = ${buildout:directory}/instance.cfg
context = context =
section buildout buildout section buildout buildout
key mosquitto_location mosquitto:location key mosquitto_location mosquitto:location
...@@ -82,8 +82,17 @@ recipe = slapos.recipe.build:download ...@@ -82,8 +82,17 @@ recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/config/${:_buildout_section_name_} url = ${:_profile_base_location_}/config/${:_buildout_section_name_}
[gadget] [gadget]
recipe = slapos.recipe.template # creates `gadget` folder and downloads renderjs.js
output = ${buildout:directory}/${:_buildout_section_name_}/renderjs.js recipe = slapos.recipe.build
install =
import os
if not os.path.exists(location):
os.mkdir(location)
with open(self.download(options['url'], options['md5sum'])) as src, \
open(options['output'], 'w') as dst:
dst.write(src.read())
location = ${buildout:directory}/${:_buildout_section_name_}
output = ${:location}/renderjs.js
url = https://lab.nexedi.com/nexedi/renderjs/raw/b715d066bfddc30bedfc8356fb720dcbb391378e/dist/renderjs-0.28.0.js url = https://lab.nexedi.com/nexedi/renderjs/raw/b715d066bfddc30bedfc8356fb720dcbb391378e/dist/renderjs-0.28.0.js
md5sum = 7e074a29b07e0045d2ba8a8e63bd499e md5sum = 7e074a29b07e0045d2ba8a8e63bd499e
...@@ -103,7 +112,7 @@ inline = ...@@ -103,7 +112,7 @@ inline =
[copy-gadget-to-software] [copy-gadget-to-software]
recipe = slapos.recipe.build:download recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/gadget/${:_buildout_section_name_} url = ${:_profile_base_location_}/gadget/${:_buildout_section_name_}
destination = ${buildout:directory}/gadget/${:_buildout_section_name_} destination = ${gadget:location}/${:_buildout_section_name_}
[enb.jinja2.cfg] [enb.jinja2.cfg]
<= copy-config-to-instance <= copy-config-to-instance
......
...@@ -7,13 +7,15 @@ extends = ...@@ -7,13 +7,15 @@ extends =
../../stack/monitor/buildout.cfg ../../stack/monitor/buildout.cfg
../../stack/slapos.cfg ../../stack/slapos.cfg
../../component/osie-coupler/buildout.cfg ../../component/osie-coupler/buildout.cfg
../../component/defaults.cfg
buildout.hash.cfg
[instance-profile] [instance-profile]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg.in url = ${:_profile_base_location_}/${:filename}
mode = 0644 mode = 0644
rendered = ${buildout:directory}/instance.cfg output = ${buildout:directory}/instance.cfg
extensions = jinja2.ext.do extensions = jinja2.ext.do
context = context =
section buildout buildout section buildout buildout
......
...@@ -16,6 +16,7 @@ extends = ...@@ -16,6 +16,7 @@ extends =
../../component/selenium/buildout.cfg ../../component/selenium/buildout.cfg
../../stack/slapos.cfg ../../stack/slapos.cfg
../../stack/slapos-dev.cfg
../../stack/nxdtest.cfg ../../stack/nxdtest.cfg
../../stack/caucase/buildout.cfg ../../stack/caucase/buildout.cfg
...@@ -399,11 +400,14 @@ PyPDF2-patch-options = -p1 ...@@ -399,11 +400,14 @@ PyPDF2-patch-options = -p1
[eggs/scripts] [eggs/scripts]
recipe = zc.recipe.egg recipe = zc.recipe.egg
eggs = ${python-interpreter:eggs} eggs =
${python-interpreter:eggs}
${nxdbom-dev:egg}
scripts = scripts =
slapos slapos
supervisord supervisord
caucase caucase
nxdbom
[git-clone-repository] [git-clone-repository]
recipe = slapos.recipe.build:gitclone recipe = slapos.recipe.build:gitclone
...@@ -415,6 +419,11 @@ forbid-download-cache = true ...@@ -415,6 +419,11 @@ forbid-download-cache = true
repository = https://lab.nexedi.com/nexedi/slapos.git repository = https://lab.nexedi.com/nexedi/slapos.git
branch = master branch = master
[nxdbom-repository]
<= git-clone-repository
repository = https://lab.nexedi.com/jerome/nxd-bom.git
branch = feat/cyclonedx-wip
[template] [template]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
url = ${:_profile_base_location_}/${:filename} url = ${:_profile_base_location_}/${:filename}
......
...@@ -7,7 +7,7 @@ parts = ...@@ -7,7 +7,7 @@ parts =
slapos-cookbook-develop slapos-cookbook-develop
slapos.core-dev slapos.core-dev
erp5.util-dev erp5.util-dev
slapos-cookbook nxdbom-dev
[slapos.toolbox-repository] [slapos.toolbox-repository]
...@@ -51,8 +51,21 @@ recipe = zc.recipe.egg:develop ...@@ -51,8 +51,21 @@ recipe = zc.recipe.egg:develop
egg = slapos.core egg = slapos.core
setup = ${slapos.core-repository:location} setup = ${slapos.core-repository:location}
[nxdbom-repository]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/nxd-bom.git
branch = master
git-executable = ${git:location}/bin/git
develop = true
[nxdbom-dev]
recipe = zc.recipe.egg:develop
egg = nxdbom
setup = ${nxdbom-repository:location}
[versions] [versions]
slapos.cookbook = ; slapos.cookbook =
slapos.core = ; slapos.core =
slapos.toolbox = ; slapos.toolbox =
erp5-util = ; erp5-util =
nxdbom =
...@@ -131,6 +131,7 @@ recipe = zc.recipe.egg ...@@ -131,6 +131,7 @@ recipe = zc.recipe.egg
eggs = eggs =
${lxml-python:egg} ${lxml-python:egg}
${python-PyYAML:egg} ${python-PyYAML:egg}
nxdbom
slapos.core slapos.core
slapos.libnetworkcache slapos.libnetworkcache
...@@ -273,6 +274,7 @@ netaddr = 0.7.19 ...@@ -273,6 +274,7 @@ netaddr = 0.7.19
netifaces = 0.10.7 netifaces = 0.10.7
notebook = 7.1.2:whl notebook = 7.1.2:whl
notebook-shim = 0.2.4:whl notebook-shim = 0.2.4:whl
nxdbom = 0.0.0.dev2
openpyxl = 2.5.2 openpyxl = 2.5.2
outcome = 1.2.0 outcome = 1.2.0
overrides = 7.7.0 overrides = 7.7.0
......
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