Skip to content

Commit 49e280e

Browse files
Fix: ClamAV cannot scan large files (#706)
<!-- 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 <!-- 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 - [ ] 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 38caf72 commit 49e280e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

center/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ RUN \
3737
chmod 755 /var/run/clamav && \
3838
echo 'TCPSocket 3310' >> /etc/clamav/clamd.conf && \
3939
echo 'TCPAddr 127.0.0.1' >> /etc/clamav/clamd.conf && \
40+
sed -i '/StreamMaxLength/c\StreamMaxLength 2048M' /etc/clamav/clamd.conf && \
41+
sed -i '/MaxScanSize/c\MaxScanSize 0' /etc/clamav/clamd.conf && \
42+
sed -i '/MaxFileSize/c\MaxFileSize 0' /etc/clamav/clamd.conf && \
4043
mkdir -p /hydra/data
4144

4245
COPY ${STARTUP_FOLDER_PATH}/prometheus-2.36.2.linux-amd64.tar.gz /opt/

0 commit comments

Comments
 (0)