1
0
mirror of https://github.com/b4tman/docker-squid.git synced 2025-09-20 23:59:07 +00:00

sslbump: rootless (#125)

sslbump: shell script instead of long cmd

add 'ssl-bump' image test

add access_for_localnet for image test

allow_all instead of localnet for test

change test conf

fix test compose
This commit is contained in:
2024-01-23 22:45:13 +03:00
committed by Dmitry Belyaev
parent 3ceca4d5f2
commit 12abc8228d
5 changed files with 58 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
FROM b4tman/squid
USER root
CMD ["sh", "-c", "(test -d /var/cache/squid/ssl_db || /usr/lib/squid/security_file_certgen -c -s /var/cache/squid/ssl_db -M 4MB) && /usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -z && exec /usr/sbin/squid -f ${SQUID_CONFIG_FILE} --foreground -YCd 1"]
COPY run.sh /
CMD ["/run.sh"]

14
ssl-bump/run.sh Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
set -x
# init ssl_db
if [ ! -d /var/cache/squid/ssl_db ]; then
/usr/lib/squid/security_file_certgen -c -s /var/cache/squid/ssl_db -M 4MB
fi
# init cache
/usr/sbin/squid -f "${SQUID_CONFIG_FILE}" --foreground -z
# run squid
exec /usr/sbin/squid -f "${SQUID_CONFIG_FILE}" --foreground -YCd 1