Commit 5fd30cc8 authored by Jérome Perrin's avatar Jérome Perrin

palo ++

parent 2324cf9c
[buildout]
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
parts = instance
[instance]
recipe = ${instance-recipe:egg}:${instance-recipe:module}
jdbc_location = ${jdbc:location}/mysql-connector-java-5.1.17/mysql-connector-java-5.1.17-bin.jar
tomcat_location = ${tomcat:location}
palo_location = ${palo:location}
java_home = ${java:location}
[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]
palo_olap_host = $${instance-parameter:ipv4-random}
palo_olap_port = 7777
[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
key palo_olap_repository_location :palo_olap_repository_location
section parameter instance-parameter
section palo_olap_parameter palo_olap_parameter
key erp5_url instance-parameter:configuration.erp5_url
palo_olap_repository_location = ${palo_olap-repository.git:location}
[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
name = Hello $${instance-parameter:configuration.name}!
palo_olap_url = $${instance-parameter:}
data-directory {{ directory_var }}
template-directory {{palo_olap_repository_location}}/Api
http {{ instance_parameter:palo_olap_host }} {{ instance_parameter:palo_olap_port }}
http [2001:67c:1254:e:c1::4206] 7770
admin 10.0.221.4 7771
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
......@@ -2,46 +2,38 @@
extends =
../../stack/tomcat.cfg
../../stack/slapos.cfg
../../component/git/buildout.cfg
../../component/openssl/buildout.cfg
../../component/gperf/buildout.cfg
../../component/boost-lib/buildout.cfg
../../component/subversion/buildout.cfg
parts += palo
parts =
palo
slapos-cookbook
instance-profile
[instance-recipe]
egg = slapos.cookbook
module = palo
[boost-lib]
<= boost-lib-1.53
[instance-recipe-egg]
recipe = zc.recipe.egg
eggs = ${instance-recipe:egg}
[template]
# Default template for the instance.
[instance-profile]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
md5sum = dbdc297502f0258c85fe7dfbddc8e501
output = ${buildout:directory}/template.cfg
url = ${:_profile_base_location_}/instance.cfg.in
output = ${buildout:directory}/instance.cfg
#md5sum =
mode = 0644
[palo_olap_checkout]
recipe = infrae.subversion
urls = https://palo.svn.sourceforge.net/svnroot/palo/molap/server/3.X/Source palo_olap
; known good revision: 456
[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_checkout:location}/palo_olap
path = /home/jerome/src/palo_olap
; XXX in svn repo, configure is not exectuable
configure-command = chmod +x ./configure && ./configure --prefix=${buildout:parts-directory}/${:_buildout_section_name_}/
#; patch to actually install palo binary
#patches = ${buildout:directory}/patches/palo_olap_install_palo.diff
#patch-options = -p0
path = ${palo_olap-repository.git:location}
environment =
CPPFLAGS=-I${gperf:location}/include -I${boost-lib:location}/include
LDFLAGS=-L${gperf:location}/lib -Wl,-rpath=${gperf:location}/lib -L${boost-lib:location}/lib -Wl,-rpath=${boost-lib:location}/lib
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