Skip to content

Commit 2145c70

Browse files
committed
feat(backend): add filters and rules to backend docker image
1 parent 1f7443f commit 2145c70

File tree

832 files changed

+32604
-3295
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

832 files changed

+32604
-3295
lines changed

.github/workflows/reusable-java.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ on:
3636
type: string
3737
default: "clean install"
3838
description: "Maven goals to execute"
39+
copy_filters_and_rules:
40+
required: false
41+
type: boolean
42+
default: false
43+
description: "Copy filters and rules folders to build context"
3944

4045
jobs:
4146
build:
@@ -99,6 +104,13 @@ jobs:
99104
username: utmstack
100105
password: ${{ secrets.GITHUB_TOKEN }}
101106

107+
- name: Copy filters and rules to build context
108+
if: ${{ inputs.copy_filters_and_rules }}
109+
run: |
110+
cp -r filters ./${{ inputs.image_name }}/
111+
cp -r rules ./${{ inputs.image_name }}/
112+
echo "✅ Copied filters and rules to ./${{ inputs.image_name }}/"
113+
102114
- name: Build and Push the Image
103115
uses: docker/build-push-action@v6
104116
with:

.github/workflows/v11-deployment-pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ jobs:
493493
use_tag_as_version: true
494494
maven_profile: 'prod'
495495
maven_goals: 'clean package'
496+
copy_filters_and_rules: true
496497

497498
build_frontend:
498499
name: Build Frontend Microservice

backend/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM eclipse-temurin:17
22

33
ADD target/utmstack.war ./
4+
COPY filters /utmstack/filters
5+
COPY rules /utmstack/rules
46

57
HEALTHCHECK --start-period=60s --interval=60s --timeout=60s --retries=3 \
68
CMD curl -f http://localhost:8080/api/healthcheck || exit 1

filters/antivirus/checkpoint.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.
File renamed without changes.

filters/filebeat/apache_module.yml

Lines changed: 0 additions & 230 deletions
This file was deleted.

filters/filebeat/auditd_module.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)