Skip to content

Commit 8fa9f3a

Browse files
committed
chore: clamav docker folder move, adjust resources, cleanup helm values
1 parent 4921b52 commit 8fa9f3a

File tree

7 files changed

+27
-63
lines changed

7 files changed

+27
-63
lines changed

.github/workflows/publish-clamav.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Build and Publish ClamAV Image
33
on:
44
push:
55
branches:
6-
- main
6+
- main
77
paths:
8-
- .github/workflows/publish-clamav.yml
9-
- clamav/**
8+
- .github/workflows/publish-clamav.yml
9+
- ./devops/docker/clamav/**
1010

1111
env:
1212
GITHUB_REGISTRY: ghcr.io
@@ -20,18 +20,18 @@ jobs:
2020
packages: write
2121

2222
steps:
23-
- uses: hmarr/debug-action@f7318c783045ac39ed9bb497e22ce835fdafbfe6
24-
- uses: actions/checkout@8edcb1bdb4e267140fa742c62e395cd74f332709
23+
- uses: hmarr/debug-action@f7318c783045ac39ed9bb497e22ce835fdafbfe6
24+
- uses: actions/checkout@8edcb1bdb4e267140fa742c62e395cd74f332709
2525

26-
- name: Build and Push
27-
uses: egose/actions/docker-build-push@46d589997e49cae4a8a3d06644ae8b04351a30f2
28-
with:
29-
registry-url: ${{ env.GITHUB_REGISTRY }}
30-
registry-username: ${{ github.actor }}
31-
registry-password: ${{ secrets.GITHUB_TOKEN }}
32-
image-name: bcgov/hesp-clamav
33-
docker-context: clamav
34-
docker-file: clamav/Dockerfile
35-
metadata-tags: |
36-
type=ref,event=branch
37-
type=sha,format=long,prefix=,suffix=
26+
- name: Build and Push
27+
uses: egose/actions/docker-build-push@46d589997e49cae4a8a3d06644ae8b04351a30f2
28+
with:
29+
registry-url: ${{ env.GITHUB_REGISTRY }}
30+
registry-username: ${{ github.actor }}
31+
registry-password: ${{ secrets.GITHUB_TOKEN }}
32+
image-name: bcgov/hesp-clamav
33+
docker-context: clamav
34+
docker-file: devops/docker/clamav/Dockerfile
35+
metadata-tags: |
36+
type=ref,event=branch
37+
type=sha,format=long,prefix=,suffix=

clamav/scripts/docker-entrypoint-unprivileged.sh renamed to devops/docker/clamav/scripts/docker-entrypoint-unprivileged.sh

File renamed without changes.

helm/main/values-bfc7dd-dev.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -227,18 +227,3 @@ anycableGo:
227227
# ClamAV Configuration for Dev
228228
clamav:
229229
enabled: true
230-
231-
resources:
232-
requests:
233-
cpu: 50m
234-
memory: 256Mi
235-
limits:
236-
cpu: 200m
237-
memory: 1Gi
238-
239-
persistence:
240-
size: 512Mi
241-
242-
virusScanTempVolume:
243-
enabled: true
244-
size: 512Mi

helm/main/values-bfc7dd-prod.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -189,18 +189,3 @@ anycableGo:
189189
# ClamAV Configuration for Production
190190
clamav:
191191
enabled: true
192-
193-
resources:
194-
requests:
195-
cpu: 50m
196-
memory: 256Mi
197-
limits:
198-
cpu: 200m
199-
memory: 1Gi
200-
201-
persistence:
202-
size: 512Mi
203-
204-
virusScanTempVolume:
205-
enabled: true
206-
size: 512Mi

helm/main/values-bfc7dd-test.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -219,18 +219,3 @@ anycableGo:
219219
# ClamAV Configuration for Test
220220
clamav:
221221
enabled: true
222-
223-
resources:
224-
requests:
225-
cpu: 50m
226-
memory: 256Mi
227-
limits:
228-
cpu: 200m
229-
memory: 1Gi
230-
231-
persistence:
232-
size: 512Mi
233-
234-
virusScanTempVolume:
235-
enabled: true
236-
size: 512Mi

helm/main/values.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,18 @@ anycableGo:
352352
cpu: 20m
353353
memory: 128Mi
354354

355-
# ClamAV antivirus service
355+
# ClamAV antivirus service, default settings
356356
clamav:
357357
enabled: true
358+
359+
resources:
360+
requests:
361+
cpu: 100m
362+
memory: 1Gi
363+
limits:
364+
cpu: 200m
365+
memory: 2Gi
366+
358367
image:
359368
repository: ghcr.io/bcgov/hesp-clamav
360369
tag: main

0 commit comments

Comments
 (0)