Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lisa Casino
slapos
Commits
8b37a651
Commit
8b37a651
authored
Mar 31, 2021
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Plain Diff
Update Release Candidate
parents
cb0a402a
028daccb
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
43 additions
and
61 deletions
+43
-61
component/libxml2/buildout.cfg
component/libxml2/buildout.cfg
+2
-2
component/libxslt/buildout.cfg
component/libxslt/buildout.cfg
+4
-3
component/openssl/buildout.cfg
component/openssl/buildout.cfg
+2
-2
component/qemu-kvm/buildout.cfg
component/qemu-kvm/buildout.cfg
+2
-1
component/zbar/buildout.cfg
component/zbar/buildout.cfg
+8
-1
slapos/recipe/postgres.py
slapos/recipe/postgres.py
+4
-4
slapos/test/utils.py
slapos/test/utils.py
+8
-39
software/erp5testnode/testsuite/deploy-test/software.cfg
software/erp5testnode/testsuite/deploy-test/software.cfg
+1
-1
software/jstestnode/software.cfg
software/jstestnode/software.cfg
+2
-1
software/slapos-testing/buildout.hash.cfg
software/slapos-testing/buildout.hash.cfg
+1
-1
software/slapos-testing/instance.cfg
software/slapos-testing/instance.cfg
+2
-0
software/theia/buildout.hash.cfg
software/theia/buildout.hash.cfg
+1
-1
software/theia/instance.cfg.in
software/theia/instance.cfg.in
+5
-4
stack/slapos.cfg
stack/slapos.cfg
+1
-1
No files found.
component/libxml2/buildout.cfg
View file @
8b37a651
...
@@ -12,8 +12,8 @@ parts =
...
@@ -12,8 +12,8 @@ parts =
[libxml2]
[libxml2]
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
shared = true
shared = true
url = http://xmlsoft.org/sources/libxml2-2.9.
7
.tar.gz
url = http://xmlsoft.org/sources/libxml2-2.9.
9
.tar.gz
md5sum =
896608641a08b465098a40ddf51cefba
md5sum =
c04a5a0a042eaa157e8e8c9eabe76bd6
configure-options =
configure-options =
--disable-static
--disable-static
--without-python
--without-python
...
...
component/libxslt/buildout.cfg
View file @
8b37a651
...
@@ -7,12 +7,13 @@ parts =
...
@@ -7,12 +7,13 @@ parts =
libxslt
libxslt
[libxslt]
[libxslt]
url = ftp://xmlsoft.org/libxslt/libxslt-1.1.3
2
.tar.gz
url = ftp://xmlsoft.org/libxslt/libxslt-1.1.3
4
.tar.gz
md5sum =
1fc72f98e98bf4443f1651165f3aa146
md5sum =
db8765c8d076f1b6caafd9f2542a304a
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
shared = true
shared = true
# --disable-static is temporarilly removed due to build error
# with xml2-config that does not support '--dynamic' argument.
configure-options =
configure-options =
--disable-static
--with-libxml-prefix=${libxml2:location}
--with-libxml-prefix=${libxml2:location}
--without-crypto
--without-crypto
--without-python
--without-python
...
...
component/openssl/buildout.cfg
View file @
8b37a651
...
@@ -17,8 +17,8 @@ parts =
...
@@ -17,8 +17,8 @@ parts =
[openssl]
[openssl]
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
shared = true
shared = true
url = https://www.openssl.org/source/openssl-1.1.1
j
.tar.gz
url = https://www.openssl.org/source/openssl-1.1.1
k
.tar.gz
md5sum = c
ccaa064ed860a2b4d1303811bf5c682
md5sum = c
4e7d95f782b08116afa27b30393dd27
location = @@LOCATION@@
location = @@LOCATION@@
# 'prefix' option to override --openssldir/--prefix (which is useful
# 'prefix' option to override --openssldir/--prefix (which is useful
# when combined with DESTDIR). Used by slapos.package.git/obs
# when combined with DESTDIR). Used by slapos.package.git/obs
...
...
component/qemu-kvm/buildout.cfg
View file @
8b37a651
[buildout]
[buildout]
extends =
extends =
../attr/buildout.cfg
../attr/buildout.cfg
../bzip2/buildout.cfg
../gnutls/buildout.cfg
../gnutls/buildout.cfg
../libaio/buildout.cfg
../libaio/buildout.cfg
../libcap/buildout.cfg
../libcap/buildout.cfg
...
@@ -38,7 +39,7 @@ configure-options =
...
@@ -38,7 +39,7 @@ configure-options =
--disable-werror
--disable-werror
--disable-xfsctl
--disable-xfsctl
environment =
environment =
PATH=${pkgconfig:location}/bin:%(PATH)s
PATH=${pkgconfig:location}/bin:
${bzip2:location}/bin:
%(PATH)s
PKG_CONFIG_PATH=${glib:location}/lib/pkgconfig:${gnutls:location}/lib/pkgconfig:${pcre:location}/lib/pkgconfig:${pixman:location}/lib/pkgconfig
PKG_CONFIG_PATH=${glib:location}/lib/pkgconfig:${gnutls:location}/lib/pkgconfig:${pcre:location}/lib/pkgconfig:${pixman:location}/lib/pkgconfig
LDFLAGS=-L${pixman:location}/lib -Wl,-rpath=${pixman:location}/lib
LDFLAGS=-L${pixman:location}/lib -Wl,-rpath=${pixman:location}/lib
...
...
component/zbar/buildout.cfg
View file @
8b37a651
[buildout]
[buildout]
parts=
parts=
zbar
zbar
extends =
../automake/buildout.cfg
../bzip2/buildout.cfg
../gettext/buildout.cfg
../libtool/buildout.cfg
../pkgconfig/buildout.cfg
[zbar]
[zbar]
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
...
@@ -19,5 +26,5 @@ configure-options =
...
@@ -19,5 +26,5 @@ configure-options =
--without-x
--without-x
--without-jpg
--without-jpg
environment =
environment =
PATH=${autoconf:location}/bin:${automake:location}/bin:${gettext:location}/bin:${libtool:location}/bin:${m4:location}/bin:%(PATH)s
PATH=${autoconf:location}/bin:${automake:location}/bin:${gettext:location}/bin:${libtool:location}/bin:${m4:location}/bin:
${bzip2:location}/bin:
%(PATH)s
CFLAGS=
CFLAGS=
slapos/recipe/postgres.py
View file @
8b37a651
...
@@ -151,10 +151,10 @@ class Recipe(GenericBaseRecipe):
...
@@ -151,10 +151,10 @@ class Recipe(GenericBaseRecipe):
max_connections = 100
max_connections = 100
datestyle = 'iso, mdy'
datestyle = 'iso, mdy'
lc_messages = '
en_US
.UTF-8'
lc_messages = '
C
.UTF-8'
lc_monetary = '
en_US
.UTF-8'
lc_monetary = '
C
.UTF-8'
lc_numeric = '
en_US
.UTF-8'
lc_numeric = '
C
.UTF-8'
lc_time = '
en_US
.UTF-8'
lc_time = '
C
.UTF-8'
default_text_search_config = 'pg_catalog.english'
default_text_search_config = 'pg_catalog.english'
unix_socket_directories = '%s'
unix_socket_directories = '%s'
...
...
slapos/test/utils.py
View file @
8b37a651
"""Test helpers
"""Test helpers
"""
"""
import
os
import
sys
import
sys
import
os.path
from
zc.buildout.configparser
import
parse
import
logging
def
makeRecipe
(
recipe_class
,
options
,
name
=
'test'
,
slap_connection
=
None
):
def
makeRecipe
(
recipe_class
,
options
,
name
=
'test'
,
slap_connection
=
None
):
"""Instanciate a recipe of `recipe_class` with `options` with a buildout
"""Instanciate a recipe of `recipe_class` with `options` with a buildout
mapping containing a python and an empty `slapos-connection` mapping, unless
mapping containing a python and an empty `slapos-connection` mapping, unless
provided as `slap_connection`.
provided as `slap_connection`.
If running tests in a buildout folder, the test recipe will reuse the
This function expects the test suite to have set SLAPOS_TEST_EGGS_DIRECTORY
`eggs-directory` and `develop-eggs-directory` from this buildout
so that the
and SLAPOS_TEST_DEVELOP_EGGS_DIRECTORY environment variables,
so that the
test recipe does not need to install eggs again when using working set.
test recipe does not need to install eggs again when using working set.
To prevent test accidentally writing to the buildout's eggs repositories, we
set `newest` to false and `offline` to true in this case.
"""
"""
buildout
=
{
buildout
=
{
'buildout'
:
{
'buildout'
:
{
...
@@ -39,39 +35,12 @@ def makeRecipe(recipe_class, options, name='test', slap_connection=None):
...
@@ -39,39 +35,12 @@ def makeRecipe(recipe_class, options, name='test', slap_connection=None):
if
slap_connection
is
not
None
:
if
slap_connection
is
not
None
:
buildout
[
'slap-connection'
]
=
slap_connection
buildout
[
'slap-connection'
]
=
slap_connection
# are we in buildout folder ?
buildout
[
'buildout'
][
'eggs-directory'
]
=
os
.
environ
[
'SLAPOS_TEST_EGGS_DIRECTORY'
]
# in SLAPOS-EGG-TEST the usual layout is
buildout
[
'buildout'
][
'develop-eggs-directory'
]
=
os
.
environ
[
'SLAPOS_TEST_DEVELOP_EGGS_DIRECTORY'
]
# ${buildout:directory}/parts/slapos-repository/slapos/test/utils.py in instance buildout, so try
# to find a buildout.cfg relative to this file.
# What can also happens is that this repository is used from software folder, this is the case in
# SLAPOS-SR-TEST. In this case, ${buildout:eggs} is not set in buildout.cfg and we can only assume
# it will be the standards eggs and develop-eggs folders.
#
{BASE_DIRECTORY}/parts/slapos-repository/slapos/test/utils.py
#
Prevent test from accidentally writing to the buildout's eggs
b
ase_directory
=
os
.
path
.
normpath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'..'
,
'..'
,
'..'
))
b
uildout
[
'buildout'
][
'newest'
]
=
False
buildout
_cfg
=
os
.
path
.
join
(
base_directory
,
'buildout.cfg'
)
buildout
[
'buildout'
][
'offline'
]
=
True
if
os
.
path
.
exists
(
buildout_cfg
):
with
open
(
buildout_cfg
)
as
f
:
parsed_cfg
=
parse
(
f
,
buildout_cfg
)
# When buildout_cfg is an instance buildout (like in SLAPOS-EGG-TEST),
# there's a ${buildout:eggs-directory} we can use.
# When buildout_cfg is a software buildout, we can only guess the
# standard eggs directories.
eggs_directory
=
parsed_cfg
[
'buildout'
].
get
(
'eggs-directory'
,
os
.
path
.
join
(
base_directory
,
'eggs'
))
develop_eggs_directory
=
parsed_cfg
[
'buildout'
].
get
(
'develop-eggs-directory'
,
os
.
path
.
join
(
base_directory
,
'develop-eggs'
))
logging
.
getLogger
(
__name__
).
info
(
'Using eggs-directory (%s) and develop-eggs-directory (%s) from buildout at %s'
,
eggs_directory
,
develop_eggs_directory
,
buildout_cfg
)
buildout
[
'buildout'
][
'eggs-directory'
]
=
eggs_directory
buildout
[
'buildout'
][
'develop-eggs-directory'
]
=
develop_eggs_directory
buildout
[
'buildout'
][
'newest'
]
=
False
buildout
[
'buildout'
][
'offline'
]
=
True
return
recipe_class
(
buildout
=
buildout
,
name
=
name
,
options
=
options
)
return
recipe_class
(
buildout
=
buildout
,
name
=
name
,
options
=
options
)
software/erp5testnode/testsuite/deploy-test/software.cfg
View file @
8b37a651
[buildout]
[buildout]
extends =
extends =
buildout.hash.cfg
buildout.hash.cfg
https://lab.nexedi.com/nexedi/slapos/raw/1.0.1
34
/software/kvm/software.cfg
https://lab.nexedi.com/nexedi/slapos/raw/1.0.1
82
/software/kvm/software.cfg
parts =
parts =
eggs
eggs
...
...
software/jstestnode/software.cfg
View file @
8b37a651
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
extends =
extends =
../../stack/slapos.cfg
../../stack/slapos.cfg
../../stack/nodejs.cfg
../../stack/nodejs.cfg
../../component/bzip2/buildout.cfg
../../component/coreutils/buildout.cfg
../../component/coreutils/buildout.cfg
../../component/git/buildout.cfg
../../component/git/buildout.cfg
../../component/xorg/buildout.cfg
../../component/xorg/buildout.cfg
...
@@ -53,7 +54,7 @@ develop = true
...
@@ -53,7 +54,7 @@ develop = true
[renderjs-install]
[renderjs-install]
recipe = plone.recipe.command
recipe = plone.recipe.command
stop-on-error = true
stop-on-error = true
command = cd ${renderjs-repository.git:location} && PATH=${git:location}/bin/:${nodejs:location}/bin/:$
PATH ${nodejs-output:npm} install . && PATH=${git:location}/bin/:${nodejs
:location}/bin/:$PATH ./node_modules/grunt-cli/bin/grunt
command = cd ${renderjs-repository.git:location} && PATH=${git:location}/bin/:${nodejs:location}/bin/:$
{bzip2:location}/bin/:$PATH ${nodejs-output:npm} install . && PATH=${git:location}/bin/:${nodejs:location}/bin/:${bzip2
:location}/bin/:$PATH ./node_modules/grunt-cli/bin/grunt
update-command = ${:command}
update-command = ${:command}
[jio-repository.git]
[jio-repository.git]
...
...
software/slapos-testing/buildout.hash.cfg
View file @
8b37a651
...
@@ -15,4 +15,4 @@
...
@@ -15,4 +15,4 @@
[template]
[template]
filename = instance.cfg
filename = instance.cfg
md5sum =
a6091981a78cb2b10a97e431adc7615c
md5sum =
2a82b7d5163d042e85b14a645707a093
software/slapos-testing/instance.cfg
View file @
8b37a651
...
@@ -80,6 +80,8 @@ template = inline:
...
@@ -80,6 +80,8 @@ template = inline:
export PATH=${coreutils:location}/bin:${curl:location}/bin:${openssl:location}/bin:${git:location}/bin:${libxslt:location}/bin:${socat:location}/bin:${lmsensors:location}/bin:${rsync:location}/bin/:${buildout:bin-directory}:$PATH
export PATH=${coreutils:location}/bin:${curl:location}/bin:${openssl:location}/bin:${git:location}/bin:${libxslt:location}/bin:${socat:location}/bin:${lmsensors:location}/bin:${rsync:location}/bin/:${buildout:bin-directory}:$PATH
export SLAPOS_TEST_IPV4=$${slap-configuration:ipv4-random}
export SLAPOS_TEST_IPV4=$${slap-configuration:ipv4-random}
export SLAPOS_TEST_IPV6=$${slap-configuration:ipv6-random}
export SLAPOS_TEST_IPV6=$${slap-configuration:ipv6-random}
export SLAPOS_TEST_EGGS_DIRECTORY=$${buildout:eggs-directory}
export SLAPOS_TEST_DEVELOP_EGGS_DIRECTORY=$${buildout:develop-eggs-directory}
[slapos-test-runner-dot-nxdtest]
[slapos-test-runner-dot-nxdtest]
...
...
software/theia/buildout.hash.cfg
View file @
8b37a651
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
[instance]
[instance]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
a82e4fdc4efd60df699ee072399e6973
md5sum =
ec1d3d947222354d73a94eb974f46d66
[yarn.lock]
[yarn.lock]
filename = yarn.lock
filename = yarn.lock
...
...
software/theia/instance.cfg.in
View file @
8b37a651
...
@@ -168,7 +168,8 @@ location =
...
@@ -168,7 +168,8 @@ location =
[frontend-instance-config]
[frontend-instance-config]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
rendered = $${directory:etc}/$${:_buildout_section_name_}
rendered = $${directory:etc}/$${:_buildout_section_name_}
template = inline:
template =
inline:
:$${:port} {
:$${:port} {
bind $${:ip}
bind $${:ip}
tls $${frontend-instance-certificate:cert-file} $${frontend-instance-certificate:key-file}
tls $${frontend-instance-certificate:cert-file} $${frontend-instance-certificate:key-file}
...
@@ -284,7 +285,7 @@ filename = $${:_buildout_section_name_}
...
@@ -284,7 +285,7 @@ filename = $${:_buildout_section_name_}
[common-environment]
[common-environment]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
rendered = $
{buildout:bin-directory}/
${:_buildout_section_name_}
rendered = $
${directory:bin}/$
${:_buildout_section_name_}
mode = 0777
mode = 0777
template =
template =
inline:
inline:
...
@@ -345,8 +346,8 @@ base-url = $${theia-service:base-url}
...
@@ -345,8 +346,8 @@ base-url = $${theia-service:base-url}
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
rendered = $${directory:bin}/$${:_buildout_section_name_}
rendered = $${directory:bin}/$${:_buildout_section_name_}
mode = 0700
mode = 0700
template =
inline:
template =
#!{{ bash }}
inline:
#!{{ bash }}
SHELL=$BASH
SHELL=$BASH
# when running interactively, activate slapos configuration and reset GIT_EXEC_PATH to workaround https://github.com/eclipse-theia/theia/issues/7555
# when running interactively, activate slapos configuration and reset GIT_EXEC_PATH to workaround https://github.com/eclipse-theia/theia/issues/7555
if [ $# = 0 ]; then
if [ $# = 0 ]; then
...
...
stack/slapos.cfg
View file @
8b37a651
...
@@ -181,7 +181,7 @@ importlib-metadata = 1.7.0
...
@@ -181,7 +181,7 @@ importlib-metadata = 1.7.0
inotify-simple = 1.1.1
inotify-simple = 1.1.1
itsdangerous = 0.24
itsdangerous = 0.24
lock-file = 2.0
lock-file = 2.0
lxml = 4.6.
2
lxml = 4.6.
3
meld3 = 1.0.2
meld3 = 1.0.2
more-itertools = 5.0.0
more-itertools = 5.0.0
netaddr = 0.7.19
netaddr = 0.7.19
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment