Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wazuh + VAT Evidence Collector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MEDINA
Public
Wazuh + VAT Evidence Collector
Commits
658a7ec6
Commit
658a7ec6
authored
3 years ago
by
Matevz Erzen
Browse files
Options
Downloads
Patches
Plain Diff
Merge CI tests to Master
parent
eef54a04
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.dockerignore
+2
-1
2 additions, 1 deletion
.dockerignore
.gitlab-ci.yml
+7
-2
7 additions, 2 deletions
.gitlab-ci.yml
LICENSE.txt
+4
-0
4 additions, 0 deletions
LICENSE.txt
scheduler/scheduler.py
+1
-1
1 addition, 1 deletion
scheduler/scheduler.py
test/test.sh
+45
-0
45 additions, 0 deletions
test/test.sh
with
59 additions
and
4 deletions
.dockerignore
+
2
−
1
View file @
658a7ec6
...
...
@@ -6,4 +6,5 @@ dump.rdb
.git
.cache
.gitignore
.gitlab-ci.yml
\ No newline at end of file
.gitlab-ci.yml
test/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
7
−
2
View file @
658a7ec6
...
...
@@ -15,7 +15,7 @@ stages:
build
:
stage
:
build
script
:
-
docker build --no-cache -t $REGISTRY/medina/$SERVICE:$VERSION .
-
docker build --no-cache -t $REGISTRY/medina/$SERVICE:$VERSION .
only
:
-
develop
-
master
...
...
@@ -23,7 +23,12 @@ build:
test
:
stage
:
test
script
:
-
echo "not yet implemented"
-
apk add bash
-
docker stop $SERVICE ||
true
&& docker rm $SERVICE ||
true
-
docker run --name $SERVICE -d $REGISTRY/medina/$SERVICE:$VERSION
-
sleep
5
-
bash test/test.sh
-
docker stop $SERVICE && docker container rm $SERVICE
only
:
-
develop
-
master
...
...
This diff is collapsed.
Click to expand it.
LICENSE.txt
0 → 100644
+
4
−
0
View file @
658a7ec6
Copyright (C) 2021 XLAB d.o.o.
Use of this software allowed only to MEDINA partners for the purpose of research in the scope of MEDINA project, as specified in the MEDINA Consortium Agreement.
No commercial use allowed.
This program is distributed without any warranty.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
scheduler/scheduler.py
+
1
−
1
View file @
658a7ec6
...
...
@@ -31,7 +31,7 @@ scheduler.cron(
'
* * * * *
'
,
func
=
wazuh_evidence_collector
.
run_full_check
,
args
=
[],
repeat
=
10
,
repeat
=
None
,
queue_name
=
constants
[
'
redis
'
][
'
queue
'
],
use_local_timezone
=
False
)
...
...
This diff is collapsed.
Click to expand it.
test/test.sh
0 → 100755
+
45
−
0
View file @
658a7ec6
#!/bin/bash
logs
=
$(
docker logs
$SERVICE
2>&1
)
redis1
=
"# oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo"
redis2
=
"Ready to accept connections"
scheduler
=
"Registering birth"
worker1
=
"Worker rq:worker:"
worker2
=
"Subscribing to channel rq:pubsub:"
worker3
=
"Listening on "
if
!
[[
$logs
=
~
$redis1
]]
then
echo
"Redis server not started"
1>&2
exit
1
fi
if
!
[[
$logs
=
~
$redis2
]]
then
echo
"Redis server not started"
1>&2
exit
1
fi
if
!
[[
$logs
=
~
$scheduler
]]
then
echo
"Redis queue scheduler not started"
1>&2
exit
1
fi
if
!
[[
$logs
=
~
$worker1
]]
then
echo
"Redis worker not started"
1>&2
exit
1
fi
if
!
[[
$logs
=
~
$worker2
]]
then
echo
"Redis worker not started"
1>&2
exit
1
fi
if
!
[[
$logs
=
~
$worker3
]]
then
echo
"Redis worker not started"
1>&2
exit
1
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment