Commit 75f7f0d1 authored by Eteri's avatar Eteri

fluentbit-wendelin: use gowork

parent d452bbac
[buildout]
parts =
fluentbit-service
eggs-directory = {{ buildout['eggs-directory'] }}
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
offline = true
......@@ -18,3 +17,10 @@ promise = ${:etc}/promise/
log = ${:var}/log
bin = ${:home}/bi
[fluentbit-service]
recipe = slapos.cookbook:wrapper
command-line =
{{ fluentbit_source_location }}/build/bin/fluent-bit -e
{{ gowork_direcotory }}/pkg/linux_amd64_shared/lab.nexedi.com/nexedi/fluentbit-plugin-wendelin.a -c {{ gowork_direcotory }}/src/lab.nexedi.com/nexedi/fluentbit-plugin-wendelin/example/to_wendelin.conf
wrapper-path = ${directory:service}/fluentbit-service
output = $${:wrapper-path}
......@@ -9,14 +9,16 @@ parts =
fluentbit-source
fluentbit
instance-profile
slapos-cookbook
[gowork]
buildflags = -race
install =
github.com/fluent/fluent-bit-go/output
buildflags = -buildmode=c-shared
install =
github.com/fluent/fluent-bit-go/output \
lab.nexedi.com/nexedi/fluentbit-plugin-wendelin
[instance-profile]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg.in
......@@ -25,7 +27,8 @@ rendered = ${buildout:directory}/instance.cfg
mode = 0644
context =
section buildout buildout
# key fluentbit_source_location fluentbit-source:location
key fluentbit_source_location fluentbit-source:location
key gowork_direcotory gowork:directory
[fluentbit-source]
recipe = slapos.recipe.build:gitclone
......@@ -36,7 +39,7 @@ recipe = slapos.recipe.cmmi
path = ${fluentbit-source:location}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
configure-command =
cd build && ${cmake:location}/bin/cmake -DFLB_BUFFERING=Yes -DFLB_DEBUG=On -DFLB_PROXY_GO=On ..
cd build && ${cmake:location}/bin/cmake -DFLB_BUFFERING=Yes -DFLB_DEBUG=On -DFLB_PROXY_GO=On ..
make-targets =
make-binary =
cd build && make
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