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
Labels
Merge Requests
104
Merge Requests
104
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
2cbf9cc9
Commit
2cbf9cc9
authored
Jun 29, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Plain Diff
Update Release Candidate
parents
c1008bb2
63078069
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
120 additions
and
180 deletions
+120
-180
component/avahi/buildout.cfg
component/avahi/buildout.cfg
+35
-0
component/babeld/buildout.cfg
component/babeld/buildout.cfg
+6
-1
component/cloudooo/buildout.cfg
component/cloudooo/buildout.cfg
+2
-2
component/file/buildout.cfg
component/file/buildout.cfg
+2
-2
component/groonga/buildout.cfg
component/groonga/buildout.cfg
+4
-4
component/libreoffice-bin/buildout.cfg
component/libreoffice-bin/buildout.cfg
+10
-8
component/mariadb/buildout.cfg
component/mariadb/buildout.cfg
+5
-23
component/mariadb/mdev20693-mixin.cfg
component/mariadb/mdev20693-mixin.cfg
+1
-1
component/re6stnet/buildout.cfg
component/re6stnet/buildout.cfg
+3
-0
component/rpm2cpio/buildout.cfg
component/rpm2cpio/buildout.cfg
+2
-2
component/rpm2cpio/rpm2cpio
component/rpm2cpio/rpm2cpio
+0
-102
software/cloudooo/buildout.hash.cfg
software/cloudooo/buildout.hash.cfg
+1
-1
software/cloudooo/instance-cloudooo-input-schema.json
software/cloudooo/instance-cloudooo-input-schema.json
+4
-11
software/cloudooo/instance-cloudooo.cfg.in
software/cloudooo/instance-cloudooo.cfg.in
+4
-4
software/cloudooo/software-common.cfg
software/cloudooo/software-common.cfg
+4
-1
software/cloudooo/software.cfg
software/cloudooo/software.cfg
+0
-3
software/cloudooo/test/test.py
software/cloudooo/test/test.py
+2
-2
software/neoppod/software-mariadb-10.4.cfg
software/neoppod/software-mariadb-10.4.cfg
+0
-5
software/repman/software.cfg
software/repman/software.cfg
+0
-3
software/theia/buildout.hash.cfg
software/theia/buildout.hash.cfg
+1
-1
software/theia/software.cfg
software/theia/software.cfg
+1
-0
software/theia/theia_import.py
software/theia/theia_import.py
+28
-0
stack/cloudooo.cfg
stack/cloudooo.cfg
+4
-3
stack/slapos.cfg
stack/slapos.cfg
+1
-1
No files found.
component/avahi/buildout.cfg
0 → 100644
View file @
2cbf9cc9
# Avahi - Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
[buildout]
extends =
../dbus/buildout.cfg
../glib/buildout.cfg
../pkgconfig/buildout.cfg
parts =
avahi
[avahi]
recipe = slapos.recipe.cmmi
shared = true
url = https://github.com/lathiat/avahi/releases/download/v0.8/avahi-0.8.tar.gz
md5sum = 229c6aa30674fc43c202b22c5f8c2be7
configure-options =
--disable-static
--disable-libevent
--disable-mono
--disable-monodoc
--disable-python
--disable-qt3
--disable-qt4
--disable-qt5
--disable-gtk
--disable-gtk3
--disable-libdaemon
--disable-core-docs
--with-distro=none
--with-systemdsystemunitdir=no
environment =
PATH=${pkgconfig:location}/bin:${glib:location}/bin:%(PATH)s
CFLAGS=-I${gdbm:location}/include
LDFLAGS=-L${gettext:location}/lib -Wl,-rpath=${gettext:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib -L${glib:location}/lib -Wl,-rpath=${glib:location}/lib -L${gdbm:location}/lib -Wl,-rpath=${gdbm:location}/lib
PKG_CONFIG_PATH=${glib:location}/lib/pkgconfig:${pcre:location}/lib/pkgconfig:${dbus:location}/lib/pkgconfig
component/babeld/buildout.cfg
View file @
2cbf9cc9
[buildout]
[buildout]
extends =
../git/buildout.cfg
parts = babeld
parts = babeld
[babeld-repository]
[babeld-repository]
...
@@ -6,7 +9,7 @@ recipe = slapos.recipe.build:gitclone
...
@@ -6,7 +9,7 @@ recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/babeld.git
repository = https://lab.nexedi.com/nexedi/babeld.git
branch = master
branch = master
git-executable = ${git:location}/bin/git
git-executable = ${git:location}/bin/git
revision =
hmac-nxd3
revision =
v1.12.1-nxd1
[babeld]
[babeld]
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
...
@@ -14,6 +17,8 @@ path = ${babeld-repository:location}
...
@@ -14,6 +17,8 @@ path = ${babeld-repository:location}
make-options = CC='gcc -std=gnu99'
make-options = CC='gcc -std=gnu99'
configure-command =
configure-command =
echo "No configure.."
echo "No configure.."
environment =
PATH=${git:location}/bin:%(PATH)s
make-targets =
make-targets =
install PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
install PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
component/cloudooo/buildout.cfg
View file @
2cbf9cc9
[buildout]
[buildout]
extends =
extends =
../git/buildout.cfg
../lxml-python/buildout.cfg
../lxml-python/buildout.cfg
parts =
parts =
...
@@ -12,9 +13,8 @@ setup = ${cloudooo-repository:location}
...
@@ -12,9 +13,8 @@ setup = ${cloudooo-repository:location}
[cloudooo-repository]
[cloudooo-repository]
recipe = slapos.recipe.build:gitclone
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/cloudooo.git
repository = https://lab.nexedi.com/nexedi/cloudooo.git
branch = master
git-executable = ${git:location}/bin/git
git-executable = ${git:location}/bin/git
revision =
78d15e091df750952998a6a23f49300a5a0faa53
revision =
98055878283583fad61374c93fb777c7a91fa070
[cloudooo]
[cloudooo]
recipe = zc.recipe.egg
recipe = zc.recipe.egg
...
...
component/file/buildout.cfg
View file @
2cbf9cc9
...
@@ -11,8 +11,8 @@ extends =
...
@@ -11,8 +11,8 @@ extends =
[file]
[file]
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
shared = true
shared = true
url = http://ftp.
icm.edu.pl/packages/file/file-5.41
.tar.gz
url = http://ftp.
astron.com/pub/file/file-5.44
.tar.gz
md5sum =
18233bb0a0089dfdc7dfbc93b96f231b
md5sum =
a60d586d49d015d842b9294864a89c7a
configure-options =
configure-options =
--disable-static
--disable-static
--disable-libseccomp
--disable-libseccomp
...
...
component/groonga/buildout.cfg
View file @
2cbf9cc9
...
@@ -15,8 +15,8 @@ extends =
...
@@ -15,8 +15,8 @@ extends =
[groonga]
[groonga]
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
shared = true
shared = true
url = https://packages.groonga.org/source/groonga/groonga-1
2.0.7
.tar.gz
url = https://packages.groonga.org/source/groonga/groonga-1
3.0.1
.tar.gz
md5sum =
5ef412a6941994e623cb50d76a8be261
md5sum =
d17d154c2ceffbf8b21d8ef6d3afa644
groonga-plugin-dir = @@LOCATION@@/lib/groonga/plugins/
groonga-plugin-dir = @@LOCATION@@/lib/groonga/plugins/
# temporary patch to respect more tokens in natural language mode.
# temporary patch to respect more tokens in natural language mode.
patches =
patches =
...
@@ -48,8 +48,8 @@ environment =
...
@@ -48,8 +48,8 @@ environment =
[groonga-normalizer-mysql]
[groonga-normalizer-mysql]
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
shared = true
shared = true
url = https://packages.groonga.org/source/groonga-normalizer-mysql/groonga-normalizer-mysql-1.
1.8
.tar.gz
url = https://packages.groonga.org/source/groonga-normalizer-mysql/groonga-normalizer-mysql-1.
2.1
.tar.gz
md5sum =
a1520691da3083e14bdc65a9ec57a620
md5sum =
d9b48b3ea9dc7423e7c40eb326d86395
groonga-plugin-dir = @@LOCATION@@/lib/groonga/plugins/
groonga-plugin-dir = @@LOCATION@@/lib/groonga/plugins/
pre-configure = mkdir -p ${:groonga-plugin-dir}
pre-configure = mkdir -p ${:groonga-plugin-dir}
make-targets = GROONGA_PLUGINS_DIR=${:groonga-plugin-dir} install
make-targets = GROONGA_PLUGINS_DIR=${:groonga-plugin-dir} install
...
...
component/libreoffice-bin/buildout.cfg
View file @
2cbf9cc9
...
@@ -8,11 +8,11 @@ parts =
...
@@ -8,11 +8,11 @@ parts =
[libreoffice-bin]
[libreoffice-bin]
recipe = slapos.recipe.build
recipe = slapos.recipe.build
version =
5.2.4
.2
version =
7.5.2
.2
url = http://downloadarchive.documentfoundation.org/libreoffice/old/${:version}/rpm/${:_url1}/LibreOffice_${:version}_${:_url2}_rpm.tar.gz
url = http
s
://downloadarchive.documentfoundation.org/libreoffice/old/${:version}/rpm/${:_url1}/LibreOffice_${:version}_${:_url2}_rpm.tar.gz
# where office code can be found?
# where office code can be found?
officedir = libreoffice
5.2
officedir = libreoffice
7.5
install =
install =
import os
import os
import sys
import sys
...
@@ -38,12 +38,14 @@ install =
...
@@ -38,12 +38,14 @@ install =
cpio = ${cpio:location}/bin/cpio
cpio = ${cpio:location}/bin/cpio
rpm2cpio = ${rpm2cpio:target}
rpm2cpio = ${rpm2cpio:target}
[libreoffice-bin:getattr(sys,'_multiarch',None)=='i386-linux-gnu']
[libreoffice-bin:getattr(sys,'_multiarch',None)!='x86_64-linux-gnu']
_url1 = x86
recipe = plone.recipe.command
_url2 = Linux_x86
command =
md5sum = 7a0b33a2d18f06143258c428c32de213
echo unsupported architecture
false
stop-on-error = true
[libreoffice-bin:getattr(sys,'_multiarch',None)=='x86_64-linux-gnu']
[libreoffice-bin:getattr(sys,'_multiarch',None)=='x86_64-linux-gnu']
_url1 = x86_64
_url1 = x86_64
_url2 = Linux_x86-64
_url2 = Linux_x86-64
md5sum =
cbea6cd17063b5bcbe0cb32f7819f0cf
md5sum =
efb0351ac9ebd954c43f77d59632bd28
component/mariadb/buildout.cfg
View file @
2cbf9cc9
...
@@ -26,12 +26,12 @@ extends =
...
@@ -26,12 +26,12 @@ extends =
parts =
parts =
mariadb
mariadb
[mariadb
-10.4
]
[mariadb]
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
shared = true
shared = true
url = https://archive.mariadb.org//mariadb-${:version}/source/mariadb-${:version}.tar.gz
url = https://archive.mariadb.org//mariadb-${:version}/source/mariadb-${:version}.tar.gz
version = 10.4.2
5
version = 10.4.2
8
md5sum =
76e6ee973adb7deb15d7936f710eb5a4
md5sum =
d098e9af77a26260a6a6c21a7ed0daf6
pre-configure =
pre-configure =
set '\bSET(PLUGIN_AUTH_PAM YES CACHE BOOL "")' cmake/build_configurations/mysql_release.cmake
set '\bSET(PLUGIN_AUTH_PAM YES CACHE BOOL "")' cmake/build_configurations/mysql_release.cmake
grep -q "$@"
grep -q "$@"
...
@@ -101,8 +101,8 @@ post-install =
...
@@ -101,8 +101,8 @@ post-install =
# as plugin-dir ( https://mariadb.com/kb/en/server-system-variables/#plugin_dir )
# as plugin-dir ( https://mariadb.com/kb/en/server-system-variables/#plugin_dir )
recipe = slapos.recipe.cmmi
recipe = slapos.recipe.cmmi
shared = true
shared = true
url = https://packages.groonga.org/source/mroonga/mroonga-1
2.09
.tar.gz
url = https://packages.groonga.org/source/mroonga/mroonga-1
3.01
.tar.gz
md5sum =
637d73b86239cc9c3758e9486746d430
md5sum =
062d9575fbf8759b529fdc46b077a9c1
pre-configure =
pre-configure =
rm -rf fake_mariadb_source
rm -rf fake_mariadb_source
mkdir -p fake_mariadb_source
mkdir -p fake_mariadb_source
...
@@ -131,21 +131,3 @@ environment =
...
@@ -131,21 +131,3 @@ environment =
LDFLAGS=-L${groonga:location}/lib
LDFLAGS=-L${groonga:location}/lib
PKG_CONFIG_PATH=${groonga:location}/lib/pkgconfig:${groonga-normalizer-mysql:location}/lib/pkgconfig
PKG_CONFIG_PATH=${groonga:location}/lib/pkgconfig:${groonga-normalizer-mysql:location}/lib/pkgconfig
### XXX keep using mariadb 10.3 because 10.4 causes crash
### (we just override here for easier revert)
[mariadb-10.3]
<= mariadb-10.4
version = 10.3.35
md5sum = b7a2e69d103eda3dd61c8bad8775c7bd
post-install =
ldd=`ldd %(location)s/lib/plugin/ha_rocksdb.so`
for x in ${lz4:location} ${snappy:location} ${zstd:location}
do echo "$ldd" |grep -qF " $x/lib/"
done
mkdir -p %(location)s/include/wsrep &&
cp -p wsrep/wsrep_api.h %(location)s/include/wsrep
[mariadb]
location = ${mariadb-10.3:location}
### /XXX keep using mariadb 10.3 because 10.4 causes crash
component/mariadb/mdev20693-mixin.cfg
View file @
2cbf9cc9
# To be extended after mariadb's buildout.cfg
# To be extended after mariadb's buildout.cfg
[mariadb
-10.4
]
[mariadb]
patches +=
patches +=
${:_profile_base_location_}/mdev20693.patch#34ca907d6b36ba81d75bed118243f637
${:_profile_base_location_}/mdev20693.patch#34ca907d6b36ba81d75bed118243f637
component/re6stnet/buildout.cfg
View file @
2cbf9cc9
...
@@ -12,6 +12,9 @@ extends =
...
@@ -12,6 +12,9 @@ extends =
parts =
parts =
re6stnet
re6stnet
[python]
part = python2.7
[gcc]
[gcc]
min_version = 0
min_version = 0
...
...
component/rpm2cpio/buildout.cfg
View file @
2cbf9cc9
...
@@ -6,5 +6,5 @@ parts =
...
@@ -6,5 +6,5 @@ parts =
# https://github.com/ruda/rpm2cpio
# https://github.com/ruda/rpm2cpio
recipe = slapos.recipe.build:download
recipe = slapos.recipe.build:download
shared = true
shared = true
url =
${:_profile_base_location_}/${:_buildout_section_name_}
url =
https://raw.githubusercontent.com/ruda/rpm2cpio/5afad4b65e4661a771db6f728abefe2c1e84b9ae/rpm2cpio.py
md5sum =
aa3a5920a1d8963592be0c2666ee05e2
md5sum =
1cb52f9030304c2b7625657b2ef2379e
component/rpm2cpio/rpm2cpio
deleted
100644 → 0
View file @
c1008bb2
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Standalone RPM to CPIO converter
# Copyright (c) 2012 Rudá Moura
# https://github.com/ruda/rpm2cpio
#
# Impove gzip header detection thanks to
# http://afb.users.sourceforge.net/centos/rpm2cpio.py
#
# Copyright (C) 1997,1998,1999, Roger Espel Llima
# Copyright (C) 2000, Sergey Babkin
# Copyright (C) 2009, Alex Kozlov
# Copyright (C) 2010, Anders F Bjorklund
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and any associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# SOFTWARE'S COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE
'''Extract cpio archive from RPM package.
rpm2cpio converts the RPM on standard input or first parameter to a CPIO archive on standard output.
Usage:
rpm2cpio < adjtimex-1.20-2.1.i386.rpm | cpio -it
./sbin/adjtimex
./usr/share/doc/adjtimex-1.20
./usr/share/doc/adjtimex-1.20/COPYING
./usr/share/doc/adjtimex-1.20/COPYRIGHT
./usr/share/doc/adjtimex-1.20/README
./usr/share/man/man8/adjtimex.8.gz
133 blocks
'''
import
sys
import
struct
import
StringIO
import
gzip
RPM_MAGIC
=
'
\
xed
\
xab
\
xee
\
xdb
'
GZIP_MAGIC
=
'
\
x1f
\
x8b
'
def
rpm2cpio
(
stream_in
=
sys
.
stdin
,
stream_out
=
sys
.
stdout
):
lead
=
stream_in
.
read
(
96
)
if
lead
[
0
:
4
]
!=
RPM_MAGIC
:
raise
IOError
,
'the input is not a RPM package'
lead
=
stream_in
.
read
(
16
)
if
not
lead
:
raise
IOError
,
'No header'
while
True
:
(
magic
,
ignore
,
sections
,
bytes
)
=
struct
.
unpack
(
"!LLLL"
,
lead
)
(
smagic
,
smagic2
)
=
struct
.
unpack
(
"!HL"
,
lead
[
0
:
6
])
if
smagic
==
0x1f8b
:
break
# skip the headers
stream_in
.
seek
(
16
*
sections
+
bytes
,
1
)
while
True
:
lead
=
stream_in
.
read
(
1
)
if
lead
==
""
:
raise
IOError
,
'No header'
if
(
0
,)
==
struct
.
unpack
(
"B"
,
lead
):
continue
break
lead
+=
stream_in
.
read
(
15
)
if
lead
==
""
:
raise
IOError
,
'No header'
stream_in
.
seek
(
-
len
(
lead
),
1
)
gzipper
=
gzip
.
GzipFile
(
fileobj
=
stream_in
)
data
=
gzipper
.
read
()
stream_out
.
write
(
data
)
if
__name__
==
'__main__'
:
if
sys
.
argv
[
1
:]:
try
:
fin
=
open
(
sys
.
argv
[
1
])
rpm2cpio
(
fin
)
fin
.
close
()
except
IOError
,
e
:
print
'Error:'
,
sys
.
argv
[
1
],
e
else
:
try
:
rpm2cpio
()
except
IOError
,
e
:
print
'Error:'
,
e
software/cloudooo/buildout.hash.cfg
View file @
2cbf9cc9
...
@@ -18,7 +18,7 @@ md5sum = d1e4d7306c39f2ebc64d0407860d4301
...
@@ -18,7 +18,7 @@ md5sum = d1e4d7306c39f2ebc64d0407860d4301
[template-cloudooo-instance]
[template-cloudooo-instance]
filename = instance-cloudooo.cfg.in
filename = instance-cloudooo.cfg.in
md5sum =
3c499fd3cdfc7915d6eaf1cf4130b56d
md5sum =
13759bf9720f0e7109fc35a8ad8a50a9
[template-haproxy-cfg]
[template-haproxy-cfg]
filename = haproxy.cfg.in
filename = haproxy.cfg.in
...
...
software/cloudooo/instance-cloudooo-input-schema.json
View file @
2cbf9cc9
{
{
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"type"
:
"object"
,
"type"
:
"object"
,
"extends"
:
"./schema-definitions.json#"
,
"properties"
:
{
"properties"
:
{
"tcpv4-port"
:
{
"tcpv4-port"
:
{
"allOf"
:
[
"description"
:
"TCP port used for HTTP server"
,
{
"default"
:
8000
,
"$ref"
:
"#/definitions/tcpv4port"
"type"
:
"integer"
},
{
"description"
:
"Start allocating ports at this value, going upward"
,
"default"
:
23000
}
]
},
},
"backend-count"
:
{
"backend-count"
:
{
"description"
:
"Number of backend cloudooo instances"
,
"description"
:
"Number of backend cloudooo instances"
,
...
@@ -20,7 +13,7 @@
...
@@ -20,7 +13,7 @@
"type"
:
"integer"
"type"
:
"integer"
},
},
"timeout"
:
{
"timeout"
:
{
"description"
:
"
Configure apache with this timeout
"
,
"description"
:
"
Timeout for document conversions, in seconds
"
,
"type"
:
"integer"
"type"
:
"integer"
},
},
"mimetype-entry-addition"
:
{
"mimetype-entry-addition"
:
{
...
...
software/cloudooo/instance-cloudooo.cfg.in
View file @
2cbf9cc9
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
{% set next_port = slapparameter_dict.get(instance_parameter_dict['port-parameter-name'], next_port) | int -%}
{% set next_port = slapparameter_dict.get(instance_parameter_dict['port-parameter-name'], next_port) | int -%}
{% endif -%}
{% endif -%}
{% do assert(next_port > 0) -%}
{% do assert(next_port > 0) -%}
{% set next_port = itertools.count(next_port).
next
-%}
{% set next_port = itertools.count(next_port).
__next__
-%}
{% set backend_count = instance_parameter_dict['backend-count'] | int -%}
{% set backend_count = instance_parameter_dict['backend-count'] | int -%}
{% if instance_parameter_dict.get('backend-count-parameter-name') -%}
{% if instance_parameter_dict.get('backend-count-parameter-name') -%}
...
@@ -85,7 +85,7 @@ output = ${directory:apache-conf}/apache.conf
...
@@ -85,7 +85,7 @@ output = ${directory:apache-conf}/apache.conf
context = section parameter_dict apache-conf-parameter-dict
context = section parameter_dict apache-conf-parameter-dict
[apache-conf-parameter-dict]
[apache-conf-parameter-dict]
backend-list = {{ dumps(
apache_dict.values(
)) }}
backend-list = {{ dumps(
list(apache_dict.values()
)) }}
ip-list = {{ dumps(apache_ip_list) }}
ip-list = {{ dumps(apache_ip_list) }}
pid-file = ${directory:run}/apache.pid
pid-file = ${directory:run}/apache.pid
error-log = ${directory:log}/apache-error.log
error-log = ${directory:log}/apache-error.log
...
@@ -103,7 +103,7 @@ ssl-session-cache = ${directory:log}/apache-ssl-session-cache
...
@@ -103,7 +103,7 @@ ssl-session-cache = ${directory:log}/apache-ssl-session-cache
<= monitor-promise-base
<= monitor-promise-base
promise = check_url_available
promise = check_url_available
name = apache.py
name = apache.py
config-url = https://{{ ipv4 }}:{{
apache_dict.values(
)[0][0] }}
config-url = https://{{ ipv4 }}:{{
list(apache_dict.values()
)[0][0] }}
# XXX cloudooo replies "400 Bad Request" for GET on / but what we want to check
# XXX cloudooo replies "400 Bad Request" for GET on / but what we want to check
# is that we don't have a "503 Service Unavailable" from apache or haproxy.
# is that we don't have a "503 Service Unavailable" from apache or haproxy.
config-http-code = 400
config-http-code = 400
...
@@ -155,7 +155,7 @@ includes =
...
@@ -155,7 +155,7 @@ includes =
recipe = slapos.cookbook:generic.cloudooo
recipe = slapos.cookbook:generic.cloudooo
ip = {{ ipv4 }}
ip = {{ ipv4 }}
environment =
environment =
LD_LIBRARY_PATH = {{ parameter_dict['
cairo'] }}/lib:{{ parameter_dict['cups'] }}/lib:{{ parameter_dict['cups'] }}/lib64:{{ parameter_dict['dbus'] }}/lib:{{ parameter_dict['dbus-glib'] }}/lib:{{ parameter_dict['file'] }}/lib:{{ parameter_dict['fontconfig'] }}/lib:{{ parameter_dict['freetype'] }}/lib:{{ parameter_dict['gcc'] }}/lib:{{ parameter_dict['gcc'] }}/lib64:{{ parameter_dict['glib'] }}/lib:{{ parameter_dict['glu'] }}/lib:{{ parameter_dict['libICE'] }}/lib:{{ parameter_dict['libSM'] }}/lib:{{ parameter_dict['libX11'] }}/lib:{{ parameter_dict['libXau'] }}/lib:{{ parameter_dict['libXdmcp'] }}/lib:{{ parameter_dict['libXext'] }}/lib:{{ parameter_dict['libXrender'] }}/lib:{{ parameter_dict['libexpat'] }}/lib:{{ parameter_dict['libffi'] }}/lib:{{ parameter_dict['libffi'] }}/lib64:{{ parameter_dict['libpng12'] }}/lib:{{ parameter_dict['libxcb'] }}/lib:{{ parameter_dict['mesa
'] }}/lib:{{ parameter_dict['pixman'] }}/lib:{{ parameter_dict['xdamage'] }}/lib:{{ parameter_dict['xfixes'] }}/lib:{{ parameter_dict['zlib'] }}/lib
LD_LIBRARY_PATH = {{ parameter_dict['
avahi'] }}/lib:{{ parameter_dict['cairo'] }}/lib:{{ parameter_dict['cups'] }}/lib:{{ parameter_dict['cups'] }}/lib64:{{ parameter_dict['dbus'] }}/lib:{{ parameter_dict['dbus-glib'] }}/lib:{{ parameter_dict['file'] }}/lib:{{ parameter_dict['fontconfig'] }}/lib:{{ parameter_dict['freetype'] }}/lib:{{ parameter_dict['gcc'] }}/lib:{{ parameter_dict['gcc'] }}/lib64:{{ parameter_dict['glib'] }}/lib:{{ parameter_dict['glu'] }}/lib:{{ parameter_dict['libICE'] }}/lib:{{ parameter_dict['libSM'] }}/lib:{{ parameter_dict['libX11'] }}/lib:{{ parameter_dict['libXau'] }}/lib:{{ parameter_dict['libXdmcp'] }}/lib:{{ parameter_dict['libXext'] }}/lib:{{ parameter_dict['libXrender'] }}/lib:{{ parameter_dict['libexpat'] }}/lib:{{ parameter_dict['libffi'] }}/lib:{{ parameter_dict['libffi'] }}/lib64:{{ parameter_dict['libpng12'] }}/lib:{{ parameter_dict['libxcb'] }}/lib:{{ parameter_dict['mesa'] }}/lib:{{ parameter_dict['nss'] }}/lib:{{ parameter_dict['nspr
'] }}/lib:{{ parameter_dict['pixman'] }}/lib:{{ parameter_dict['xdamage'] }}/lib:{{ parameter_dict['xfixes'] }}/lib:{{ parameter_dict['zlib'] }}/lib
FONTCONFIG_FILE = ${fontconfig-conf:output}
FONTCONFIG_FILE = ${fontconfig-conf:output}
PATH = ${binary-link:target-directory}
PATH = ${binary-link:target-directory}
LANG = C.UTF-8
LANG = C.UTF-8
...
...
software/cloudooo/software-common.cfg
View file @
2cbf9cc9
...
@@ -40,6 +40,7 @@ context =
...
@@ -40,6 +40,7 @@ context =
[dynamic-template-cloudooo-instance-parameter-dict]
[dynamic-template-cloudooo-instance-parameter-dict]
apache = ${apache:location}
apache = ${apache:location}
avahi = ${avahi:location}
buildout-bin-directory = ${buildout:bin-directory}
buildout-bin-directory = ${buildout:bin-directory}
cairo = ${cairo:location}
cairo = ${cairo:location}
coreutils = ${coreutils:location}
coreutils = ${coreutils:location}
...
@@ -80,6 +81,8 @@ libpng12 = ${libpng12:location}
...
@@ -80,6 +81,8 @@ libpng12 = ${libpng12:location}
libreoffice-bin = ${libreoffice-bin:location}
libreoffice-bin = ${libreoffice-bin:location}
libxcb = ${libxcb:location}
libxcb = ${libxcb:location}
mesa = ${mesa:location}
mesa = ${mesa:location}
nss = ${nss:location}
nspr = ${nspr:location}
openssl = ${openssl:location}
openssl = ${openssl:location}
onlyoffice-core = ${onlyoffice-core:location}
onlyoffice-core = ${onlyoffice-core:location}
poppler = ${poppler:location}
poppler = ${poppler:location}
...
@@ -104,4 +107,4 @@ url = ${:_profile_base_location_}/${:filename}
...
@@ -104,4 +107,4 @@ url = ${:_profile_base_location_}/${:filename}
[versions]
[versions]
argparse = 1.4.0
argparse = 1.4.0
py
Pdf = 1.13
py
pdf = 3.6.0:whl
software/cloudooo/software.cfg
View file @
2cbf9cc9
...
@@ -6,9 +6,6 @@ parts =
...
@@ -6,9 +6,6 @@ parts =
${cloudooo-buildout:parts}
${cloudooo-buildout:parts}
template-cloudooo
template-cloudooo
[python]
part = python2.7
[cloudooo-software-parameter-dict]
[cloudooo-software-parameter-dict]
publish-url-name = cloudooo
publish-url-name = cloudooo
port-parameter-name = tcpv4-port
port-parameter-name = tcpv4-port
...
...
software/cloudooo/test/test.py
View file @
2cbf9cc9
...
@@ -195,7 +195,7 @@ class TestWkhtmlToPDF(HTMLtoPDFConversionFontTestMixin, CloudOooTestCase):
...
@@ -195,7 +195,7 @@ class TestWkhtmlToPDF(HTMLtoPDFConversionFontTestMixin, CloudOooTestCase):
class
TestLibreoffice
(
HTMLtoPDFConversionFontTestMixin
,
CloudOooTestCase
):
class
TestLibreoffice
(
HTMLtoPDFConversionFontTestMixin
,
CloudOooTestCase
):
__partition_reference__
=
'lo'
__partition_reference__
=
'lo'
pdf_producer
=
'LibreOffice
5.2
'
pdf_producer
=
'LibreOffice
7.5
'
expected_font_mapping
=
{
expected_font_mapping
=
{
'Arial'
:
'LiberationSans'
,
'Arial'
:
'LiberationSans'
,
'Arial Black'
:
'DejaVuSans'
,
'Arial Black'
:
'DejaVuSans'
,
...
@@ -223,7 +223,7 @@ class TestLibreoffice(HTMLtoPDFConversionFontTestMixin, CloudOooTestCase):
...
@@ -223,7 +223,7 @@ class TestLibreoffice(HTMLtoPDFConversionFontTestMixin, CloudOooTestCase):
'Liberation Sans Narrow'
:
'LiberationSansNarrow'
,
'Liberation Sans Narrow'
:
'LiberationSansNarrow'
,
'Liberation Serif'
:
'LiberationSerif'
,
'Liberation Serif'
:
'LiberationSerif'
,
'Linux LibertineG'
:
'LinuxLibertineG'
,
'Linux LibertineG'
:
'LinuxLibertineG'
,
'OpenSymbol'
:
'OpenSymbol'
,
'OpenSymbol'
:
{
'OpenSymbol'
,
'IPAMincho'
}
,
'Palatino'
:
'DejaVuSerif'
,
'Palatino'
:
'DejaVuSerif'
,
'Roboto Black'
:
'Roboto-Black'
,
'Roboto Black'
:
'Roboto-Black'
,
'Roboto Condensed Light'
:
'RobotoCondensed-Light'
,
'Roboto Condensed Light'
:
'RobotoCondensed-Light'
,
...
...
software/neoppod/software-mariadb-10.4.cfg
deleted
100644 → 0
View file @
c1008bb2
[buildout]
extends = software.cfg
[mariadb]
location = ${mariadb-10.4:location}
software/repman/software.cfg
View file @
2cbf9cc9
...
@@ -32,9 +32,6 @@ parts =
...
@@ -32,9 +32,6 @@ parts =
caucase-eggs
caucase-eggs
gowork
gowork
[mariadb]
location = ${mariadb-10.4:location}
[template-mysqld-wrapper]
[template-mysqld-wrapper]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
output = ${buildout:parts-directory}/${:_buildout_section_name_}/mysqld.in
output = ${buildout:parts-directory}/${:_buildout_section_name_}/mysqld.in
...
...
software/theia/buildout.hash.cfg
View file @
2cbf9cc9
...
@@ -47,7 +47,7 @@ md5sum = e2f6c483cce09f87ab1e63ae8be0daf4
...
@@ -47,7 +47,7 @@ md5sum = e2f6c483cce09f87ab1e63ae8be0daf4
[theia-import]
[theia-import]
_update_hash_filename_ = theia_import.py
_update_hash_filename_ = theia_import.py
md5sum =
1a668d6203d42b4d46d56e24c7606cb2
md5sum =
45e757f216374d22f0a92d5334dc00f0
[slapos.css.in]
[slapos.css.in]
_update_hash_filename_ = slapos.css.in
_update_hash_filename_ = slapos.css.in
...
...
software/theia/software.cfg
View file @
2cbf9cc9
...
@@ -125,6 +125,7 @@ eggs =
...
@@ -125,6 +125,7 @@ eggs =
${slapos-toolbox:eggs}
${slapos-toolbox:eggs}
six
six
zc.buildout
zc.buildout
requests
[python-for-standalone]
[python-for-standalone]
<= python-with-eggs
<= python-with-eggs
...
...
software/theia/theia_import.py
View file @
2cbf9cc9
...
@@ -4,8 +4,12 @@ import itertools
...
@@ -4,8 +4,12 @@ import itertools
import
os
import
os
import
sys
import
sys
import
subprocess
as
sp
import
subprocess
as
sp
import
time
import
traceback
import
traceback
import
requests
from
requests.exceptions
import
RequestException
import
six
import
six
from
six.moves
import
configparser
from
six.moves
import
configparser
...
@@ -56,6 +60,7 @@ class TheiaImport(object):
...
@@ -56,6 +60,7 @@ class TheiaImport(object):
configp
=
configparser
.
SafeConfigParser
()
configp
=
configparser
.
SafeConfigParser
()
configp
.
read
(
cfg
)
configp
.
read
(
cfg
)
self
.
proxy_db
=
configp
.
get
(
'slapproxy'
,
'database_uri'
)
self
.
proxy_db
=
configp
.
get
(
'slapproxy'
,
'database_uri'
)
self
.
proxy_rest_url
=
configp
.
get
(
'slapos'
,
'master_rest_url'
)
# 200 OK
self
.
instance_dir
=
configp
.
get
(
'slapos'
,
'instance_root'
)
self
.
instance_dir
=
configp
.
get
(
'slapos'
,
'instance_root'
)
mirror_dir
=
self
.
mirror_path
(
self
.
instance_dir
)
mirror_dir
=
self
.
mirror_path
(
self
.
instance_dir
)
partitions
=
glob
.
glob
(
os
.
path
.
join
(
mirror_dir
,
'slappart*'
))
partitions
=
glob
.
glob
(
os
.
path
.
join
(
mirror_dir
,
'slappart*'
))
...
@@ -150,7 +155,27 @@ class TheiaImport(object):
...
@@ -150,7 +155,27 @@ class TheiaImport(object):
print
(
msg
)
print
(
msg
)
raise
Exception
(
msg
)
raise
Exception
(
msg
)
def
wait_for_proxy
(
self
):
timeout
=
10
sleep
=
20
url
=
self
.
proxy_rest_url
for
i
in
range
(
10
):
try
:
self
.
log
(
'- GET proxy %s with timeout %d (attempt %d)'
%
(
url
,
timeout
,
i
))
response
=
requests
.
get
(
url
,
verify
=
True
,
timeout
=
timeout
)
except
RequestException
:
if
i
==
9
:
raise
else
:
self
.
log
(
'- Sleep %ds before retrying'
%
sleep
)
time
.
sleep
(
sleep
)
else
:
response
.
raise_for_status
()
break
def
log
(
self
,
msg
):
def
log
(
self
,
msg
):
msg
=
time
.
strftime
(
"%Y-%B-%d %H:%M:%S - "
)
+
msg
print
(
msg
)
print
(
msg
)
self
.
logs
.
append
(
msg
)
self
.
logs
.
append
(
msg
)
...
@@ -214,6 +239,9 @@ class TheiaImport(object):
...
@@ -214,6 +239,9 @@ class TheiaImport(object):
self
.
log
(
'Start slapproxy again'
)
self
.
log
(
'Start slapproxy again'
)
self
.
supervisorctl
(
'start'
,
'slapos-proxy'
)
self
.
supervisorctl
(
'start'
,
'slapos-proxy'
)
self
.
log
(
'Wait until slapproxy is available'
)
self
.
wait_for_proxy
()
self
.
log
(
'Reformat partitions'
)
self
.
log
(
'Reformat partitions'
)
self
.
slapos
(
'node'
,
'format'
,
'--now'
)
self
.
slapos
(
'node'
,
'format'
,
'--now'
)
...
...
stack/cloudooo.cfg
View file @
2cbf9cc9
[buildout]
[buildout]
extends =
extends =
../stack/slapos.cfg
../stack/slapos.cfg
../component/avahi/buildout.cfg
../component/apache/buildout.cfg
../component/apache/buildout.cfg
../component/cloudooo/buildout.cfg
../component/cloudooo/buildout.cfg
../component/coreutils/buildout.cfg
../component/coreutils/buildout.cfg
...
@@ -22,12 +23,12 @@ extends =
...
@@ -22,12 +23,12 @@ extends =
../component/logrotate/buildout.cfg
../component/logrotate/buildout.cfg
../component/lxml-python/buildout.cfg
../component/lxml-python/buildout.cfg
../component/mesa/buildout.cfg
../component/mesa/buildout.cfg
../component/nss/buildout.cfg
../component/onlyoffice-core/buildout.cfg
../component/onlyoffice-core/buildout.cfg
../component/openssl/buildout.cfg
../component/poppler/buildout.cfg
../component/poppler/buildout.cfg
../component/xorg/buildout.cfg
../component/xorg/buildout.cfg
versions = versions
parts =
parts =
${stack-cloudooo-buildout:parts}
${stack-cloudooo-buildout:parts}
...
@@ -74,5 +75,5 @@ Paste = 3.4.0
...
@@ -74,5 +75,5 @@ Paste = 3.4.0
PasteScript = 3.2.0:whl
PasteScript = 3.2.0:whl
WSGIUtils = 0.7.2
WSGIUtils = 0.7.2
WSGIserver = 1.3
WSGIserver = 1.3
python-magic = 0.4.
18
python-magic = 0.4.
27
PasteDeploy = 2.1.0
PasteDeploy = 2.1.0
stack/slapos.cfg
View file @
2cbf9cc9
...
@@ -297,7 +297,7 @@ simplegeneric = 0.8.1
...
@@ -297,7 +297,7 @@ simplegeneric = 0.8.1
singledispatch = 3.4.0.3
singledispatch = 3.4.0.3
six = 1.16.0
six = 1.16.0
slapos.cookbook = 1.0.326
slapos.cookbook = 1.0.326
slapos.core = 1.
9.3
slapos.core = 1.
10.0
slapos.extension.shared = 1.0
slapos.extension.shared = 1.0
slapos.libnetworkcache = 0.25
slapos.libnetworkcache = 0.25
slapos.rebootstrap = 4.5
slapos.rebootstrap = 4.5
...
...
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