software-base.cfg 4.67 KB
Newer Older
1 2 3
[buildout]
extends =
  buildout.hash.cfg
Kirill Smelkov's avatar
.  
Kirill Smelkov committed
4
  ../../stack/slapos-dev.cfg
5 6 7
  ../../stack/monitor/buildout.cfg
  ../../component/logrotate/buildout.cfg
  ../../component/nghttp2/buildout.cfg
8
  ../../component/iperf3/buildout.cfg
9
  ../../component/python3/buildout.cfg
10 11
  ../../component/python-pynacl/buildout.cfg
  ../../component/bcrypt/buildout.cfg
12 13 14
  ../../component/numpy/buildout.cfg
  ../../component/pygolang/buildout.cfg
  ../../component/git/buildout.cfg
15
  ../../component/dnsmasq/buildout.cfg
Kirill Smelkov's avatar
.  
Kirill Smelkov committed
16
  ../../component/fluent-bit/buildout.cfg
Kirill Smelkov's avatar
.  
Kirill Smelkov committed
17
  ../../component/openssh/buildout.cfg
Kirill Smelkov's avatar
.  
Kirill Smelkov committed
18
  ru/buildout.cfg
19 20

parts +=
Kirill Smelkov's avatar
.  
Kirill Smelkov committed
21
  slapos.toolbox-dev
22 23 24 25 26
  template
  slapos-cookbook
  ltelogs.jinja2.sh
# copy all configs by default
  mme.jinja2.cfg
27
  dnsmasq.jinja2.cfg
28 29 30 31
  ims.jinja2.cfg
  enb.jinja2.cfg
  gnb.jinja2.cfg
  ue_db.jinja2.cfg
Kirill Smelkov's avatar
.  
Kirill Smelkov committed
32
  ue.jinja2.cfg
Kirill Smelkov's avatar
.  
Kirill Smelkov committed
33
  amari_lte.jinja2
34
  sib23.jinja2.asn
35 36 37 38 39 40 41
  monitor-httpd-extra-conf
# copy all gadget file
  gadget
  g-chart.line.js
  promise.gadget.js
  software.cfg.html
  rsvp.js
42
  iperf3
43
  dnsmasq
44
  eggs
45
  xamari
46
  setcap
47 48 49 50 51 52 53 54 55 56 57 58 59
# unimplemented parts - the http monitor and better log handling using logrotate
#  apache-php
#  logrotate

[template]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/template.cfg

[download-base]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_update_hash_filename_}

60 61 62
[amarisoft-stats.jinja2.py]
<= download-base

63 64 65
[amarisoft-rf-info.jinja2.py]
<= download-base

66
[template-enb]
67 68
<= download-base

69
[template-gnb]
70 71
<= download-base

72
[template-core-network]
73 74
<= download-base

Kirill Smelkov's avatar
.  
Kirill Smelkov committed
75
[template-ue]
76 77
<= download-base

78 79 80
[template-obsolete]
<= download-base

81 82 83 84 85 86 87 88
[copy-to-instance]
recipe  = slapos.recipe.build:download
url     = ${:_profile_base_location_}/${:_buildout_section_name_}

[copy-config-to-instance]
recipe  = slapos.recipe.build:download
url     = ${:_profile_base_location_}/config/${:_buildout_section_name_}

89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
[gadget]
recipe = slapos.recipe.template
output = ${buildout:directory}/${:_buildout_section_name_}/renderjs.js
url = https://lab.nexedi.com/nexedi/renderjs/raw/b715d066bfddc30bedfc8356fb720dcbb391378e/dist/renderjs-0.28.0.js
md5sum = 7e074a29b07e0045d2ba8a8e63bd499e

[monitor-httpd-extra-conf]
recipe = slapos.recipe.template
output = ${buildout:directory}/etc/httpd-include-file.conf
inline =
  Alias /gadget  ${buildout:directory}/gadget
  <Directory  ${buildout:directory}/gadget>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
    Satisfy Any
    Allow from all
  </Directory>

[copy-gadget-to-software]
recipe      = slapos.recipe.build:download
url         = ${:_profile_base_location_}/gadget/${:_buildout_section_name_}
destination =  ${buildout:directory}/gadget/${:_buildout_section_name_}

113 114 115
[enb.jinja2.cfg]
<= copy-config-to-instance
filename = enb.jinja2.cfg
116
[sib23.jinja2.asn]
117
<= copy-config-to-instance
118
filename = sib23.jinja2.asn
119 120 121 122 123 124 125 126 127 128 129 130
[gnb.jinja2.cfg]
<= copy-config-to-instance
filename = gnb.jinja2.cfg
[ltelogs.jinja2.sh]
<= copy-to-instance
filename = ltelogs.jinja2.sh
[ue_db.jinja2.cfg]
<= copy-config-to-instance
filename = ue_db.jinja2.cfg
[mme.jinja2.cfg]
<= copy-config-to-instance
filename = mme.jinja2.cfg
131 132 133
[dnsmasq.jinja2.cfg]
<= copy-config-to-instance
filename = dnsmasq.jinja2.cfg
134 135 136
[ims.jinja2.cfg]
<= copy-config-to-instance
filename = ims.jinja2.cfg
Kirill Smelkov's avatar
.  
Kirill Smelkov committed
137
[ue.jinja2.cfg]
138
<= copy-config-to-instance
Kirill Smelkov's avatar
.  
Kirill Smelkov committed
139
filename = ue.jinja2.cfg
Kirill Smelkov's avatar
.  
Kirill Smelkov committed
140

Kirill Smelkov's avatar
.  
Kirill Smelkov committed
141
[amari_lte.jinja2]
Kirill Smelkov's avatar
.  
Kirill Smelkov committed
142 143 144 145
<= download-base
[amari_slap.jinja2]
<= download-base

146

147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
# Download gadget files
[software.cfg.html]
<= copy-gadget-to-software
[promise.gadget.js]
<= copy-gadget-to-software

[rsvp.js]
<= copy-gadget-to-software
url = https://lab.nexedi.com/nexedi/rsvp.js/raw/b0c4596df6a52d75705a59262bc992a166ff11a1/dist/rsvp-2.0.4.js
md5sum = 2b0f2d52857b17fdfb8a5c2ea451a5ad

[g-chart.line.js]
<= copy-gadget-to-software
url = https://raw.githubusercontent.com/guschnwg/g-chart/cbcc7bc40f88fcce4854b55d0902b6273004ba3e/g-chart.line.js
md5sum = 57c50b46c9492c6ab78dc44deac3c0ce

163 164 165 166
[eggs]
recipe = zc.recipe.egg
eggs =
  websocket-client
167
  ${python-pynacl:egg}
168 169 170
  ${bcrypt:egg}
  xmltodict
  ncclient
171 172
interpreter = pythonwitheggs

173 174 175
[xlte-repository]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/kirr/xlte.git
176
revision = e716ab51
177
git-executable = ${git:location}/bin/git
Kirill Smelkov's avatar
.  
Kirill Smelkov committed
178 179
# XXX temp (speedup build)
develop = true
180 181 182 183 184 185 186 187 188 189 190 191 192 193

[xlte]
recipe = zc.recipe.egg:develop
setup = ${xlte-repository:location}
egg = xlte
depends =
  ${numpy:egg}
  ${pygolang:egg}

[xamari]
recipe = zc.recipe.egg
eggs = ${xlte:egg}
scripts = xamari

194 195 196 197 198
[setcap]
recipe = plone.recipe.command
command = sudo -n /opt/amarisoft/setcap ${dnsmasq:location}/sbin/dnsmasq || true
update-command = ${:command}

199 200
[versions]
websocket-client = 1.4.2
201 202
ncclient = 0.6.13
xmltodict = 0.13.0