Commit e3f57dbf authored by Jérome Perrin's avatar Jérome Perrin

palo: make a component

parent 0a0f5127
[buildout]
extends =
../cmake/buildout.cfg
../git/buildout.cfg
../openssl/buildout.cfg
../icu/buildout.cfg
../boost-lib/buildout.cfg
../gperftools/buildout.cfg
../zlib/buildout.cfg
[boost-lib]
<= boost-lib-1.53
[erp5_login_worker]
#TODO: a profile for this ?
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/erp5_login_worker.py
output = ${buildout:bin-directory}/erp5_login_worker.py
#md5sum =
mode = 0755
[palo_olap-repository.git]
recipe = slapos.recipe.build:gitclone
repository = https://gitlab.com/perrinjerome/palo_olap.git
branch = 5.1
git-executable = ${git:location}/bin/git
[palo_olap]
recipe = slapos.recipe.cmmi
path = ${palo_olap-repository.git:location}
configure-command = ${cmake:location}/bin/cmake
configure-options =
-DCMAKE_BINARY_DIR=${buildout:parts-directory}/${:_buildout_section_name_}
-DLIB_ICU_ROOT_DIR=${icu:location}
-DLIB_OPENSSL_ROOT_DIR=${openssl:location}
-DLIB_BOOST_ROOT_DIR=${boost-lib:location}
-DLIB_PERFTOOLS_ROOT_DIR=${gperftools:location}
environment =
CMAKE_PROGRAM_PATH=${cmake:location}/bin
CMAKE_INCLUDE_PATH=${openssl:location}/include:${boost-lib:location}/include:${gperftools:location}/include:${icu:location}/include:${zlib:location}/include
CMAKE_LIBRARY_PATH=${openssl:location}/lib:${boost-lib:location}/lib:${gperftools:location}/lib:${icu:location}/lib:${zlib:location}/lib
LDFLAGS=-L${openssl:location}/lib -Wl,-rpath=${openssl:location}/lib -L${boost-lib:location}/lib -Wl,-rpath=${boost-lib:location}/lib -L${gperftools:location}/lib -Wl,-rpath=${gperftools:location}/lib -L${icu:location}/lib -Wl,-rpath=${icu:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
...@@ -72,7 +72,7 @@ context = import json_module json ...@@ -72,7 +72,7 @@ context = import json_module json
[palo_olap] [palo_olap]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
command-line = ${palo:location}/bin/palo --init-file $${palo_ini:rendered} --chdir command-line = ${palo_olap:location}/bin/palo --init-file $${palo_ini:rendered} --chdir
wrapper-path = $${directory:service}/palo_olap wrapper-path = $${directory:service}/palo_olap
[palo_etl] [palo_etl]
......
...@@ -2,19 +2,14 @@ ...@@ -2,19 +2,14 @@
extends = extends =
../../stack/tomcat.cfg ../../stack/tomcat.cfg
../../stack/slapos.cfg ../../stack/slapos.cfg
../../component/git/buildout.cfg ../../component/palo_olap/buildout.cfg
../../component/openssl/buildout.cfg
../../component/gperf/buildout.cfg
../../component/boost-lib/buildout.cfg
parts = parts =
palo palo_olap
palo_etl_download palo_etl
slapos-cookbook slapos-cookbook
instance-profile instance-profile
[boost-lib]
<= boost-lib-1.53
[instance-profile] [instance-profile]
recipe = slapos.recipe.template recipe = slapos.recipe.template
...@@ -23,27 +18,6 @@ output = ${buildout:directory}/instance.cfg ...@@ -23,27 +18,6 @@ output = ${buildout:directory}/instance.cfg
#md5sum = #md5sum =
mode = 0644 mode = 0644
[erp5_login_worker]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/erp5_login_worker.py
output = ${buildout:bin-directory}/erp5_login_worker.py
#md5sum =
mode = 0755
[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
[palo_etl_download] [palo_etl_download]
recipe = hexagonit.recipe.download recipe = hexagonit.recipe.download
url = http://switch.dl.sourceforge.net/project/palo-etl-server/etlserver/Palo%20ETL%20Server%203.2/etlserver.war url = http://switch.dl.sourceforge.net/project/palo-etl-server/etlserver/Palo%20ETL%20Server%203.2/etlserver.war
...@@ -51,6 +25,8 @@ download-only = true ...@@ -51,6 +25,8 @@ download-only = true
;destination = ${buildout:directory}/var/tomcat/webapps/ ;destination = ${buildout:directory}/var/tomcat/webapps/
[palo_etl] [palo_etl]
recipe = plone.recipe.command
command = echo "TODO"
needs = ${palo_etl_download:url} needs = ${palo_etl_download:url}
[versions] [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