software-common.cfg 3.9 KB
Newer Older
1 2 3 4 5 6 7 8
# Note on LXML/END LXML: they delimit areas where lxml magic is needed. lxml is
# a slapos.cookbook dependency, so it should be fetched automatically. But when
# automatically fetched, it gets built against system headers/libs, which is
# forbidden in slapos. So we need to fetch lxml explicitly so it is properly
# built.

[buildout]
extends =
9
    buildout.hash.cfg
10
    ../../stack/slapos.cfg
11
    ../../stack/logrotate/buildout.cfg
12
    ../../stack/monitor/buildout.cfg
13
    ../../component/cython-zstd/buildout.cfg
14 15 16
#LXML
    ../../component/lxml-python/buildout.cfg
#END LXML
17
    ../../component/msgpack-python/buildout.cfg
18
    ../../component/python-mysqlclient/buildout.cfg
19
    ../../component/python-cryptography/buildout.cfg
20
    ../../component/pycurl/buildout.cfg
21
    ../../component/ZODB/buildout.cfg
22
    ../../component/ZEO/buildout.cfg
23
    ../../component/zodbtools/buildout.cfg
24 25

parts =
26
# keep neoppod first so that ZODB is built correctly,
27
# before any other section that would depend on it
28
    neoppod-develop
29
    neoppod
30 31
    slapos-cookbook

32 33 34
[python]
part = python2.7

35 36
[neoppod-repository]
recipe = slapos.recipe.build:gitclone
37
repository = https://lab.nexedi.com/nexedi/neoppod.git
38 39
git-executable = ${git:location}/bin/git

40 41 42
[neoppod-setup-env]
PATH = ${git:location}/bin:%(PATH)s

43 44 45
[neoppod-develop]
recipe = zc.recipe.egg:develop
setup = ${neoppod-repository:location}
46
environment = neoppod-setup-env
47 48 49

[neoppod]
recipe = zc.recipe.egg
50
eggs = neoppod[admin, ctl, master]
51
  ${cython-zstd:egg}
52
  ${msgpack-python:egg}
53
  ${:adapter-egg}
54 55
  ${ZODB:egg}
  ${zodbtools:egg}
56 57
  psutil
  zope.testing
58
  coverage
59
  setproctitle
60
adapter-egg = ${python-mysqlclient:egg}
61

62 63
[download-base-neo]
recipe = slapos.recipe.build:download
64
url = ${:_profile_base_location_}/${:filename}
65 66 67 68

# XXX: must be rendered, not just dled
[instance-common]
recipe = slapos.recipe.template:jinja2
69 70
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/${:_buildout_section_name_}.cfg
71 72 73 74 75 76
context =
    key bin_directory buildout:bin-directory
    key develop_eggs_directory buildout:develop-eggs-directory
    key eggs_directory buildout:eggs-directory
    key neo_admin instance-neo-admin:target
    key neo_master instance-neo-master:target
77
    key neo instance-neo:target
78 79
    key template_logrotate_base template-logrotate-base:output
    key template_monitor monitor2-template:output
80 81 82
    ${:adapter-context}
adapter-context =
    key mariadb_location mariadb:location
83
    key template_mysqld_wrapper template-mysqld-wrapper:output
84 85 86 87 88 89 90 91 92 93 94
    key template_neo_my_cnf template-neo-my-cnf:target

[root-common]
<= download-base-neo

[instance-neo-admin]
<= download-base-neo

[instance-neo-master]
<= download-base-neo

95
[instance-neo]
96 97 98 99 100
<= download-base-neo

[template-neo-my-cnf]
<= download-base-neo

101
[template-mysqld-wrapper]
102 103 104 105
recipe = slapos.recipe.template
output = ${buildout:parts-directory}/${:_buildout_section_name_}/mysqld.in
inline =
  #!/bin/sh -e
106
  basedir='${mariadb:location}'
107
  datadir='{{datadir}}'
108 109 110 111
  marker=$datadir/.slapos_initializing
  [ -d "$datadir/mysql" ] && [ ! -f "$marker" ] || {
    find "$datadir/" -mindepth 1 ! -path $marker -delete || mkdir "$datadir"
    touch "$marker"
112
    "$basedir/scripts/mysql_install_db" \
113 114
      --defaults-file='{{defaults_file}}' \
      --skip-name-resolve \
115
      --auth-root-authentication-method=normal \
116
      --basedir="$basedir" --plugin_dir="$basedir/lib/plugin" \
117 118
      --datadir="$datadir"
    rm "$marker"
119
  }
120 121 122 123 124
  {%- if environ is defined %}
  {%-   for variable in environ.splitlines() %}
  {{ variable }} \
  {%-   endfor %}
  {%- endif %}
125
  exec "$basedir/bin/mysqld" --defaults-file='{{defaults_file}}' "$@"
126

127
[versions]
128
coverage = 5.5
129
ecdsa = 0.13
130
mysqlclient = 1.3.12
131
pycrypto = 2.6.1
Rafael Monnerat's avatar
Rafael Monnerat committed
132
cython-zstd = 0.2
133
funcsigs = 1.0.2
Rafael Monnerat's avatar
Rafael Monnerat committed
134 135


Xavier Thompson's avatar
Xavier Thompson committed
136 137
# Test Suite: NEO.UnitTest-Master ran at 2023/01/26 05:54:49.268956 UTC
#             28 failures, 3 errors, 873 total, status: FAIL
Rafael Monnerat's avatar
Rafael Monnerat committed
138 139

[neoppod-repository]
Thomas Gambier's avatar
Thomas Gambier committed
140
revision = d5afef8e24ae41660ad011320868e8d0b6b1c95b
Rafael Monnerat's avatar
Rafael Monnerat committed
141