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
Paul Graydon
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
Show 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]
extends =
../git/buildout.cfg
parts = babeld
[babeld-repository]
...
...
@@ -6,7 +9,7 @@ recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/babeld.git
branch = master
git-executable = ${git:location}/bin/git
revision =
hmac-nxd3
revision =
v1.12.1-nxd1
[babeld]
recipe = slapos.recipe.cmmi
...
...
@@ -14,6 +17,8 @@ path = ${babeld-repository:location}
make-options = CC='gcc -std=gnu99'
configure-command =
echo "No configure.."
environment =
PATH=${git:location}/bin:%(PATH)s
make-targets =
install PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}
component/cloudooo/buildout.cfg
View file @
2cbf9cc9
[buildout]
extends =
../git/buildout.cfg
../lxml-python/buildout.cfg
parts =
...
...
@@ -12,9 +13,8 @@ setup = ${cloudooo-repository:location}
[cloudooo-repository]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/cloudooo.git
branch = master
git-executable = ${git:location}/bin/git
revision =
78d15e091df750952998a6a23f49300a5a0faa53
revision =
98055878283583fad61374c93fb777c7a91fa070
[cloudooo]
recipe = zc.recipe.egg
...
...
component/file/buildout.cfg
View file @
2cbf9cc9
...
...
@@ -11,8 +11,8 @@ extends =
[file]
recipe = slapos.recipe.cmmi
shared = true
url = http://ftp.
icm.edu.pl/packages/file/file-5.41
.tar.gz
md5sum =
18233bb0a0089dfdc7dfbc93b96f231b
url = http://ftp.
astron.com/pub/file/file-5.44
.tar.gz
md5sum =
a60d586d49d015d842b9294864a89c7a
configure-options =
--disable-static
--disable-libseccomp
...
...
component/groonga/buildout.cfg
View file @
2cbf9cc9
...
...
@@ -15,8 +15,8 @@ extends =
[groonga]
recipe = slapos.recipe.cmmi
shared = true
url = https://packages.groonga.org/source/groonga/groonga-1
2.0.7
.tar.gz
md5sum =
5ef412a6941994e623cb50d76a8be261
url = https://packages.groonga.org/source/groonga/groonga-1
3.0.1
.tar.gz
md5sum =
d17d154c2ceffbf8b21d8ef6d3afa644
groonga-plugin-dir = @@LOCATION@@/lib/groonga/plugins/
# temporary patch to respect more tokens in natural language mode.
patches =
...
...
@@ -48,8 +48,8 @@ environment =
[groonga-normalizer-mysql]
recipe = slapos.recipe.cmmi
shared = true
url = https://packages.groonga.org/source/groonga-normalizer-mysql/groonga-normalizer-mysql-1.
1.8
.tar.gz
md5sum =
a1520691da3083e14bdc65a9ec57a620
url = https://packages.groonga.org/source/groonga-normalizer-mysql/groonga-normalizer-mysql-1.
2.1
.tar.gz
md5sum =
d9b48b3ea9dc7423e7c40eb326d86395
groonga-plugin-dir = @@LOCATION@@/lib/groonga/plugins/
pre-configure = mkdir -p ${:groonga-plugin-dir}
make-targets = GROONGA_PLUGINS_DIR=${:groonga-plugin-dir} install
...
...
component/libreoffice-bin/buildout.cfg
View file @
2cbf9cc9
...
...
@@ -8,11 +8,11 @@ parts =
[libreoffice-bin]
recipe = slapos.recipe.build
version =
5.2.4
.2
url = http://downloadarchive.documentfoundation.org/libreoffice/old/${:version}/rpm/${:_url1}/LibreOffice_${:version}_${:_url2}_rpm.tar.gz
version =
7.5.2
.2
url = http
s
://downloadarchive.documentfoundation.org/libreoffice/old/${:version}/rpm/${:_url1}/LibreOffice_${:version}_${:_url2}_rpm.tar.gz
# where office code can be found?
officedir = libreoffice
5.2
officedir = libreoffice
7.5
install =
import os
import sys
...
...
@@ -38,12 +38,14 @@ install =
cpio = ${cpio:location}/bin/cpio
rpm2cpio = ${rpm2cpio:target}
[libreoffice-bin:getattr(sys,'_multiarch',None)=='i386-linux-gnu']
_url1 = x86
_url2 = Linux_x86
md5sum = 7a0b33a2d18f06143258c428c32de213
[libreoffice-bin:getattr(sys,'_multiarch',None)!='x86_64-linux-gnu']
recipe = plone.recipe.command
command =
echo unsupported architecture
false
stop-on-error = true
[libreoffice-bin:getattr(sys,'_multiarch',None)=='x86_64-linux-gnu']
_url1 = x86_64
_url2 = Linux_x86-64
md5sum =
cbea6cd17063b5bcbe0cb32f7819f0cf
md5sum =
efb0351ac9ebd954c43f77d59632bd28
component/mariadb/buildout.cfg
View file @
2cbf9cc9
...
...
@@ -26,12 +26,12 @@ extends =
parts =
mariadb
[mariadb
-10.4
]
[mariadb]
recipe = slapos.recipe.cmmi
shared = true
url = https://archive.mariadb.org//mariadb-${:version}/source/mariadb-${:version}.tar.gz
version = 10.4.2
5
md5sum =
76e6ee973adb7deb15d7936f710eb5a4
version = 10.4.2
8
md5sum =
d098e9af77a26260a6a6c21a7ed0daf6
pre-configure =
set '\bSET(PLUGIN_AUTH_PAM YES CACHE BOOL "")' cmake/build_configurations/mysql_release.cmake
grep -q "$@"
...
...
@@ -101,8 +101,8 @@ post-install =
# as plugin-dir ( https://mariadb.com/kb/en/server-system-variables/#plugin_dir )
recipe = slapos.recipe.cmmi
shared = true
url = https://packages.groonga.org/source/mroonga/mroonga-1
2.09
.tar.gz
md5sum =
637d73b86239cc9c3758e9486746d430
url = https://packages.groonga.org/source/mroonga/mroonga-1
3.01
.tar.gz
md5sum =
062d9575fbf8759b529fdc46b077a9c1
pre-configure =
rm -rf fake_mariadb_source
mkdir -p fake_mariadb_source
...
...
@@ -131,21 +131,3 @@ environment =
LDFLAGS=-L${groonga:location}/lib
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
[mariadb
-10.4
]
[mariadb]
patches +=
${:_profile_base_location_}/mdev20693.patch#34ca907d6b36ba81d75bed118243f637
component/re6stnet/buildout.cfg
View file @
2cbf9cc9
...
...
@@ -12,6 +12,9 @@ extends =
parts =
re6stnet
[python]
part = python2.7
[gcc]
min_version = 0
...
...
component/rpm2cpio/buildout.cfg
View file @
2cbf9cc9
...
...
@@ -6,5 +6,5 @@ parts =
# https://github.com/ruda/rpm2cpio
recipe = slapos.recipe.build:download
shared = true
url =
${:_profile_base_location_}/${:_buildout_section_name_}
md5sum =
aa3a5920a1d8963592be0c2666ee05e2
url =
https://raw.githubusercontent.com/ruda/rpm2cpio/5afad4b65e4661a771db6f728abefe2c1e84b9ae/rpm2cpio.py
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
[template-cloudooo-instance]
filename = instance-cloudooo.cfg.in
md5sum =
3c499fd3cdfc7915d6eaf1cf4130b56d
md5sum =
13759bf9720f0e7109fc35a8ad8a50a9
[template-haproxy-cfg]
filename = haproxy.cfg.in
...
...
software/cloudooo/instance-cloudooo-input-schema.json
View file @
2cbf9cc9
{
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"type"
:
"object"
,
"extends"
:
"./schema-definitions.json#"
,
"properties"
:
{
"tcpv4-port"
:
{
"allOf"
:
[
{
"$ref"
:
"#/definitions/tcpv4port"
},
{
"description"
:
"Start allocating ports at this value, going upward"
,
"default"
:
23000
}
]
"description"
:
"TCP port used for HTTP server"
,
"default"
:
8000
,
"type"
:
"integer"
},
"backend-count"
:
{
"description"
:
"Number of backend cloudooo instances"
,
...
...
@@ -20,7 +13,7 @@
"type"
:
"integer"
},
"timeout"
:
{
"description"
:
"
Configure apache with this timeout
"
,
"description"
:
"
Timeout for document conversions, in seconds
"
,
"type"
:
"integer"
},
"mimetype-entry-addition"
:
{
...
...
software/cloudooo/instance-cloudooo.cfg.in
View file @
2cbf9cc9
...
...
@@ -10,7 +10,7 @@
{% set next_port = slapparameter_dict.get(instance_parameter_dict['port-parameter-name'], next_port) | int -%}
{% endif -%}
{% 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 -%}
{% if instance_parameter_dict.get('backend-count-parameter-name') -%}
...
...
@@ -85,7 +85,7 @@ output = ${directory:apache-conf}/apache.conf
context = section 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) }}
pid-file = ${directory:run}/apache.pid
error-log = ${directory:log}/apache-error.log
...
...
@@ -103,7 +103,7 @@ ssl-session-cache = ${directory:log}/apache-ssl-session-cache
<= monitor-promise-base
promise = check_url_available
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
# is that we don't have a "503 Service Unavailable" from apache or haproxy.
config-http-code = 400
...
...
@@ -155,7 +155,7 @@ includes =
recipe = slapos.cookbook:generic.cloudooo
ip = {{ ipv4 }}
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}
PATH = ${binary-link:target-directory}
LANG = C.UTF-8
...
...
software/cloudooo/software-common.cfg
View file @
2cbf9cc9
...
...
@@ -40,6 +40,7 @@ context =
[dynamic-template-cloudooo-instance-parameter-dict]
apache = ${apache:location}
avahi = ${avahi:location}
buildout-bin-directory = ${buildout:bin-directory}
cairo = ${cairo:location}
coreutils = ${coreutils:location}
...
...
@@ -80,6 +81,8 @@ libpng12 = ${libpng12:location}
libreoffice-bin = ${libreoffice-bin:location}
libxcb = ${libxcb:location}
mesa = ${mesa:location}
nss = ${nss:location}
nspr = ${nspr:location}
openssl = ${openssl:location}
onlyoffice-core = ${onlyoffice-core:location}
poppler = ${poppler:location}
...
...
@@ -104,4 +107,4 @@ url = ${:_profile_base_location_}/${:filename}
[versions]
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 =
${cloudooo-buildout:parts}
template-cloudooo
[python]
part = python2.7
[cloudooo-software-parameter-dict]
publish-url-name = cloudooo
port-parameter-name = tcpv4-port
...
...
software/cloudooo/test/test.py
View file @
2cbf9cc9
...
...
@@ -195,7 +195,7 @@ class TestWkhtmlToPDF(HTMLtoPDFConversionFontTestMixin, CloudOooTestCase):
class
TestLibreoffice
(
HTMLtoPDFConversionFontTestMixin
,
CloudOooTestCase
):
__partition_reference__
=
'lo'
pdf_producer
=
'LibreOffice
5.2
'
pdf_producer
=
'LibreOffice
7.5
'
expected_font_mapping
=
{
'Arial'
:
'LiberationSans'
,
'Arial Black'
:
'DejaVuSans'
,
...
...
@@ -223,7 +223,7 @@ class TestLibreoffice(HTMLtoPDFConversionFontTestMixin, CloudOooTestCase):
'Liberation Sans Narrow'
:
'LiberationSansNarrow'
,
'Liberation Serif'
:
'LiberationSerif'
,
'Linux LibertineG'
:
'LinuxLibertineG'
,
'OpenSymbol'
:
'OpenSymbol'
,
'OpenSymbol'
:
{
'OpenSymbol'
,
'IPAMincho'
}
,
'Palatino'
:
'DejaVuSerif'
,
'Roboto Black'
:
'Roboto-Black'
,
'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 =
caucase-eggs
gowork
[mariadb]
location = ${mariadb-10.4:location}
[template-mysqld-wrapper]
recipe = slapos.recipe.template
output = ${buildout:parts-directory}/${:_buildout_section_name_}/mysqld.in
...
...
software/theia/buildout.hash.cfg
View file @
2cbf9cc9
...
...
@@ -47,7 +47,7 @@ md5sum = e2f6c483cce09f87ab1e63ae8be0daf4
[theia-import]
_update_hash_filename_ = theia_import.py
md5sum =
1a668d6203d42b4d46d56e24c7606cb2
md5sum =
45e757f216374d22f0a92d5334dc00f0
[slapos.css.in]
_update_hash_filename_ = slapos.css.in
...
...
software/theia/software.cfg
View file @
2cbf9cc9
...
...
@@ -125,6 +125,7 @@ eggs =
${slapos-toolbox:eggs}
six
zc.buildout
requests
[python-for-standalone]
<= python-with-eggs
...
...
software/theia/theia_import.py
View file @
2cbf9cc9
...
...
@@ -4,8 +4,12 @@ import itertools
import
os
import
sys
import
subprocess
as
sp
import
time
import
traceback
import
requests
from
requests.exceptions
import
RequestException
import
six
from
six.moves
import
configparser
...
...
@@ -56,6 +60,7 @@ class TheiaImport(object):
configp
=
configparser
.
SafeConfigParser
()
configp
.
read
(
cfg
)
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'
)
mirror_dir
=
self
.
mirror_path
(
self
.
instance_dir
)
partitions
=
glob
.
glob
(
os
.
path
.
join
(
mirror_dir
,
'slappart*'
))
...
...
@@ -150,7 +155,27 @@ class TheiaImport(object):
print
(
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
):
msg
=
time
.
strftime
(
"%Y-%B-%d %H:%M:%S - "
)
+
msg
print
(
msg
)
self
.
logs
.
append
(
msg
)
...
...
@@ -214,6 +239,9 @@ class TheiaImport(object):
self
.
log
(
'Start slapproxy again'
)
self
.
supervisorctl
(
'start'
,
'slapos-proxy'
)
self
.
log
(
'Wait until slapproxy is available'
)
self
.
wait_for_proxy
()
self
.
log
(
'Reformat partitions'
)
self
.
slapos
(
'node'
,
'format'
,
'--now'
)
...
...
stack/cloudooo.cfg
View file @
2cbf9cc9
[buildout]
extends =
../stack/slapos.cfg
../component/avahi/buildout.cfg
../component/apache/buildout.cfg
../component/cloudooo/buildout.cfg
../component/coreutils/buildout.cfg
...
...
@@ -22,12 +23,12 @@ extends =
../component/logrotate/buildout.cfg
../component/lxml-python/buildout.cfg
../component/mesa/buildout.cfg
../component/nss/buildout.cfg
../component/onlyoffice-core/buildout.cfg
../component/openssl/buildout.cfg
../component/poppler/buildout.cfg
../component/xorg/buildout.cfg
versions = versions
parts =
${stack-cloudooo-buildout:parts}
...
...
@@ -74,5 +75,5 @@ Paste = 3.4.0
PasteScript = 3.2.0:whl
WSGIUtils = 0.7.2
WSGIserver = 1.3
python-magic = 0.4.
18
python-magic = 0.4.
27
PasteDeploy = 2.1.0
stack/slapos.cfg
View file @
2cbf9cc9
...
...
@@ -297,7 +297,7 @@ simplegeneric = 0.8.1
singledispatch = 3.4.0.3
six = 1.16.0
slapos.cookbook = 1.0.326
slapos.core = 1.
9.3
slapos.core = 1.
10.0
slapos.extension.shared = 1.0
slapos.libnetworkcache = 0.25
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