Commit 3894b9b2 authored by Jérome Perrin's avatar Jérome Perrin

Initial inclusion of palo olap

parent d5d2897c
[buildout]
parts =
gperf
[gperf]
recipe = hexagonit.recipe.cmmi
version = 3.0.4
url = http://ftp.gnu.org/pub/gnu/gperf/gperf-3.0.4.tar.gz
md5sum = c1f1db32fb6598d6a93e6e88796a8632
[buildout]
parts =
instance-parameter
directory
palo
publish-connection-parameter
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
[instance-parameter]
recipe = slapos.cookbook:slapconfiguration
computer = $${slap_connection:computer_id}
partition = $${slap_connection:partition_id}
url = $${slap_connection:server_url}
key = $${slap_connection:key_file}
cert = $${slap_connection:cert_file}
configuration.name = John Doe
configuration.erp5_url =
[palo_olap_parameter]
ipv4 = $${instance-parameter:ipv4-random}
ipv6 = $${instance-parameter:ipv6-random}
palo_olap_port = 7777
palo_olap_admin_port = 7778
[directory]
recipe = slapos.cookbook:mkdirectory
home = $${buildout:directory}
etc = $${:home}/etc
var = $${:home}/var
script = $${:etc}/run/
service = $${:etc}/service
promise = $${:etc}/promise/
log = $${:var}/log
[TODO]
todo =
worker_login
tunnel
patch ipv6
etl
log_rotation
[palo_ini]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/palo.ini.in
rendered = $${directory:etc}/palo.ini
extensions = jinja2.ext.do
context = import json_module json
key directory_var directory:var
key directory_log directory:log
key login_woker erp5_login_worker:wrapper-path
raw palo_olap_repository_location ${palo_olap-repository.git:location}
section parameter instance-parameter
section palo_olap_parameter palo_olap_parameter
key erp5_url instance-parameter:configuration.erp5_url
[palo]
# This recipe will try to "exec" the command-line after separating parameters.
recipe = slapos.cookbook:wrapper
command-line = ${palo:location}/bin/palo --init-file $${palo_ini:rendered} --chdir
wrapper-path = $${directory:service}/palo_olap
[erp5_login_worker]
wrapper-path = TODO
[publish-connection-parameter]
recipe = slapos.cookbook:publish
palo_olap_url = $${palo_olap_parameter:ipv4}:$${palo_olap_parameter:palo_olap_port}
palo_olap_ipv6_url = [$${palo_olap_parameter:ipv6}]:$${palo_olap_parameter:palo_olap_port}
palo_olap_admin_url = $${palo_olap_parameter:ipv4}:$${palo_olap_parameter:palo_olap_admin_port}
data-directory {{ directory_var }}
template-directory {{ palo_olap_repository_location }}/Api
http {{ palo_olap_parameter.ipv4 }} {{ palo_olap_parameter.palo_olap_port }}
http {{ palo_olap_parameter.ipv6 }} {{ palo_olap_parameter.palo_olap_port }}
admin {{ palo_olap_parameter.ipv4 }} {{ palo_olap_parameter.palo_olap_admin_port }}
log {{ directory_log }}/palo_olap.log
verbose debug
user-login
#worker /srv/slapgrid/slappart8/srv/runner/instance/slappart0/sbin/erp5_login_worker /srv/slapgrid/slappart8/srv/runner/instance/slappart0/var//log//palo_login_worker.log https://aact.erp5.net/erp5/
#workerlogin authorization
[buildout]
extends =
../../stack/tomcat.cfg
../../stack/slapos.cfg
../../component/git/buildout.cfg
../../component/openssl/buildout.cfg
../../component/gperf/buildout.cfg
../../component/boost-lib/buildout.cfg
parts =
palo
slapos-cookbook
instance-profile
[boost-lib]
<= boost-lib-1.53
[instance-profile]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in
output = ${buildout:directory}/instance.cfg
#md5sum =
mode = 0644
[palo_olap-repository.git]
recipe = slapos.recipe.build:gitclone
repository = https://gitlab.com/perrinjerome/palo_olap.git
branch = master
git-executable = ${git:location}/bin/git
[palo]
recipe = hexagonit.recipe.cmmi
path = ${palo_olap-repository.git:location}
environment =
CPPFLAGS=-I${gperf:location}/include -I${openssl:location}/include -I${boost-lib:location}/include
LDFLAGS=-L${gperf:location}/lib -Wl,-rpath=${gperf:location}/lib -L${openssl:location}/lib -Wl,-rpath=${openssl:location}/lib -L${boost-lib:location}/lib -Wl,-rpath=${boost-lib:location}/lib -Wl,-copy-dt-needed-entries -lboost_system
PATH=${gperf:location}/bin:%(PATH)s
[versions]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment