Skip to content

Commit 38caf72

Browse files
Fix connection on ClamAV and ignore check if disconnected. Add corresponding TODO. (#705)
<!-- Please provide brief information about the PR, what it contains & its purpose, new behaviors after the change. And let us know here if you need any help: https://github.com/microsoft/HydraLab/issues/new --> ## Description - Fix connection on ClamAV and ignore check if disconnected. - Add corresponding TODO. <!-- A few words to explain your changes --> ### Linked GitHub issue ID: # ## Pull Request Checklist <!-- Put an x in the boxes that apply. This is simply a reminder of what we are going to look for before merging your code. --> - [ ] Tests for the changes have been added (for bug fixes / features) - [ ] Code compiles correctly with all tests are passed. - [ ] I've read the [contributing guide](https://github.com/microsoft/HydraLab/blob/main/CONTRIBUTING.md#making-changes-to-the-code) and followed the recommended practices. - [ ] [Wikis](https://github.com/microsoft/HydraLab/wiki) or [README](https://github.com/microsoft/HydraLab/blob/main/README.md) have been reviewed and added / updated if needed (for bug fixes / features) ### Does this introduce a breaking change? *If this introduces a breaking change for Hydra Lab users, please describe the impact and migration path.* - [ ] Yes - [X] No ## How you tested it *Please make sure the change is tested, you can test it by adding UTs, do local test and share the screenshots, etc.* Please check the type of change your PR introduces: - [X] Bugfix - [ ] Feature - [ ] Technical design - [ ] Build related changes - [ ] Refactoring (no functional changes, no api changes) - [ ] Code style update (formatting, renaming) or Documentation content changes - [ ] Other (please describe): ### Feature UI screenshots or Technical design diagrams *If this is a relatively large or complex change, kick it off by drawing the tech design with PlantUML and explaining why you chose the solution you did and what alternatives you considered, etc...* Co-authored-by: lsh <lsh@microsoft.com>
1 parent fc3c18b commit 38caf72

File tree

4 files changed

+4
-708
lines changed

4 files changed

+4
-708
lines changed

center/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ RUN \
3535
mkdir -p /var/run/clamav && \
3636
chown clamav:clamav /var/run/clamav && \
3737
chmod 755 /var/run/clamav && \
38+
echo 'TCPSocket 3310' >> /etc/clamav/clamd.conf && \
39+
echo 'TCPAddr 127.0.0.1' >> /etc/clamav/clamd.conf && \
3840
mkdir -p /hydra/data
3941

4042
COPY ${STARTUP_FOLDER_PATH}/prometheus-2.36.2.linux-amd64.tar.gz /opt/
4143
COPY ${STARTUP_FOLDER_PATH}/pushgateway-1.4.3.linux-amd64.tar.gz /opt/
4244
COPY ${STARTUP_FOLDER_PATH}/grafana-enterprise-9.0.1.linux-amd64.tar.gz /opt/
43-
COPY ${STARTUP_FOLDER_PATH}/clamAV/clamd.conf /opt/
4445

4546
RUN cd /opt/ && \
4647
tar -zxvf prometheus-2.36.2.linux-amd64.tar.gz && \

0 commit comments

Comments
 (0)