Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): move stream connectors to collect repository #1138

Draft
wants to merge 225 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 210 commits
Commits
Show all changes
225 commits
Select commit Hold shift + click to select a range
66aad1d
feat(influxdb-metrics): First release of a Lua connector
bouda1 Apr 10, 2018
e8dd709
feat(influxdb-neb): New script to send data to influxdb
bouda1 Jun 28, 2018
abb9e3c
doc(influxdb): README.md completed to explain influxdn streamconnectors
bouda1 Jun 28, 2018
bcf2ff0
Update README.md
bouda1 Jun 28, 2018
22e6ba4
doc(elastic): New doc about an elasticsearch stream connector
bouda1 Jun 29, 2018
cafcfd3
feat(elasticsearch): A new stream connector working with elasticsearch
bouda1 Jun 29, 2018
1cbaa6e
doc(elastic): Documentation completed
bouda1 Jun 29, 2018
03818ab
Update README.md
bouda1 Jun 29, 2018
a43ff7c
Update README.md
bouda1 Jun 29, 2018
077964a
feat(warp10): New stream connector to export data to warp10
bouda1 Nov 9, 2018
050bb11
doc(README.md): Documentation updated.
bouda1 Nov 9, 2018
a74b87e
update the doc link
quanghungb Dec 6, 2018
c7a5355
feat(splunk): New scripts to export to splunk
bouda1 Dec 7, 2018
6f4620f
fix(splunk): Images names fixed.
bouda1 Dec 7, 2018
e1ac90c
enh(doc): improve splunk part (#2)
Moujimouja Dec 10, 2018
18d15a1
fix(influx-neb.lua): parse_perfdata function removed
bouda1 Jan 11, 2019
b80ed9e
Add Service Now Stream Connector (#4)
Moujimouja Jan 17, 2019
2d3b585
Update README.md
bouda1 Jan 31, 2019
2708007
feat(README.md) A TOC is added
bouda1 Jan 31, 2019
2c1f2e4
fix(README.md): TOC updated
bouda1 Jan 31, 2019
4d0d61c
fix(README.md): Typo
bouda1 Jan 31, 2019
c2faffb
fix(warp10): Remove space in class name and better class name and labels
leoncx Feb 18, 2019
eca138b
add NDO output (#7)
Apr 16, 2019
f6234fc
Various improvements to InfluxDB script (#9)
UrBnW Apr 16, 2019
fbab622
Support instances in InfluxDB (#10)
UrBnW Apr 17, 2019
5c1985a
Properly verify perfdata is present (#11)
UrBnW Apr 30, 2019
63699a1
Better handle perfdata err (#12)
UrBnW May 1, 2019
7a10fc2
Improve InfluxDB script (#13)
UrBnW May 24, 2019
2ab4fca
enh(influxdb-neb): add log_path and influxdb_retention_policy paramet…
cgagnaire Sep 6, 2019
8f42b7f
feat(elastic-neb): add elastic-neb.lua script (#15)
cgagnaire Sep 6, 2019
c35b7b7
Update omi_connector.lua (#16)
SomeAverageDev Oct 13, 2019
bfb48ac
Escape / replace spec chars (#17)
UrBnW Oct 13, 2019
ac70a31
feat(warp10): add host and srvc groups (#18)
Nohzoh Nov 21, 2019
139921a
InfluxDB enhancements (#21)
UrBnW May 22, 2020
d9cf865
Ome fix omi doc and minor improvement (#19)
omercier Jun 8, 2020
fdfd3c0
feat(pagerduty): adding a connector to PagerDuty based on lua-curl (#22)
omercier Jun 8, 2020
43bda97
enh(influx) Support perfdate perfdata (#23)
UrBnW Jul 5, 2020
d195ee6
enh(pagerduty): improving various defaut param values + handling metr…
omercier Jul 21, 2020
2503664
enh(pagerduty): Update pager duty (#26)
omercier Jul 23, 2020
771b45b
Ome add bsm connector wip (#20)
omercier Jul 23, 2020
3797580
fix(bsm): some issues (typo + special chars handling) (#28)
omercier Jul 31, 2020
b2c816a
fix(README): BSM connector now needs luaxml (#29)
omercier Aug 3, 2020
8ef3270
fix(bsm): typo in content-type header definition (#30)
omercier Aug 4, 2020
ac6f64c
fix(influx) Ignore time metric (#34)
UrBnW Sep 3, 2020
bf341cd
Canopsis (#35)
paulpremont Sep 24, 2020
e5e5fc1
(enh): Refacto of splunk connector (#27)
pkriko Oct 5, 2020
71f67c1
enh(pagerduty): various improvements to PagerDuty connector (#36)
omercier Oct 7, 2020
fe9a8f1
Fix hostgroups for services + state change condition (#37)
ppremont-capensis Oct 14, 2020
9dd540b
fix(doc) - add prerequisites for OMI
s-duret Nov 26, 2020
aa3f88d
avoid "attempt to compare number with nil"
s-duret Jan 26, 2021
740c3fa
add prometheus gateway stream connector (#41)
tanguyvda Feb 11, 2021
377dee3
enh(influxdb) Add an option to store states (#43)
UrBnW Feb 25, 2021
9161530
Snow rework (#39)
tanguyvda Feb 25, 2021
ca95130
add opsgenie stream connector (#42)
tanguyvda Feb 25, 2021
75a7cab
Stream connectors v2 (#45)
tanguyvda Apr 5, 2021
bdc1408
Modules Docs + Modules bug fixes + Modules new features (#46)
tanguyvda May 4, 2021
a18b40a
fix memory leak + sc naming (#47)
tanguyvda May 6, 2021
a0fa397
Add downtime, ack, dedup features (#48)
tanguyvda May 31, 2021
7ed5aac
fix missing standard param (#49)
tanguyvda May 31, 2021
25ca8cb
fix rockspec v1.1.0-2 (#50)
tanguyvda May 31, 2021
0a43fe8
fix requires in test_kafka script (#51)
tanguyvda May 31, 2021
ff5ff5d
fix rockspec (#52)
tanguyvda May 31, 2021
165c43e
prepare 1.2 release add new stream connectors
tanguyvda Jun 14, 2021
d184e89
Update centreon-stream-connectors-lib-1.2.0-1.rockspec
tanguyvda Jun 15, 2021
84a8b8d
patch for el8 compatibility (#55)
tanguyvda Jun 18, 2021
20e5604
fix(influxdb) Properly replace backslashes (#54)
UrBnW Jun 18, 2021
7197cd6
fix(influxdb) events may not have last_check value (#56)
UrBnW Jun 25, 2021
9934181
Splunk rework + prepare new release (#57)
tanguyvda Jul 15, 2021
7a6bc2d
add rockspec files for 1.3.0 release (#58)
tanguyvda Jul 15, 2021
af9f96a
fix wrong logging default configuration (#59)
tanguyvda Jul 16, 2021
8125858
typo
pkriko Aug 4, 2021
8960ebc
improve kafka and doc readme (#60)
tanguyvda Aug 9, 2021
89161ca
enh(influxdb) get rid of deduplicate (#61)
UrBnW Aug 9, 2021
03c6c25
Fix splunk (#62)
tanguyvda Sep 6, 2021
d74a207
Forgot doc (#63)
tanguyvda Sep 6, 2021
55ef6ed
Fix splunk metrics (#64)
tanguyvda Sep 6, 2021
b4535ef
Streamline kafka (#65)
tanguyvda Sep 6, 2021
2b82c4f
fix require for kafka (#66)
tanguyvda Sep 7, 2021
cb988b3
add rockspec file for 1.4.1-1 (#67)
tanguyvda Sep 7, 2021
660f2b1
Fix bigquery (#68)
tanguyvda Sep 9, 2021
3953cf3
add rockspec for 1.4.2-1 (#69)
tanguyvda Sep 9, 2021
9090244
fix Cache and flag and json (#70)
tanguyvda Sep 23, 2021
3889481
Fix kafka format event (#71)
tanguyvda Sep 23, 2021
aacf609
Refacto pagerduty (#73)
tanguyvda Oct 5, 2021
688a62c
fix proxy param (#74)
tanguyvda Oct 6, 2021
cc4f9b6
Buffer issue (#75)
tanguyvda Oct 6, 2021
74e6d16
bad log messages and typos (#76)
tanguyvda Oct 12, 2021
cd3666d
fix splunk json (#79)
tanguyvda Oct 15, 2021
7709720
fix Splunk metric event
s-duret Oct 18, 2021
ad2e993
fix wrong variable name
tanguyvda Oct 22, 2021
4815a9a
enh(doc) update links (#81)
ponchoh Nov 16, 2021
5073baa
enh(elastic) add events apiv2 (#72)
Sims24 Nov 18, 2021
3a92a84
(stream) signl4-sc initial release (#84)
Sims24 Nov 26, 2021
c5f2666
Training course (#88)
tanguyvda Dec 3, 2021
88825f4
Training course (#89)
tanguyvda Dec 3, 2021
ced2886
(stream)signl4 bugfix and json simplification (#87)
Sims24 Dec 3, 2021
34ae614
(lib)sc_macro fix buggy transform_date function (#86)
Sims24 Dec 3, 2021
d961578
Traning course plus (#90)
tanguyvda Dec 9, 2021
f1ca858
Update centreon_classroom.lua
tanguyvda Dec 9, 2021
2d9e6f1
Update exercises.md
tanguyvda Dec 9, 2021
04ba417
exercise 3 answer
tanguyvda Dec 10, 2021
732e624
exercises 4 and 5 answers
tanguyvda Dec 10, 2021
1814add
exercise 4 and 5 answers
tanguyvda Dec 10, 2021
53c8629
Update exercices_answers.md
tanguyvda Dec 10, 2021
ed3e63c
add summary
tanguyvda Dec 10, 2021
dabd47e
Update exercices_answers.md
tanguyvda Dec 10, 2021
cdaeea5
+ add Signl4 doc link
Sims24 Dec 13, 2021
db020df
Refacto streamconnector BSM v2
psamecentreon Dec 16, 2021
b4b9b31
Add spec 1 5 4 (#92)
tanguyvda Dec 16, 2021
5e8eb9e
Review code after firts recommandations
psamecentreon Dec 20, 2021
49aa4dc
Change name file
psamecentreon Dec 20, 2021
235b494
Review function write
psamecentreon Dec 20, 2021
5b74f36
Refacto event treatment for when send_data_test=1
psamecentreon Dec 28, 2021
a31602f
Review code with of formated data
psamecentreon Jan 14, 2022
378c6de
delete comment block
psamecentreon Jan 14, 2022
8b25677
Create function xml_escape for bsm-event SC
psamecentreon Jan 14, 2022
b5d8095
refacto to v3
psamecentreon Jan 21, 2022
123c8bd
Merge branch 'feat(streamconnector)-add-refacto-bsm-v2-lua-files' of …
psamecentreon Jan 21, 2022
f10f049
Delete file because already in others PR
psamecentreon Jan 21, 2022
a98b5f1
Apply suggestions from code review
psamecentreon Jan 25, 2022
843f553
Create sc_common.lua
psamecentreon Jan 25, 2022
192f244
Last review
psamecentreon Jan 25, 2022
7231acc
Merge branch 'master' of https://github.com/centreon/centreon-stream-…
psamecentreon Jan 26, 2022
20fff7d
refacto hp omi to apiv2
psamecentreon Jan 27, 2022
a83459e
Delete bsm-events-apiv2.lua
psamecentreon Jan 27, 2022
f79ca6b
Update omi_events-apiv2.lua
psamecentreon Jan 27, 2022
444ffdf
Delete max_buffer_size params because not correctly event format
psamecentreon Feb 1, 2022
5e1e08c
(stream/lib): sc_flush - refacto queue system and compatibility patch…
tanguyvda Feb 17, 2022
0e5fc41
Enhancement event format to multi event
psamecentreon Feb 22, 2022
1d0e982
Merge branch 'master' of https://github.com/centreon/centreon-stream-…
psamecentreon Feb 22, 2022
bc0360a
enhencament format event for event in payload
psamecentreon Feb 22, 2022
64cc9d9
(stream/lib) sc_event: add new event outputs options (#97)
tanguyvda Mar 16, 2022
eba62fb
(streams/lib): add rockspec 2.1.0-1 (#102)
tanguyvda Mar 17, 2022
91afaf8
forgot require sc_flush lib
tanguyvda Apr 13, 2022
1aa7b8b
(stream/events) missing sc_flush new instance
matoy Apr 14, 2022
cd0378b
(stream/event): fix add queue method (#106)
tanguyvda Apr 21, 2022
c8633ac
(stream/events): add Datadog sc (#101)
tanguyvda May 10, 2022
164165f
(stream/lib) Metric v2 (#103)
tanguyvda May 10, 2022
c8b3f7f
add specfile (#109)
tanguyvda May 12, 2022
62cc9e2
(stream/lib) sc_param bbdo3 and bddo2 compat (#108)
tanguyvda May 12, 2022
bf24f16
add spec file (#110)
tanguyvda May 12, 2022
e8212dc
(stream/events) add logstash-events stream connector (#111)
tanguyvda Jun 1, 2022
586d2d0
fix wrong event format method (#114)
tanguyvda Jun 10, 2022
ae915ec
(stream/lib) add output limit (#112)
tanguyvda Jun 13, 2022
40407e9
handle last_check & last_update for better compat (#116)
tanguyvda Jun 17, 2022
bbf092e
add 3.2.0-1 spec file (#117)
tanguyvda Jun 17, 2022
9edf716
Update datadog-events-apiv2.lua
tanguyvda Jun 24, 2022
b24f434
Enhance macro system (new group macro + new transformation flags) (#118)
tanguyvda Jul 29, 2022
173e908
add custom code feature for stream connectors (#119)
tanguyvda Aug 11, 2022
204ed37
add specfile for 3.3.0 release (#120)
tanguyvda Aug 11, 2022
7f741bb
add canopsis stream certified stream connector + queue system enhance…
tanguyvda Dec 5, 2022
0331ee6
add specfile 3.4.0-1 (#123)
tanguyvda Dec 5, 2022
f7dca91
fix ack remove and dt cache and more sc options (#124)
tanguyvda Jan 5, 2023
32a481b
fix ack remove dt remove and dt send (#126)
tanguyvda Jan 12, 2023
41e97a7
Flapping and canopsis4 (#127)
tanguyvda Jan 23, 2023
a494f1d
fix broken long output with line break (#128)
tanguyvda Jan 30, 2023
1766a7a
fix wrong mandatory param and wrong dt index (#129)
tanguyvda Jan 30, 2023
8f7653f
add a new method to create shell curl commands (#130)
tanguyvda Jan 31, 2023
51ec1ca
fix wrong method name (#131)
tanguyvda Feb 1, 2023
f7ef3fb
add instance and service as grouping key (#133)
xenofree Feb 8, 2023
2526b61
fix bulk event and improve canopsis4 (#134)
tanguyvda Feb 14, 2023
ec9a15a
Update README.md
kduret Feb 24, 2023
da7aefc
Mon 17276 fix poller filter (#135)
tanguyvda Feb 28, 2023
40049ad
fix rockspec v3.5 and 3.6 (#136)
tanguyvda Feb 28, 2023
46d1a3c
chore(ci): introduce github workflows (#137)
kduret Mar 1, 2023
b456abe
add opsgenie apiv2 (#139)
tanguyvda Mar 2, 2023
85e52c1
fix(delivery): restore release with timestamp/hash on unstable (#141)
kduret Mar 24, 2023
bd7b445
fix(ci): fix branch name in get environment workflow (#142)
kduret Apr 3, 2023
4dd6f31
Update servicenow-em-events-apiv2.lua (#138)
interstar001 Apr 19, 2023
27ad424
fix bad url handling for log curl command (#143)
tanguyvda Apr 20, 2023
757dfd5
build(void): making a neutral change to force build and delivery (#144)
omercier Apr 20, 2023
9c5a9f7
enh(pack): two connectos were missing in the builds (#145)
omercier Apr 21, 2023
7ac821d
fix(packaging): add missing lcurl.so to package (#147)
tuntoja Jun 23, 2023
fc3463d
chore(ci): bump release number for lua-curl (#148)
tuntoja Jun 23, 2023
1e0cac5
fix(packaging): fix lua-curl and curl compat on el9 (#151)
kduret Jul 28, 2023
db2ba35
fix(packaging): set path to ca certificate (#152)
kduret Jul 31, 2023
8fb7a6c
fix(packaging): force openssl 1.1.1 in lua-curl binary (#153)
kduret Jul 31, 2023
94a7287
Mon 16176 add elasticsearch metricv2 (#150)
tanguyvda Jul 31, 2023
7986ed5
chore(doc): typo in modules/docs/sc_param.md (#154)
bouda1 Aug 2, 2023
d5d945b
Add function to handle with deprecated parameters
Aug 4, 2023
1e73c4d
Work in progress
Aug 4, 2023
6da89f2
Work in progress
Aug 4, 2023
1dc4b2b
Work in progress
Aug 4, 2023
09fc3f5
add influxdb2 metrics (#155)
tanguyvda Sep 10, 2023
e3e45ec
Set deprecated_params as local function and convert list of deprecate…
Sep 20, 2023
edc8b80
Update modules/centreon-stream-connectors-lib/sc_params.lua
lucie-dubrunfaut Sep 22, 2023
bd0e9bf
Merge pull request #157 from centreon/MON-18829-sc-handle-deprecated-…
lucie-dubrunfaut Oct 2, 2023
cccf0b3
enh(ci): use new structure to deliver on artifactory (#159)
kduret Oct 9, 2023
96de7da
feat: add linting to worflow and actions files
hamzabessa Oct 27, 2023
3b0159b
Update .github/workflows/actionlint.yml
kduret Oct 31, 2023
c8f5e7f
Merge pull request #162 from centreon/MON-23338-check-linting-of-gith…
hamzabessa Oct 31, 2023
8a74ebe
fix deb packaging (#164)
tanguyvda Nov 6, 2023
0e97470
Mon 20969 - have the possibility to invert filters accepted hostgroup…
sdepassio Nov 8, 2023
7b80ef6
fix downtime ack ba_status bbdo3 (#163)
tanguyvda Nov 8, 2023
5cf708e
enh(chore): new code_owners (#165)
sc979 Nov 23, 2023
a4287ca
enh(chore): github actions hardening (#170)
sc979 Dec 20, 2023
97f9545
enh(ci): package centreon-stream-connector-scripts using nfpm (#168)
hamzabessa Jan 3, 2024
0f905f9
enh(ci): add consistent labels (#183)
sc979 Jan 18, 2024
41bc2f9
chore(ci): upgrade gh actions (#178)
tuntoja Jan 18, 2024
5ceb104
Mon 16176 add elasticsearch metricv2 username (#156)
tanguyvda Jan 19, 2024
a577bc6
enh(ci): package lua dependencies using nfpm (#175)
hamzabessa Jan 30, 2024
84cbd53
enh(ci): package connectors using nfpm (#174)
hamzabessa Jan 31, 2024
29b5138
feat(packaging): package for debian wookworm and ubuntu jammy (#188)
kduret Jan 31, 2024
c93a0a6
fix(packaging): set default release number to 1 (#189)
kduret Feb 1, 2024
d92153c
fix(ci): do not deliver stable ubuntu packages (#190)
kduret Feb 5, 2024
91590f4
enh(ci): modify dependabot configuration (#191)
sc979 Feb 8, 2024
a770775
Merge remote-tracking branch 'stream-connectors/move-directory' into …
kduret Feb 12, 2024
ddec511
chore(ci): add stream connectors workflows
kduret Feb 12, 2024
f80f9f2
fix(ci): set major and minor versions in workflows
kduret Feb 12, 2024
a0c8723
fix(ci): set major and minor versions in workflows
kduret Feb 12, 2024
1833348
fix(packaging): update lua-curl and connectors versioning
kduret Feb 13, 2024
7e809a9
test(ci): release bookworm unstable for testing purpose
kduret Feb 13, 2024
4172a8c
fix(ci): fix delivery action name for stream connectors
kduret Feb 13, 2024
f4495ac
fix(packaging): update libffi dependency
kduret Feb 13, 2024
301f771
fix(packaging): do not add epoch for stream connectors lib
kduret Feb 13, 2024
10af2bd
fix(packaging): export all variables in env file
kduret Feb 13, 2024
3af6e53
enh(packaging): increase version number of lua-tz and lua-cffi
kduret Feb 13, 2024
c61be40
fix(packaging): do not escape $ in stream connectors packaging
kduret Feb 13, 2024
fe69dbe
fix(packaging): missing double quote in stream connectors packaging
kduret Feb 13, 2024
d383034
fix(ci): trigger lua-tz build
kduret Feb 13, 2024
5a9f05b
test(ci): deliver el9 unstable
kduret Feb 13, 2024
0f0f440
fix(ci): unique yum dir for each stream connector
kduret Feb 13, 2024
28e99ef
fix(ci): restore delivery changes
kduret Feb 13, 2024
b80a484
Update .github/actions/package/action.yml
kduret Feb 15, 2024
c5b0c22
fix
kduret Feb 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
* @centreon/owners-cpp
* @centreon/owners-cpp

.github/** @centreon/owners-pipelines
packaging/** @centreon/owners-pipelines
selinux/** @centreon/owners-pipelines
.github/** @centreon/owners-pipelines
packaging/** @centreon/owners-pipelines
selinux/** @centreon/owners-pipelines

tests/** @centreon/owners-robot-e2e
stream-connectors/** @centreon/owners-lua

tests/** @centreon/owners-robot-e2e
21 changes: 21 additions & 0 deletions .github/actions/package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ inputs:
distrib:
description: The package distrib
required: true
major_version:
description: The major version
required: false
version:
description: The package version
required: false
release:
description: The package release number
required: false
default: "1"
arch:
description: The package architecture
required: false
Expand Down Expand Up @@ -53,6 +57,7 @@ runs:
RPM_GPG_SIGNING_KEY_ID: ${{ inputs.rpm_gpg_signing_key_id }}
RPM_GPG_SIGNING_PASSPHRASE: ${{ inputs.rpm_gpg_signing_passphrase }}
run: |
export MAJOR_VERSION="${{ inputs.major_version }}"
export VERSION="${{ inputs.version }}"
export RELEASE="${{ inputs.release }}"
export ARCH="${{ inputs.arch }}"
Expand All @@ -68,6 +73,21 @@ runs:
fi
fi

MAJOR_LEFT=$( echo $MAJOR_VERSION | cut -d "." -f1 )
MAJOR_RIGHT=$( echo $MAJOR_VERSION | cut -d "-" -f1 | cut -d "." -f2 )
BUMP_MAJOR_RIGHT=$(( MAJOR_RIGHT_PART + 1 ))
kduret marked this conversation as resolved.
Show resolved Hide resolved
if [ "$MAJOR_RIGHT" = "04" ]; then
BUMP_MAJOR_LEFT="$MAJOR_LEFT"
BUMP_MAJOR_RIGHT="10"
else
BUMP_MAJOR_LEFT=$(( $MAJOR_LEFT + 1 ))
BUMP_MAJOR_RIGHT="04"
fi

export NEXT_MAJOR_VERSION="$BUMP_MAJOR_LEFT.$BUMP_MAJOR_RIGHT"

luaver=$(lua -e "print(string.sub(_VERSION, 5))" 2>/dev/null || echo 0)

export RPM_SIGNING_KEY_FILE="$(pwd)/key.gpg"
export RPM_SIGNING_KEY_ID="$RPM_GPG_SIGNING_KEY_ID"
export NFPM_RPM_PASSPHRASE="$RPM_GPG_SIGNING_PASSPHRASE"
Expand All @@ -79,6 +99,7 @@ runs:
source $DIRNAME/env/.env.${{ inputs.distrib }}
fi
cd $DIRNAME
sed -i "s/@luaver@/$luaver/g" $BASENAME
sed -i "s/@COMMIT_HASH@/${{ inputs.commit_hash }}/g" $BASENAME
nfpm package --config $BASENAME --packager ${{ inputs.package_extension }}
cd -
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ARG REGISTRY_URL

FROM ${REGISTRY_URL}/almalinux:8

RUN bash -e <<EOF

dnf install -y dnf-plugins-core epel-release
dnf config-manager --set-enabled powertools

echo '[goreleaser]
name=GoReleaser
baseurl=https://repo.goreleaser.com/yum/
enabled=1
gpgcheck=0' | tee /etc/yum.repos.d/goreleaser.repo

dnf install -y git zstd nfpm-2.35.2 lua lua-devel
dnf clean all

EOF
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ARG REGISTRY_URL

FROM ${REGISTRY_URL}/almalinux:9

RUN bash -e <<EOF

dnf install -y dnf-plugins-core epel-release
dnf config-manager --set-enabled crb

echo '[goreleaser]
name=GoReleaser
baseurl=https://repo.goreleaser.com/yum/
enabled=1
gpgcheck=0' | tee /etc/yum.repos.d/goreleaser.repo

dnf install -y git zstd nfpm-2.35.2 lua lua-devel
dnf clean all

EOF
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ARG REGISTRY_URL

FROM ${REGISTRY_URL}/debian:bookworm

RUN bash -e <<EOF

apt-get update
apt-get install -y git zstd ca-certificates lua5.3 liblua5.3-dev

echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | tee /etc/apt/sources.list.d/goreleaser.list

apt-get update
apt-get install -y nfpm=2.35.2

apt-get clean

EOF
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ARG REGISTRY_URL

FROM ${REGISTRY_URL}/debian:bullseye

RUN bash -e <<EOF

apt-get update
apt-get install -y git zstd ca-certificates lua5.3 liblua5.3-dev

echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | tee /etc/apt/sources.list.d/goreleaser.list

apt-get update
apt-get install -y nfpm=2.35.2

apt-get clean all

EOF
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ARG REGISTRY_URL

FROM ${REGISTRY_URL}/ubuntu:jammy

RUN bash -e <<EOF

apt-get update
apt-get install -y git zstd ca-certificates lua5.3 liblua5.3-dev

echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | tee /etc/apt/sources.list.d/goreleaser.list

apt-get update
apt-get install -y nfpm=2.35.2

apt-get clean

EOF
3 changes: 2 additions & 1 deletion .github/workflows/centreon-collect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ jobs:
if: ${{ ! contains(fromJson('["stable"]'), needs.get-version.outputs.stability) }}
uses: ./.github/workflows/package-collect.yml
with:
version: ${{ needs.get-version.outputs.version }}.${{ needs.get-version.outputs.patch }}
major_version: ${{ needs.get-version.outputs.version }}
minor_version: ${{ needs.get-version.outputs.patch }}
img_version: ${{ needs.get-version.outputs.img_version }}
release: ${{ needs.get-version.outputs.release }}
commit_hash: ${{ github.sha }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ on:
- develop
- dev-[2-9][0-9].[0-9][0-9].x
paths:
- '.github/docker/**'
- '.github/docker/Dockerfile.centreon-collect-*'
pull_request:
paths:
- '.github/docker/**'
- '.github/docker/Dockerfile.centreon-collect-*'

jobs:
get-version:
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/docker-packaging-stream-connectors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: docker-packaging

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

on:
workflow_dispatch:
push:
branches:
- develop
paths:
- ".github/docker/Dockerfile.packaging-stream-connectors-*"
pull_request:
paths:
- ".github/docker/Dockerfile.packaging-stream-connectors-*"

jobs:
get-version:
uses: ./.github/workflows/get-version.yml

dockerize:
needs: [get-version]
runs-on: ubuntu-22.04

strategy:
matrix:
distrib: [alma8, alma9, bullseye, bookworm, jammy]
steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Login to registry
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}
username: ${{ secrets.DOCKER_REGISTRY_ID }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWD }}

- uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0

- uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
file: .github/docker/Dockerfile.packaging-stream-connectors-nfpm-${{ matrix.distrib }}
context: .
build-args: "REGISTRY_URL=${{ vars.DOCKER_PROXY_REGISTRY_URL }}"
pull: true
push: true
tags: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/packaging-stream-connectors-nfpm-${{ matrix.distrib }}:${{ needs.get-version.outputs.version }}
162 changes: 162 additions & 0 deletions .github/workflows/lua-cffi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
name: lua-cffi

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

on:
workflow_dispatch:
pull_request:
paths:
- stream-connectors/dependencies/lua-cffi/**
push:
branches:
- develop
- dev-[2-9][0-9].[0-9][0-9].x
- master
- "[2-9][0-9].[0-9][0-9].x"
paths:
- stream-connectors/dependencies/lua-cffi/**

jobs:
get-version:
uses: ./.github/workflows/get-version.yml

package:
needs: [get-version]

strategy:
fail-fast: false
matrix:
distrib: [el8, el9, bullseye, bookworm, jammy]
include:
- package_extension: rpm
image: packaging-stream-connectors-nfpm-alma8
distrib: el8
- package_extension: rpm
image: packaging-stream-connectors-nfpm-alma9
distrib: el9
- package_extension: deb
image: packaging-stream-connectors-nfpm-bullseye
distrib: bullseye
- package_extension: deb
image: packaging-stream-connectors-nfpm-bookworm
distrib: bookworm
- package_extension: deb
image: packaging-stream-connectors-nfpm-jammy
distrib: jammy

runs-on: ubuntu-22.04

container:
image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }}:${{ needs.get-version.outputs.version }}
credentials:
username: ${{ secrets.DOCKER_REGISTRY_ID }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWD }}

name: package ${{ matrix.distrib }}

steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Install dependencies
run: |
if [ "${{ matrix.package_extension }}" = "rpm" ]; then
dnf install -y make gcc gcc-c++ meson cmake libffi libffi-devel
else
apt-get update
apt-get install -y make gcc g++ meson cmake libffi-dev
if [ "${{ matrix.distrib }}" = "bookworm" ]; then
apt-get install -y libffi8
else
apt-get install -y libffi7
fi
fi
shell: bash

- name: Checkout cffi-lua sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
repository: "q66/cffi-lua"
path: "cffi-lua-src"
ref: "v0.2.3"

- name: Prepare packaging of lua-cffi
run: |
cd cffi-lua-src
mkdir build
cd build
if [ "${{ matrix.distrib }}" = "el9" ]; then
meson .. -Dlua_version=5.4
else
meson .. -Dlua_version=5.3
fi
ninja all
cd ../..
mkdir -p stream-connectors/dependencies/lua-cffi/lua-cffi
mv cffi-lua-src/build/cffi.so stream-connectors/dependencies/lua-cffi/lua-cffi/
shell: bash

- name: Package
uses: ./.github/actions/package
with:
nfpm_file_pattern: "stream-connectors/dependencies/lua-cffi/packaging/*.yaml"
distrib: ${{ matrix.distrib }}
package_extension: ${{ matrix.package_extension }}
arch: amd64
major_version: ${{ needs.get-version.outputs.version }}
version: "0.2.4"
release: "1"
commit_hash: ${{ github.sha }}
cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-lua-cffi-${{ matrix.distrib }}
rpm_gpg_key: ${{ secrets.RPM_GPG_SIGNING_KEY }}
rpm_gpg_signing_key_id: ${{ secrets.RPM_GPG_SIGNING_KEY_ID }}
rpm_gpg_signing_passphrase: ${{ secrets.RPM_GPG_SIGNING_PASSPHRASE }}
stability: ${{ needs.get-version.outputs.stability }}

deliver-rpm:
if: ${{ contains(fromJson('["unstable", "testing", "stable"]'), needs.get-version.outputs.stability) }}
needs: [get-version, package]
runs-on: ubuntu-22.04
strategy:
matrix:
distrib: [el8, el9]
name: deliver ${{ matrix.distrib }}

steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Publish RPM packages
uses: ./.github/actions/rpm-delivery
with:
module_name: lua-cffi
distrib: ${{ matrix.distrib }}
version: ${{ needs.get-version.outputs.version }}
artifactory_token: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
cache_key: ${{ github.sha }}-${{ github.run_id }}-rpm-lua-cffi-${{ matrix.distrib }}
stability: ${{ needs.get-version.outputs.stability }}

deliver-deb:
if: ${{ contains(fromJson('["unstable", "testing", "stable"]'), needs.get-version.outputs.stability) }}
needs: [get-version, package]
runs-on: ubuntu-22.04
strategy:
matrix:
distrib: [bullseye, bookworm, jammy]
name: deliver ${{ matrix.distrib }}

steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Publish DEB packages
uses: ./.github/actions/deb-delivery
with:
module_name: lua-cffi
distrib: ${{ matrix.distrib }}
version: ${{ needs.get-version.outputs.version }}
artifactory_token: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
cache_key: ${{ github.sha }}-${{ github.run_id }}-deb-lua-cffi-${{ matrix.distrib }}
stability: ${{ needs.get-version.outputs.stability }}
Loading
Loading