1
0
mirror of https://github.com/b4tman/docker-squid.git synced 2025-07-25 22:03:28 +00:00

26 Commits

Author SHA1 Message Date
3d2e367c14 bump squid to 4.14 2021-02-16 21:02:46 +03:00
f5fbbb9034 fix docker cloud build status url 2021-02-11 21:46:14 +03:00
dependabot[bot]
a56bf2890d Bump alpine from 3.12.3 to 3.13.1
Bumps alpine from 3.12.3 to 3.13.1.

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-29 21:50:01 +03:00
dependabot[bot]
88f5a067fb Bump alpine from 3.12.1 to 3.12.3
Bumps alpine from 3.12.1 to 3.12.3.

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-01 13:03:24 +03:00
dependabot[bot]
b90f70705c Bump alpine from 3.12.0 to 3.12.1
Bumps alpine from 3.12.0 to 3.12.1.

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-01 12:25:08 +03:00
6eb782b5a6 Migrate to GitHub Container Registry
from GitHub Packages
https://docs.github.com/en/free-pro-team@latest/packages/getting-started-with-github-container-registry/migrating-to-github-container-registry-for-docker-images
2020-10-04 22:49:22 +03:00
c3138cec07 Merge pull request #33 from gianluca-mascolo/unittest
Feature: Use squidclient for unit test
2020-10-04 18:04:55 +03:00
gianluca-mascolo
d01a447dcf changed docker-compose version to support start_period 2020-10-04 16:18:04 +02:00
gianluca-mascolo
6486bd001c fix docker-compose version 2020-10-04 11:57:30 +02:00
gianluca-mascolo
212bdefa3b use squidclient for unit test 2020-10-03 17:49:14 +02:00
gianluca-mascolo
824146b6c6 compile install squidclient 2020-10-03 17:46:01 +03:00
bee8e01cb0 bump to 4.13 2020-08-28 14:24:23 +03:00
e36539188f limit make jobs 2020-08-16 16:34:51 +03:00
ebe487186b add drone status badge 2020-08-16 16:31:27 +03:00
6e0968cb97 remove dependabot badge 2020-08-16 16:25:59 +03:00
9aa1dbd893 remove microbadger 2020-08-16 16:25:17 +03:00
1a682a86c9 fix drone secrets for github pkgs 2020-08-16 16:06:05 +03:00
cb78e8c285 fix drone secrets
err:
"Registry credentials or Docker config not provided. Guest mode enabled."
2020-08-16 15:48:10 +03:00
4251447c9d add drone pipeline for arm image (#30)
fix #27
2020-08-16 14:45:13 +03:00
e4ce0fe599 enable kerberos auth (fix #28) 2020-08-13 16:33:27 +03:00
dependabot-preview[bot]
a6b68820a9 Create Dependabot config file 2020-06-18 10:19:54 +03:00
d1e2082f73 bump to 4.12 2020-06-15 14:16:38 +03:00
70ac196b86 libressl 3.1 2020-06-01 11:31:49 +03:00
dependabot-preview[bot]
15cf0f1674 Bump alpine from 3.11.6 to 3.12.0
Bumps alpine from 3.11.6 to 3.12.0.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-01 11:31:49 +03:00
dependabot-preview[bot]
72ef256dfe Bump alpine from 3.11.5 to 3.11.6
Bumps alpine from 3.11.5 to 3.11.6.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-01 10:59:33 +03:00
dependabot-preview[bot]
74a4ac3993 Bump alpine from 3.11.3 to 3.11.5
Bumps alpine from 3.11.3 to 3.11.5.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-01 09:14:31 +03:00
6 changed files with 75 additions and 21 deletions

33
.drone.yml Normal file

@@ -0,0 +1,33 @@
---
kind: pipeline
type: docker
name: arm32 images
platform:
os: linux
arch: arm
steps:
- name: squid image for dockerhub
image: plugins/docker
settings:
repo: docker.io/b4tman/squid
auto_tag: true
auto_tag_suffix: armhf
pull_image: true
registry: docker.io
username: b4tman
password:
from_secret: docker_password
- name: squid-armhf image for github packages
image: plugins/docker
settings:
repo: ghcr.io/b4tman/squid-armhf
auto_tag: true
pull_image: true
registry: ghcr.io
username: b4tman
password:
from_secret: github_password
trigger:
ref:
- refs/tags/**
- refs/heads/master

8
.github/dependabot.yml vendored Normal file

@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: docker
directory: "/"
schedule:
interval: monthly
time: '02:00'
open-pull-requests-limit: 10

@@ -42,11 +42,11 @@ jobs:
run: docker build ssl-bump --tag b4tman/squid:ssl-bump
- name: Log into registry
run: echo "${{ secrets.GITHUB_PKGS_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push squid image
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/squid
IMAGE_ID=ghcr.io/${{ github.actor }}/squid
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
@@ -65,7 +65,7 @@ jobs:
- name: Push 'ssl-bump' image
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/ssl-bump
IMAGE_ID=ghcr.io/${{ github.actor }}/squid-ssl-bump
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')

@@ -1,6 +1,6 @@
FROM alpine:3.11.3 as build
FROM alpine:3.13.1 as build
ENV SQUID_VER 4.10
ENV SQUID_VER 4.14
ENV SQUID_SIG_KEY B06884EDB779C89B044E64E3CD6DBF8EF3B17D3E
RUN set -x && \
@@ -63,7 +63,7 @@ RUN set -x && \
--enable-epoll \
--enable-external-acl-helpers="file_userip,unix_group,wbinfo_group" \
--enable-auth-ntlm="fake" \
--enable-auth-negotiate="wrapper" \
--enable-auth-negotiate="kerberos,wrapper" \
--enable-silent-rules \
--disable-mit \
--enable-heimdal \
@@ -93,15 +93,18 @@ RUN set -x && \
--with-openssl \
--with-pidfile=/var/run/squid/squid.pid
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
nproc=$(n=$(nproc) ; max_n=6 ; [ $n -le $max_n ] && echo $n || echo $max_n) && \
make -j $nproc && \
make install && \
cd tools/squidclient && make && make install-strip
FROM alpine:3.11.3
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.13.1
ENV SQUID_CONFIG_FILE /etc/squid/squid.conf
ENV TZ Europe/Moscow
@@ -114,14 +117,16 @@ RUN apk add --no-cache \
libstdc++ \
heimdal-libs \
libcap \
libressl3.0-libcrypto \
libressl3.0-libssl \
libressl3.1-libcrypto \
libressl3.1-libssl \
libltdl
COPY --from=build /etc/squid/ /etc/squid/
COPY --from=build /usr/lib/squid/ /usr/lib/squid/
COPY --from=build /usr/share/squid/ /usr/share/squid/
COPY --from=build /usr/sbin/squid /usr/sbin/squid
COPY --from=build /usr/bin/squidclient /usr/bin/squidclient
RUN install -d -o squid -g squid \
/var/cache/squid \

@@ -1,6 +1,5 @@
[![](https://images.microbadger.com/badges/image/b4tman/squid.svg)](https://microbadger.com/images/b4tman/squid "Get your own image badge on microbadger.com")
[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=b4tman/docker-squid)](https://dependabot.com)
![Docker Build Status](https://img.shields.io/docker/build/b4tman/squid)
[![Drone Build Status](https://cloud.drone.io/api/badges/b4tman/docker-squid/status.svg?ref=refs/heads/master)](https://cloud.drone.io/b4tman/docker-squid)
![Docker Build Status](https://img.shields.io/docker/cloud/build/b4tman/squid)
![Docker Image CI Status](https://github.com/b4tman/docker-squid/workflows/Docker%20Image%20CI/badge.svg)
# docker-squid

@@ -1,11 +1,20 @@
version: '2'
version: '2.3'
services:
proxy:
build: .
image: squidproxy
build:
context: .
dockerfile: Dockerfile
healthcheck:
test: ["CMD", "sh", "-exc", "squidclient -T 3 mgr:info 2> /dev/null | grep -qF '200 OK'"]
interval: 5s
timeout: 3s
retries: 5
start_period: 1s
sut:
image: alpine:3.10.1
image: squidproxy
links:
- proxy
depends_on:
- proxy
command: sh -exc "apk add --update curl && sleep 5 && exec curl --proxy http://proxy:3128 -I http://google.com/"
command: sh -exc "sleep 10 && squidclient -h proxy -T 3 'https://postman-echo.com/get?squidtest=ok' 2> /dev/null | grep -qF '200 OK'"