-
Notifications
You must be signed in to change notification settings - Fork 22
LPD-73846 Add clamav support #191
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
base: master
Are you sure you want to change the base?
Changes from all commits
0da2587
9964d88
428499c
8703058
f77e7f7
1ae21a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| services: | ||
| liferay: | ||
| depends_on: | ||
| clamav: | ||
| condition: service_healthy | ||
| environment: | ||
| - LIFERAY_DL_PERIOD_STORE_PERIOD_ANTIVIRUS_PERIOD_ENABLED=true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| services: | ||
| clamav: | ||
| container_name: ${NAMESPACE}-clamav | ||
| healthcheck: | ||
| interval: 30s | ||
| retries: 5 | ||
| test: echo 'PING' | nc -w 5 localhost ${CLAMAV_PORT} | ||
| timeout: 10s | ||
| image: clamav/clamav:${CLAMAV_VERSION} | ||
| ports: | ||
| - ${CLAMAV_PORT}:3310 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| hostname="clamav" | ||
| port=I"3310" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i'm wondering if it would be helpful to make the value of the port dynamically configured based on
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @anthony-chu you should not need to configure this - it's all "in the box" (in the Docker network) and should not relate to the exposed host ports at all. See what we do for the But to answer the more general question - you could parameterize this and do a string-replace during the Gradle copy operation that moves this to the Docker staging dir. See the Gradle docs and this example from Composer for ways to do it whenever it may be needed in the future. |
||
| timeout=I"120000" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @anthony-chu if we have a conf file here, it will deploy no matter what, even if the antivirus is not enabled. This is why we instead put the configs as environment variables in |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| CLAMAV_VERSION=1.0.9 | ||
| DB2_VERSION=11.5.9.0 | ||
| MARIADB_VERSION=10.6.22-jammy | ||
| MYSQL_VERSION=8.4.5-oracle | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is not actually used for anything, let's just remove it.