software-common.cfg 4.7 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
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
18
    ../../component/patch/buildout.cfg
19
    ../../component/python-mysqlclient/buildout.cfg
20
    ../../component/python-cryptography/buildout.cfg
21
    ../../component/pycurl/buildout.cfg
22 23

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

30 31
[neoppod-repository]
recipe = slapos.recipe.build:gitclone
32
repository = https://lab.nexedi.com/nexedi/neoppod.git
33 34
git-executable = ${git:location}/bin/git

35 36 37
[neoppod-setup-env]
PATH = ${git:location}/bin:%(PATH)s

38 39 40
[neoppod-develop]
recipe = zc.recipe.egg:develop
setup = ${neoppod-repository:location}
41
environment = neoppod-setup-env
42 43 44

[neoppod]
recipe = zc.recipe.egg
45
eggs = neoppod[admin, ctl, master]
46
  ${cython-zstd:egg}
47
  ${msgpack-python:egg}
48
  ${:adapter-egg}
49
  ${BTrees:egg}
50 51 52
  psutil
  ZODB
  zope.testing
53
  zodbtools
54
  coverage
55
  setproctitle
56
adapter-egg = ${python-mysqlclient:egg}
57 58 59 60 61
patch-binary = ${patch:location}/bin/patch
ZEO-patch-options = -p1
ZEO-patches =
  ${:_profile_base_location_}/../../component/egg-patch/ZEO4/TCP_NODELAY.patch#b07288522d5c6857738240d948321df6

62 63 64 65 66 67 68 69 70 71 72
# XXX: buildout fails to install properly eggs with setup_requires
[BTrees]
recipe = zc.recipe.egg:custom
egg = ${:_buildout_section_name_}
setup-eggs = ${persistent:egg}

[persistent]
recipe = zc.recipe.egg:custom
egg = ${:_buildout_section_name_}
setup-eggs = ${python-cffi:egg}
###
73

74 75
[download-base-neo]
recipe = slapos.recipe.build:download
76
url = ${:_profile_base_location_}/${:filename}
77 78 79 80 81 82
# XXX: following mode should be the default
mode = 644

# XXX: must be rendered, not just dled
[instance-common]
recipe = slapos.recipe.template:jinja2
83
template = ${:_profile_base_location_}/${:filename}
84 85 86 87 88 89 90
rendered = ${buildout:directory}/${:_buildout_section_name_}.cfg
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
91
    key neo instance-neo:target
92
    key template_logrotate_base template-logrotate-base:rendered
93
    key template_monitor monitor2-template:rendered
94 95 96
    ${:adapter-context}
adapter-context =
    key mariadb_location mariadb:location
97
    key template_mysqld_wrapper template-mysqld-wrapper:rendered
98 99 100 101 102 103 104 105 106 107 108
    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

109
[instance-neo]
110 111 112 113 114
<= download-base-neo

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

115 116 117 118 119 120
[template-mysqld-wrapper]
recipe = slapos.recipe.template:jinja2
rendered = ${buildout:parts-directory}/${:_buildout_section_name_}/mysqld.in
mode = 644
template =
  inline:{% raw %}#!/bin/sh -e
121
  basedir='${mariadb:location}'
122 123 124
  datadir='{{datadir}}'
  [ -e "$datadir" ] || {
    rm -vrf "$datadir.new"
125
    "$basedir/scripts/mysql_install_db" \
126 127
      --defaults-file='{{defaults_file}}' \
      --skip-name-resolve \
128
      --auth-root-authentication-method=normal \
129
      --basedir="$basedir" --plugin_dir="$basedir/lib/plugin" \
130 131 132
      --datadir="$datadir.new"
    mv -v "$datadir.new" "$datadir"
  }
133 134 135 136 137
  {%- if environ is defined %}
  {%-   for variable in environ.splitlines() %}
  {{ variable }} \
  {%-   endfor %}
  {%- endif %}
138
  exec "$basedir/bin/mysqld" --defaults-file='{{defaults_file}}' "$@"
139 140
  {% endraw %}

141
[versions]
Kirill Smelkov's avatar
Kirill Smelkov committed
142
BTrees = 4.5.1
143
ZODB = 4.4.5
144
coverage = 4.5.1
145
mock = 3.0.5
146
ecdsa = 0.13
147
mysqlclient = 1.3.12
148
persistent = 4.6.4
149 150
pycrypto = 2.6.1
pycurl = 7.43.0
151
setproctitle = 1.1.10
152
slapos.recipe.template = 4.4
153
transaction = 1.7.0
154
zodbpickle = 1.0.4
155
zodbtools = 0.0.0.dev4
Rafael Monnerat's avatar
Rafael Monnerat committed
156
cython-zstd = 0.2
157
python-dateutil = 2.7.3
158

159 160 161 162 163 164 165
# Required by:
# zodbtools==0.0.0dev4
zodburi = 2.3.0

# Required by:
# zodburi==2.0
# ZEO 5 requires transaction >= 2
166
ZEO = 4.3.1+SlapOSPatched001
167 168 169 170

# Required by:
# ZEO==4.3.1
zdaemon = 4.2.0
Rafael Monnerat's avatar
Rafael Monnerat committed
171

172 173 174
# Required by:
# mock = 3.0.5
funcsigs = 1.0.2
Rafael Monnerat's avatar
Rafael Monnerat committed
175 176


Jérome Perrin's avatar
Jérome Perrin committed
177 178
# Test Suite: NEO.UnitTest-Master ran at 2020/10/29 05:28:35.753123 UTC
#             22 failures, 0 errors, 835 total, status: PASS
Rafael Monnerat's avatar
Rafael Monnerat committed
179 180

[neoppod-repository]
Thomas Gambier's avatar
Thomas Gambier committed
181
revision = c1c268946b27358dc273c753180b60db57037af7
Rafael Monnerat's avatar
Rafael Monnerat committed
182