Skip to content

Conversation

@anthony-chu
Copy link
Member

@kyle-miho
Copy link
Member

looks good to me @anthony-chu

@@ -0,0 +1,3 @@
hostname="clamav"
port=I"3310"
Copy link
Member Author

@anthony-chu anthony-chu Dec 18, 2025

Choose a reason for hiding this comment

The 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 CLAMAV_PORT from ports.env. if we do, it seems like the ports.env file is only parsed in build.gradle, so the docker-liferay-bundle.gradle file wouldn't have access to it (at least, not that i know of; there might be a way). the only thought i had would be to parse it again as part of a task to configure this config file.

Copy link
Member

Choose a reason for hiding this comment

The 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 elasticsearch service - it's a hard-coded port.

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.

Copy link
Member

@drewbrokke drewbrokke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anthony-chu looking good, just a few inline suggestions.

@@ -0,0 +1,3 @@
hostname="clamav"
port=I"3310"
Copy link
Member

Choose a reason for hiding this comment

The 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 elasticsearch service - it's a hard-coded port.

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.

@@ -0,0 +1,3 @@
hostname="clamav"
port=I"3310"
timeout=I"120000"
Copy link
Member

Choose a reason for hiding this comment

The 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 liferay.{serviceName}.yaml files. See the liferay.elasticsearch.yaml file for an example.


this.useClustering = this.useLiferay && this.clusterNodes > 0

this.useClamAV = this.services.contains("clamav")
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants