Allow localnet for test

This commit is contained in:
Fred 2023-03-07 08:47:53 +00:00
parent c2779852dd
commit eea0b60760

View File

@ -21,7 +21,7 @@ RUN echo "deb-src http://deb.debian.org/debian bullseye main contrib" >> /etc/ap
--enable-icap-support \
--enable-async-io \
--with-pthreads \
--with-winbind \
--with-winbind \
--bindir=/usr/sbin \
--sbindir=/usr/sbin \
--with-squid=/usr/lib/squid \
@ -44,15 +44,15 @@ RUN echo "deb-src http://deb.debian.org/debian bullseye main contrib" >> /etc/ap
--enable-auth-digest="LDAP" \
--enable-auth-ntlm \
--enable-auth-negotiate \
--enable-negotiate-auth-helpers \
--with-krb5-config=yes \
--enable-negotiate-auth-helpers \
--with-krb5-config=yes \
--enable-icap-client \
--sysconfdir=/etc/squid \
--with-filedescriptors=48000 \
--enable-delay-pools \
--with-large-files \
--with-pidfile=/squid/squid.pid \
--with-default-user=squid \
--with-pidfile=/squid/squid.pid \
--with-default-user=squid \
--enable-removal-policies="lru,heap" \
&& make \
&& find /tmp/ -type f -name "Makefil*" -delete \
@ -99,7 +99,7 @@ RUN adduser --no-create-home --uid 1161 --group --system squid \
&& echo "cache_log /var/log/squid/cache.log" >> /etc/squid/squid.conf \
&& echo "cache_effective_user squid" >> /etc/squid/squid.conf \
# Removed in 5.8, needed for test
&& echo "http_access allow localnet" >> /etc/squid/squid.conf \
&& sed -i '/http_access deny all/ihttp_access allow localnet' /etc/squid/squid.conf \
# Packages dependencies installation for running and clean again
&& apt-get update && apt-get install -y --no-install-recommends c-icap ca-certificates net-tools rsync libexpat1 libltdl7 libxml2 openssl ca-certificates libldap-2.4-2 libecap3 libcap2 libdb5.3 libatomic1 dumb-init procps inotify-tools curl \
&& apt-get auto-remove -y && apt-get clean autoclean \