Commit 75f7f0d1 authored by Eteri's avatar Eteri

fluentbit-wendelin: use gowork

parent d452bbac
[buildout] [buildout]
parts = parts =
fluentbit-service
eggs-directory = {{ buildout['eggs-directory'] }} eggs-directory = {{ buildout['eggs-directory'] }}
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }} develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
...@@ -18,3 +17,10 @@ promise = ${:etc}/promise/ ...@@ -18,3 +17,10 @@ promise = ${:etc}/promise/
log = ${:var}/log log = ${:var}/log
bin = ${:home}/bi 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 = ...@@ -9,14 +9,16 @@ parts =
fluentbit-source fluentbit-source
fluentbit fluentbit
instance-profile instance-profile
slapos-cookbook
[gowork] [gowork]
buildflags = -race
install =
github.com/fluent/fluent-bit-go/output
buildflags = -buildmode=c-shared buildflags = -buildmode=c-shared
install = install =
github.com/fluent/fluent-bit-go/output \
lab.nexedi.com/nexedi/fluentbit-plugin-wendelin lab.nexedi.com/nexedi/fluentbit-plugin-wendelin
[instance-profile] [instance-profile]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg.in template = ${:_profile_base_location_}/instance.cfg.in
...@@ -25,7 +27,8 @@ rendered = ${buildout:directory}/instance.cfg ...@@ -25,7 +27,8 @@ rendered = ${buildout:directory}/instance.cfg
mode = 0644 mode = 0644
context = context =
section buildout buildout section buildout buildout
# key fluentbit_source_location fluentbit-source:location key fluentbit_source_location fluentbit-source:location
key gowork_direcotory gowork:directory
[fluentbit-source] [fluentbit-source]
recipe = slapos.recipe.build:gitclone recipe = slapos.recipe.build:gitclone
......
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