Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ophélie Gagnard
slapos
Commits
03175562
Commit
03175562
authored
Apr 16, 2021
by
Léo-Paul Géneau
👾
Committed by
Ophélie Gagnard
Aug 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adds fluent-bit SR
parent
dddc13b0
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
212 additions
and
0 deletions
+212
-0
component/fluent-bit/buildout.cfg
component/fluent-bit/buildout.cfg
+18
-0
software/fluent-bit/buildout.hash.cfg
software/fluent-bit/buildout.hash.cfg
+21
-0
software/fluent-bit/instance-fluent_bit.cfg
software/fluent-bit/instance-fluent_bit.cfg
+23
-0
software/fluent-bit/instance.cfg
software/fluent-bit/instance.cfg
+23
-0
software/fluent-bit/software.cfg
software/fluent-bit/software.cfg
+25
-0
software/fluent-bit/test/README.md
software/fluent-bit/test/README.md
+1
-0
software/fluent-bit/test/setup.py
software/fluent-bit/test/setup.py
+51
-0
software/fluent-bit/test/test.py
software/fluent-bit/test/test.py
+50
-0
No files found.
component/fluent-bit/buildout.cfg
0 → 100644
View file @
03175562
# The lightweight log processor https://fluentbit.io/
[buildout]
extends =
../bison/buildout.cfg
../cmake/buildout.cfg
../flex/buildout.cfg
[fluent-bit]
recipe = slapos.recipe.cmmi
shared = true
url = https://github.com/fluent/fluent-bit/archive/refs/tags/v1.8.0.tar.gz
md5sum = fa75c79bd69b17a0db7417389c198de7
configure-command = ${cmake:location}/bin/cmake
configure-options =
-DCMAKE_INSTALL_PREFIX=@@LOCATION@@
environment =
PATH=${bison:location}/bin:${flex:location}/bin:%(PATH)s
software/fluent-bit/buildout.hash.cfg
0 → 100644
View file @
03175562
# THIS IS NOT A BUILDOUT FILE, despite purposedly using a compatible syntax.
# The only allowed lines here are (regexes):
# - "^#" comments, copied verbatim
# - "^[" section beginings, copied verbatim
# - lines containing an "=" sign which must fit in the following categorie.
# - "^\s*filename\s*=\s*path\s*$" where "path" is relative to this file
# Copied verbatim.
# - "^\s*hashtype\s*=.*" where "hashtype" is one of the values supported
# by the re-generation script.
# Re-generated.
# - other lines are copied verbatim
# Substitution (${...:...}), extension ([buildout] extends = ...) and
# section inheritance (< = ...) are NOT supported (but you should really
# not need these here).
[template]
filename = instance.cfg
md5sum = 63233a53d9d3cce66d9446277e2251fd
[template-fluent_bit]
filename = instance-fluent_bit.cfg
md5sum = 0d252aa2ebcdb1ec6ce65f8ffc9a586b
software/fluent-bit/instance-fluent_bit.cfg
0 → 100644
View file @
03175562
[buildout]
parts =
service-fluent_bit
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
[directory]
recipe = slapos.cookbook:mkdirectory
bin = $${buildout:directory}/bin
etc = $${buildout:directory}/etc
var = $${buildout:directory}/var
script = $${:etc}/run/
service = $${:etc}/service
promise = $${:etc}/promise/
log = $${:var}/log
[service-fluent_bit]
recipe = slapos.cookbook:wrapper
wrapper-path = $${directory:service}/fluent_bit-service
command-line = ${fluent-bit:location}/bin/fluent-bit
-v
software/fluent-bit/instance.cfg
0 → 100644
View file @
03175562
[buildout]
parts =
switch-softwaretype
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
[switch-softwaretype]
recipe = slapos.cookbook:switch-softwaretype
default = fluent-bit:template
RootSoftwareInstance = $${:default}
[fluent-bit]
template = ${template-fluent_bit:output}
[slap-configuration]
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}
software/fluent-bit/software.cfg
0 → 100644
View file @
03175562
[buildout]
extends =
buildout.hash.cfg
../../component/fluent-bit/buildout.cfg
../../stack/slapos.cfg
parts =
template
slapos-cookbook
[python]
part = python3
[template-base]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:filename}
mode = 0644
[template]
< = template-base
output = ${buildout:directory}/template.cfg
[template-fluent_bit]
< = template-base
output = ${buildout:directory}/template-fluent_bit.cfg
software/fluent-bit/test/README.md
0 → 100644
View file @
03175562
Tests for fluent-bit Software Release
software/fluent-bit/test/setup.py
0 → 100644
View file @
03175562
##############################################################################
#
# Copyright (c) 2018 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
from
setuptools
import
setup
,
find_packages
version
=
'0.0.1.dev0'
name
=
'slapos.test.fluent-bit'
with
open
(
"README.md"
)
as
f
:
long_description
=
f
.
read
()
setup
(
name
=
name
,
version
=
version
,
description
=
"Test for SlapOS' fluent-bit"
,
long_description
=
long_description
,
long_description_content_type
=
'text/markdown'
,
maintainer
=
"Nexedi"
,
maintainer_email
=
"info@nexedi.com"
,
url
=
"https://lab.nexedi.com/nexedi/slapos"
,
packages
=
find_packages
(),
install_requires
=
[
'slapos.core'
,
'slapos.libnetworkcache'
,
'erp5.util'
,
'supervisor'
,
],
zip_safe
=
True
,
test_suite
=
'test'
,
)
\ No newline at end of file
software/fluent-bit/test/test.py
0 → 100644
View file @
03175562
##############################################################################
#
# Copyright (c) 2018 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
import
os
from
slapos.testing.testcase
import
makeModuleSetUpAndTestCaseClass
setUpModule
,
SlapOSInstanceTestCase
=
makeModuleSetUpAndTestCaseClass
(
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'software.cfg'
)))
class
FluentBitTestCase
(
SlapOSInstanceTestCase
):
__partition_reference__
=
'fluent-bit'
def
test_process
(
self
):
expected_process_name_list
=
[
'fluentd-service-on-watch'
,
]
with
self
.
slap
.
instance_supervisor_rpc
as
supervisor
:
process_names
=
[
process
[
'name'
]
for
process
in
supervisor
.
getAllProcessInfo
()]
for
expected_process_name
in
expected_process_name_list
:
self
.
assertIn
(
expected_process_name
,
process_names
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment