1
0
mirror of https://github.com/b4tman/docker-squid.git synced 2024-10-31 18:06:53 +00:00

Append prepend conf.d (#11)

impl #10

* separete conf.d folders

conf.d - for prepend
conf.d.tail - for append
This commit is contained in:
Dmitry Belyaev 2019-08-11 12:58:17 +03:00 committed by GitHub
parent e513e356c7
commit e2bc962b39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,6 +97,9 @@ RUN set -x && \
cd /tmp/build && \
make -j $(grep -cs ^processor /proc/cpuinfo) && \
make install
RUN sed -i '1s;^;include /etc/squid/conf.d/*.conf\n;' /etc/squid/squid.conf
RUN echo 'include /etc/squid/conf.d.tail/*.conf' >> /etc/squid/squid.conf
FROM alpine:3.10.1
@ -126,9 +129,11 @@ RUN install -d -o squid -g squid \
/var/run/squid && \
chmod +x /usr/lib/squid/*
RUN echo 'include /etc/squid/conf.d/*.conf' >> "$SQUID_CONFIG_FILE" && \
install -d -m 755 -o squid -g squid /etc/squid/conf.d
COPY squid-log.conf /etc/squid/conf.d/
RUN install -d -m 755 -o squid -g squid \
/etc/squid/conf.d \
/etc/squid/conf.d.tail
RUN touch /etc/squid/conf.d/placeholder.conf
COPY squid-log.conf /etc/squid/conf.d.tail/
RUN set -x && \
apk add --no-cache --virtual .tz alpine-conf tzdata && \