> > My team is new to maintaining images on Docker Hub. We hadn't yet > identified the best practices for how to publish an image for the same > ClamAV version with a new base image. After a little investigation, I > settled on this on this scheme. >
Maybe it is time to allow environment variables in the config files? sed -e "s|^\(Example\)|\# \1|" \ -e "s|.*\(PidFile\) .*|\1 /run/lock/clamd.pid|" \ -e "s|.*\(LocalSocket\) .*|\1 /run/clamav/clamd.sock|" \ -e "s|.*\(TCPSocket\) .*|\1 3310|" \ -e "s|.*\(TCPAddr\) .*|\1 0.0.0.0|" \ -e "s|.*\(User\) .*|\1 clamav|" \ -e "s|^\#\(LogFile\) .*|\1 /var/log/clamav/clamd.log|" \ -e "s|^\#\(LogTime\).*|\1 yes|" \ "/clamav/etc/clamav/clamd.conf.sample" > "/clamav/etc/clamav/clamd.conf" && \ sed -e "s|^\(Example\)|\# \1|" \ -e "s|.*\(PidFile\) .*|\1 /run/lock/freshclam.pid|" \ -e "s|.*\(DatabaseOwner\) .*|\1 clamav|" \ -e "s|^\#\(UpdateLogFile\) .*|\1 /var/log/clamav/freshclam.log|" \ -e "s|^\#\(NotifyClamd\).*|\1 /etc/clamav/clamd.conf|" \ -e "s|^\#\(ScriptedUpdates\).*|\1 yes|" \ "/clamav/etc/clamav/freshclam.conf.sample" > "/clamav/etc/clamav/freshclam.conf" && \ sed -e "s|^\(Example\)|\# \1|" \ -e "s|.*\(PidFile\) .*|\1 /run/lock/clamav-milter.pid|" \ -e "s|.*\(MilterSocket\) .*|\1 inet:7357|" \ -e "s|.*\(User\) .*|\1 clamav|" \ -e "s|^\#\(LogFile\) .*|\1 /var/log/clamav/milter.log|" \ -e "s|^\#\(LogTime\).*|\1 yes|" \ -e "s|.*\(\ClamdSocket\) .*|\1 unix:/run/clamav/clamd.sock|" \ "/clamav/etc/clamav/clamav-milter.conf.sample" > "/clamav/etc/clamav/clamav-milter.conf" || \ _______________________________________________ clamav-users mailing list clamav-users@lists.clamav.net https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml