Skip to content

Commit

Permalink
Add clamav container (dev-lgfs)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmhaig committed Jan 4, 2024
1 parent 4ddeff2 commit 9131fd2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .k8s/live/dev-lgfs/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ spec:
spec:
serviceAccountName: cccd-dev-lgfs-service
containers:
- name: clamav
image: ghcr.io/ministryofjustice/hmpps-clamav:sha-ae9a953
imagePullPolicy: IfNotPresent
ports:
- name: clamav
containerPort: 3310
protocol: TCP
resources:
limits:
cpu: 500m
memory: 3Gi
requests:
cpu: 10m
memory: 1Gi
- name: cccd-app
imagePullPolicy: Always
image: 754256621582.dkr.ecr.eu-west-2.amazonaws.com/laa-get-paid/cccd:set-me
Expand Down
2 changes: 2 additions & 0 deletions config/clamd.container.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TCPSocket 3310
TCPAddr localhost
16 changes: 16 additions & 0 deletions config/initializers/clamby.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Clamby.configure({
# check: false,
# daemonize: true,
config_file: Rails.root.join('config', 'clamd.container.conf'),
# error_clamscan_missing: true,
# error_clamscan_client_error: false,
# error_file_missing: true,
# error_file_virus: false,
# fdpass: false,
stream: true,
# reload: false,
# output_level: 'medium',
# executable_path_clamscan: 'clamscan',
# executable_path_clamdscan: 'clamdscan',
# executable_path_freshclam: 'freshclam',
})

0 comments on commit 9131fd2

Please sign in to comment.